/* HandyTarifTipp KI-Hinweis v1.7 - single, dynamically sized label. */
body.single-post .post-inner .post-meta,
body.single-post article .post-meta,
body.single-post .post-meta {
    position: relative;
    overflow: visible;
}

body.single-post .post-meta .htt-ai-meta {
    display: inline-block;
    position: static;
    box-sizing: border-box;
    margin: 0 0 0 11px;
    padding: 0;
    vertical-align: middle;
    line-height: normal;
    white-space: nowrap;
}

body.single-post .post-meta .htt-ai-meta__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-height: 25px;
    margin: 0;
    padding: 3px 9px;
    border: 1px solid #efd0b5;
    border-radius: 4px;
    box-shadow: none;
    background: #fff3e8;
    color: #a34b0a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color .15s ease, border-color .15s ease;
    -webkit-appearance: none;
    appearance: none;
}

body.single-post .post-meta .htt-ai-meta__trigger:hover,
body.single-post .post-meta .htt-ai-meta__trigger[aria-expanded="true"] {
    background: #ffe6d2;
    border-color: #e6a36c;
    color: #8e3e06;
}
body.single-post .post-meta .htt-ai-meta__trigger:focus-visible {
    outline: 2px solid #e97625;
    outline-offset: 2px;
}
body.single-post .post-meta .htt-ai-meta__label {
    display: inline;
    white-space: nowrap;
}
body.single-post .post-meta .htt-ai-meta__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    text-transform: none;
}
body.single-post .post-meta .htt-ai-meta__popup {
    position: absolute;
    z-index: 999;
    top: calc(100% + 8px);
    left: 0;
    display: block;
    box-sizing: border-box;
    width: 420px;
    max-width: min(100%, calc(100vw - 28px));
    padding: 12px 15px;
    margin: 0;
    border: 1px solid #e3e4e5;
    border-left: 3px solid #ed7628;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .13);
    background: #fff;
    color: #42464a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.55;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: break-word;
}
body.single-post .post-meta .htt-ai-meta__popup strong {
    display: block;
    margin-bottom: 4px;
    color: #292b2e;
    font-weight: 700;
    font-size: 13px;
    text-transform: none;
}
body.single-post .post-meta .htt-ai-meta__popup[hidden] {
    display: none !important;
}

/* JS adapts the label to the actual space; this media rule only refines sizing. */
@media (max-width: 767px) {
    body.single-post .post-meta .htt-ai-meta__popup {
        width: 100%;
        padding: 11px 12px;
        font-size: 12.5px;
    }
}
