/* 03/10/2026 — Widget de chat en direct maison (FAQ + disponibilité). Voir Frontend\ChatWidget.
 * Positionnement : le thème affiche déjà un bouton flottant « Concierge »
 * (.cyh-concierge, brand.css) au même coin, right:18px/bottom:22px, mais
 * UNIQUEMENT à partir de 900px (il est display:none en dessous, voir
 * brand.css ~L355). On empile donc notre bulle au-dessus de lui à partir de
 * 900px, et on la laisse en bas (le Concierge étant masqué) en dessous. */
.cy-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    font-family: inherit;
}

@media (min-width: 900px) {
    .cy-chat-widget {
        bottom: 92px;
    }
}

.cy-chat-widget__bubble {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    background: var(--cm-accent, #15803D);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.15s ease;
}

.cy-chat-widget__bubble:hover {
    transform: scale(1.06);
}

.cy-chat-widget__panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(320px, calc(100vw - 32px));
    max-height: min(480px, calc(100vh - 110px));
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cy-chat-widget__panel[hidden] {
    display: none;
}

.cy-chat-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--cm-accent, #15803D);
    color: #fff;
}

.cy-chat-widget__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.cy-chat-widget__body {
    padding: 12px 14px 16px;
    overflow-y: auto;
}

.cy-chat-widget__quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.cy-chat-widget__btn {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: #F1F5F3;
    color: #14532D;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.cy-chat-widget__btn--wa {
    background: #E7F8EE;
    color: #075E54;
}

.cy-chat-widget__faq-label {
    margin: 0 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6B7280;
}

.cy-chat-widget .campy-v8-faq details {
    border-bottom: 1px solid #EEE;
    padding: 6px 0;
}

.cy-chat-widget .campy-v8-faq summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cy-chat-widget .campy-v8-faq p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #4B5563;
}

@media (max-width: 480px) {
    .cy-chat-widget {
        right: 12px;
        bottom: 12px;
    }
}
