/*
 * Author: Tobalt — https://tobalt.lt
 * v0.11.0 — CSAT modal + inactivity banner styles.
 * Scoped to .tcb-root ancestor; inherits --tcb-* variables.
 */

.tcb-root .tcb-csat-modal {
    position: fixed;
    inset: 0;
    background: rgba( 0, 0, 0, 0.45 );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    padding: 16px;
}

.tcb-root .tcb-csat-panel {
    background: #fff;
    border-radius: 12px;
    padding: 24px 22px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 48px rgba( 0, 0, 0, 0.22 );
    color: #1a1a1a;
}

.tcb-root .tcb-csat-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
}

.tcb-root .tcb-csat-subtitle {
    margin: 0 0 14px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.tcb-root .tcb-csat-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.tcb-root .tcb-csat-star,
.tcb-root button.tcb-csat-star {
    background: transparent;
    border: none;
    padding: 4px;
    font-size: 28px;
    line-height: 1;
    color: #ccc;
    cursor: pointer;
    transition: color .12s ease;
}

.tcb-root .tcb-csat-star.is-active,
.tcb-root button.tcb-csat-star.is-active {
    color: var( --tcb-accent, #003C7E );
}

.tcb-root .tcb-csat-star:focus-visible,
.tcb-root button.tcb-csat-star:focus-visible {
    outline: 2px solid #E3FF04;
    outline-offset: 2px;
    border-radius: 4px;
}

.tcb-root .tcb-csat-comment {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var( --tcb-border, #d0d4dc );
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.tcb-root .tcb-csat-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tcb-root .tcb-csat-skip,
.tcb-root button.tcb-csat-skip {
    background: transparent;
    border: 1px solid var( --tcb-border, #d0d4dc );
    color: #555;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.tcb-root .tcb-csat-submit,
.tcb-root button.tcb-csat-submit {
    background: var( --tcb-accent, #003C7E );
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Inactivity banner — compact inline variant */
.tcb-root .tcb-csat-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 12px;
    padding: 10px 12px;
    background: rgba( 0, 0, 0, 0.04 );
    border: 1px dashed var( --tcb-border, #d0d4dc );
    border-radius: 8px;
    font-size: 13px;
}

.tcb-root .tcb-csat-banner-prompt {
    flex: 1;
}

.tcb-root .tcb-csat-banner .tcb-csat-stars {
    margin-bottom: 0;
}

.tcb-root .tcb-csat-banner .tcb-csat-star,
.tcb-root .tcb-csat-banner button.tcb-csat-star {
    font-size: 20px;
    padding: 2px;
}

.tcb-root .tcb-csat-banner-close,
.tcb-root button.tcb-csat-banner-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

/* Thank-you toast */
.tcb-root .tcb-csat-thank-you {
    align-self: center;
    margin: 10px 0;
    padding: 8px 14px;
    background: var( --tcb-accent, #003C7E );
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    animation: tcbCsatFade .25s ease;
}

@keyframes tcbCsatFade {
    from { opacity: 0; transform: translateY( 6px ); }
    to   { opacity: 1; transform: translateY( 0 );    }
}

@media ( max-width: 600px ) {
    .tcb-root .tcb-csat-panel {
        padding: 18px 16px;
    }
    .tcb-root .tcb-csat-star,
    .tcb-root button.tcb-csat-star {
        font-size: 24px;
    }
}
