/* TV on Holiday - public Live Support widget */
#tvoh-chat-root, #tvoh-chat-root * { box-sizing: border-box; }
#tvoh-chat-root { position: fixed; right: 22px; bottom: 22px; z-index: 2147482000; font: 14px Arial, Helvetica, sans-serif; color: #102d49; }
#tvoh-chat-launch { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 999px; background: #0877d1; color: #fff; box-shadow: 0 9px 28px rgba(8,49,82,.25); cursor: pointer; font: 700 14px Arial,sans-serif; }
#tvoh-chat-launch:hover { background: #0869b6; }
#tvoh-chat-panel { display: none; position: absolute; right: 0; bottom: 66px; width: min(370px, calc(100vw - 28px)); height: min(560px, calc(100dvh - 110px)); flex-direction: column; overflow: hidden; border: 1px solid #d9e3ec; border-radius: 16px; background: #fff; box-shadow: 0 18px 60px rgba(9,34,54,.24); }
#tvoh-chat-root.tvoh-open #tvoh-chat-panel { display: flex; }
.tvoh-chat-head { padding: 17px 18px; display: flex; justify-content: space-between; align-items: center; background: #102d49; color: #fff; }
.tvoh-chat-head strong { display: block; font-size: 16px; }
.tvoh-chat-head small { display: block; margin-top: 5px; color: #bdd3e4; }
#tvoh-chat-close { border: 0; background: transparent; color: #fff; font-size: 25px; cursor: pointer; }
.tvoh-chat-content { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 17px; gap: 11px; }
.tvoh-chat-content p { margin: 0; line-height: 1.55; color: #536b7e; }
.tvoh-chat-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; }
.tvoh-chat-field input, .tvoh-chat-field textarea, #tvoh-chat-message { width: 100%; padding: 11px 12px; border: 1px solid #cbd8e3; border-radius: 8px; background: #fff; color: #102d49; font: 14px Arial,sans-serif; }
.tvoh-chat-field textarea { min-height: 95px; resize: vertical; }
.tvoh-chat-primary { padding: 12px 14px; border: 0; border-radius: 8px; background: #0877d1; color: #fff; font-weight: 700; cursor: pointer; }
.tvoh-chat-primary:disabled { opacity: .55; cursor: not-allowed; }
#tvoh-chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.tvoh-chat-bubble { max-width: 90%; padding: 11px 13px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; background: #f0f5f9; align-self: flex-start; }
.tvoh-chat-bubble.customer { background: #e5f2ff; align-self: flex-end; }
.tvoh-chat-compose { display: flex; gap: 7px; }
.tvoh-chat-compose input { flex: 1; min-width: 0; }
#tvoh-chat-error { color: #b82d3a; font-size: 12px; min-height: 15px; }
#tvoh-chat-root [hidden] { display: none !important; }
@media(max-width:480px) { #tvoh-chat-root { right: 12px; bottom: 12px; } #tvoh-chat-panel { bottom: 62px; } }

/* =========================================================
   TV ON HOLIDAY - LIVE CHAT BRANDING
========================================================= */

.tvoh-chat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tvoh-chat-logo {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
}

.tvoh-chat-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tvoh-chat-brand-text strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.tvoh-chat-tagline {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.4;
}

.tvoh-chat-brand-text small {
    display: block;
    margin-top: 4px;
    color: #bdd3e4;
    font-size: 11px;
    line-height: 1.4;
}

@media screen and (max-width: 480px) {

    .tvoh-chat-brand {
        gap: 10px;
    }

    .tvoh-chat-logo {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .tvoh-chat-brand-text strong {
        font-size: 14px;
    }

}

/* =========================================================
   LIVE CHAT - ONLINE / OFFLINE STATUS
========================================================= */

.tvoh-chat-brand-text small.tvoh-chat-status-online,
.tvoh-chat-brand-text small.tvoh-chat-status-offline {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 5px;
}

.tvoh-chat-brand-text small.tvoh-chat-status-online {
    color: #55d6a7;
}

.tvoh-chat-brand-text small.tvoh-chat-status-offline {
    color: #b5c0cb;
}

.tvoh-chat-status-online::before,
.tvoh-chat-status-offline::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tvoh-chat-status-online::before {
    background: #55d6a7;
    box-shadow: 0 0 0 4px rgba(85, 214, 167, 0.12);
}

.tvoh-chat-status-offline::before {
    background: #a6b2be;
    box-shadow: 0 0 0 4px rgba(166, 178, 190, 0.12);
}


/* =========================================================
   TV ON HOLIDAY - ADMINISTRATOR TYPING INDICATOR
========================================================= */

#tvoh-chat-typing {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 7px;
    padding: 8px 12px;
    margin: 0 0 4px;
    color: #60768b;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

#tvoh-chat-typing[hidden] {
    display: none !important;
}

.tvoh-chat-typing-label {
    white-space: nowrap;
}

.tvoh-chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tvoh-chat-typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #7990a5;
    opacity: 0.35;
    animation: tvoh-typing-pulse 1.2s infinite ease-in-out;
}

.tvoh-chat-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.tvoh-chat-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tvoh-typing-pulse {

    0%,
    60%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }

}

@media (prefers-reduced-motion: reduce) {

    .tvoh-chat-typing-dot {
        animation: none;
        opacity: 0.7;
    }

}


/* =========================================================
   TV ON HOLIDAY - MOBILE KEYBOARD IMPROVEMENTS
========================================================= */

@media screen and (max-width: 600px) {

    #tvoh-chat-root.tvoh-keyboard-open #tvoh-chat-panel {
        position: fixed;
        top: var(--tvoh-keyboard-top, 8px);
        right: 8px;
        bottom: auto;
        left: 8px;
        width: auto;
        height: var(--tvoh-keyboard-height, 300px);
        max-height: none;
        border-radius: 14px;
        display: flex;
    }

    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-head {
        flex-shrink: 0;
        padding: 10px 14px;
    }

    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-content {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        padding: 10px 12px;
        gap: 7px;
    }

    #tvoh-chat-root.tvoh-keyboard-open #tvoh-chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-compose-area,
    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-compose {
        flex-shrink: 0;
    }

    #tvoh-chat-root.tvoh-keyboard-open #tvoh-chat-message,
    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-field input,
    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-field textarea {
        font-size: 16px;
    }

    #tvoh-chat-root.tvoh-keyboard-open .tvoh-chat-end-actions {
        margin-bottom: 5px !important;
    }

}


/* =========================================================
   TV ON HOLIDAY - MOBILE INPUT ZOOM FIX
========================================================= */

@media screen and (max-width: 600px) {

    #tvoh-chat-root input,
    #tvoh-chat-root textarea,
    #tvoh-chat-root select {
        font-size: 16px !important;
    }

}


