/* Chat Widget Bubble */
.cw-window,
.cw-window * {
    box-sizing: border-box;
}
.cw-bubble {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent, #ffe45c), var(--brand-accent, #ffe45c));
    border: none;
    cursor: pointer;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(var(--brand-accent-rgb, 255, 228, 92), 0.5);
    transition: transform .3s ease, box-shadow .3s ease;
    outline: none;
    animation: cw-bubble-pulse 2s infinite;
}
@keyframes cw-bubble-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--brand-accent-rgb, 255, 228, 92), 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(var(--brand-accent-rgb, 255, 228, 92), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--brand-accent-rgb, 255, 228, 92), 0); }
}
.cw-bubble[hidden] { display: none; }
.cw-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 35px rgba(var(--brand-accent-rgb, 255, 228, 92), 0.6);
}
.cw-bubble svg {
    width: 28px;
    height: 28px;
    fill: #000;
}
.cw-bubble.open svg { transform: none; }
.cw-bubble .cw-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(231,76,60,0.5);
    animation: cw-pulse 1.5s infinite;
}
@keyframes cw-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Chat Window */
.cw-window {
    position: fixed;
    bottom: 162px;
    right: 24px;
    width: 414px;
    max-width: calc(100vw - 32px);
    height: 590px;
    max-height: calc(100dvh - 186px);
    background: #0d0d0d;
    border: 1px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.25);
    border-radius: 20px;
    z-index: 100110;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both; /* Allow native resizing on desktop */
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(var(--brand-accent-rgb, 255, 228, 92), 0.15);
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.cw-window[hidden] { display: none; }
.cw-window.visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

/* Header */
.cw-header {
    cursor: grab;
    background: linear-gradient(135deg, rgba(var(--brand-accent-rgb, 255, 228, 92), 0.15), rgba(var(--brand-accent-rgb, 255, 228, 92), 0.05));
    padding: 16px 18px;
    border-bottom: 1px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cw-header-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--brand-accent, #ffe45c), var(--brand-accent, #ffe45c));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cw-header-avatar svg {
    width: 22px;
    height: 22px;
    fill: #000;
}
.cw-header-info {
    flex: 1;
    min-width: 0;
}
.cw-header-title {
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cw-header-status {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    white-space: nowrap;
}
.cw-header-status .dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    animation: cw-dot-pulse 2s infinite;
}
@keyframes cw-dot-pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.cw-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.2s;
    outline: none;
}
.cw-close:hover { color: #fff; }
.cw-close[hidden] { display: none; }
/* Start Form */
.cw-start {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    background-color: #0f0f0f;
    background-image: linear-gradient(rgba(15,15,15,0.58), rgba(15,15,15,0.58)), url('/images/bg/mramor.jpg');
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
}
.cw-start-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.cw-start-sub {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,0.72);
    margin-top: -8px;
    margin-bottom: 8px;
    max-width: 100%;
}
.cw-input {
    width: 100%;
    max-width: 100%;
    background: rgba(18,18,18,0.92);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: #fff;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.cw-input:focus {
    border-color: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.75);
}
.cw-input.is-invalid {
    border-color: #ff6b6b;
}
.cw-input::placeholder {
    color: rgba(255,255,255,0.42);
}
.cw-form-error {
    display: none;
    margin-top: -4px;
    color: #ff8a8a;
    font-size: 13px;
    line-height: 1.35;
}
.cw-form-error.visible {
    display: block;
}
.cw-start-btn {
    background: var(--brand-accent, #ffe45c);
    border: none;
    border-radius: 18px;
    color: #000;
    font-weight: 800;
    padding: 15px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    margin-top: 4px;
}
.cw-start-btn:hover { box-shadow: 0 4px 15px rgba(var(--brand-accent-rgb, 255, 228, 92), 0.4); }
.cw-start-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Messages — with subtle background pattern */
.cw-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #0f0f0f;
    background-image: linear-gradient(rgba(15,15,15,0.46), rgba(15,15,15,0.46)), url('/images/bg/mramor.jpg');
    background-size: cover;
    background-position: center;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.75) rgba(255,255,255,0.08);
}
.cw-messages::-webkit-scrollbar { width: 8px; }
.cw-messages::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
}
.cw-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(var(--brand-accent-rgb, 255, 228, 92), 0.92), rgba(var(--brand-accent-rgb, 255, 228, 92), 0.78));
    border-radius: 8px;
}
.cw-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(var(--brand-accent-rgb, 255, 228, 92), 1), rgba(var(--brand-accent-rgb, 255, 228, 92), 0.9));
}

.cw-msg {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: cw-msg-in 0.25s ease-out;
}
@keyframes cw-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.cw-msg.client {
    align-self: flex-end;
    background: var(--brand-accent-dark, #3b341c); /* Opaque dark gold */
    border: 1px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.4);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.cw-msg.admin {
    align-self: flex-start;
    background: #222222; /* Opaque dark gray */
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-bottom-left-radius: 4px;
}
.cw-msg-time {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cw-msg.client .cw-msg-time { justify-content: flex-end; }
/* Read receipts (double checkmarks) */
.cw-msg-time .cw-checks {
    display: inline-flex;
    gap: 0px;
    color: var(--brand-accent, #ffe45c);
    font-size: 12px;
    letter-spacing: -3px;
    margin-left: 2px;
}

.cw-welcome {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    padding: 20px 0;
}

/* Typing Indicator */
.cw-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.1);
    border-top: 1px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.2);
    width: 100%;
    box-sizing: border-box;
}
.cw-typing-label {
    font-size: 12px;
    color: var(--brand-accent, #ffe45c);
    font-weight: 600;
    white-space: nowrap;
}
.cw-typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}
.cw-typing-dots span {
    width: 5px;
    height: 5px;
    background: var(--brand-accent, #ffe45c);
    border-radius: 50%;
    animation: cw-typing-bounce 1.2s infinite;
}
.cw-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.cw-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cw-typing-bounce {
    0%,60%,100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Composer */
.cw-composer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.cw-composer textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    resize: none;
    min-height: 40px;
    max-height: 100px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    color: #fff;
    padding: 10px 12px;
    outline: none;
    font-size: 14px;
    line-height: 1.35;
    overflow-y: hidden;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.cw-composer textarea:focus { border-color: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.5); }
.cw-composer textarea::placeholder {
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
}
.cw-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent, #ffe45c), var(--brand-accent, #ffe45c));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.cw-send-btn:hover { box-shadow: 0 4px 12px rgba(var(--brand-accent-rgb, 255, 228, 92), 0.4); }
.cw-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cw-send-btn svg {
    width: 18px;
    height: 18px;
    fill: #000;
}
.cw-attach-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
}
.cw-attach-btn:hover { border-color: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.8); background: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.15); }
.cw-attach-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}
.cw-attach-btn:hover svg { fill: var(--brand-accent, #ffe45c); }
.cw-emoji-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    outline: none;
}
@media (max-width: 480px) {
    .cw-emoji-btn { display: none !important; }
}
@media (max-width: 640px) {
    .cw-composer {
        gap: 6px;
        padding: 10px 10px;
    }
    .cw-attach-btn,
    .cw-send-btn {
        width: 38px;
        height: 38px;
    }
    .cw-composer textarea {
        font-size: 13px;
        padding: 9px 10px;
    }
    .cw-composer textarea::placeholder {
        font-size: 12px;
    }
    .cw-emoji-btn { display: none !important; }
}

/* File messages */
.cw-msg img.cw-file-img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    object-fit: cover;
    image-orientation: from-image;
    margin-bottom: 4px;
    transition: transform 0.2s;
}
.cw-msg img.cw-file-img:hover { transform: scale(1.02); }
.cw-msg video.cw-file-vid {
    max-width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 4px;
}

/* Upload spinner */
.cw-upload-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    align-self: flex-end;
    background: rgba(var(--brand-accent-rgb, 255, 228, 92), 0.1);
    border: 1px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.2);
    border-radius: 16px;
    border-bottom-right-radius: 4px;
    max-width: 82%;
}
.cw-upload-spinner .cw-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.2);
    border-top-color: var(--brand-accent, #ffe45c);
    border-radius: 50%;
    animation: cw-spin 0.8s linear infinite;
}
@keyframes cw-spin {
    to { transform: rotate(360deg); }
}
.cw-upload-spinner span {
    font-size: 13px;
    color: var(--brand-accent, #ffe45c);
}
/* Reply Preview Bar */
.cw-reply-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    animation: cw-slide-up 0.2s ease-out;
}
.cw-reply-preview-content {
    flex: 1;
    border-left: 3px solid var(--brand-accent, #ffe45c);
    padding-left: 10px;
    overflow: hidden;
}
.cw-reply-preview-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-accent, #ffe45c);
    margin-bottom: 2px;
}
.cw-reply-preview-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cw-reply-close {
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    padding: 4px;
}
/* Quoted Message in bubble */
.cw-msg-quote {
    background: rgba(0,0,0,0.2);
    border-left: 3px solid rgba(var(--brand-accent-rgb, 255, 228, 92), 0.5);
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.cw-msg-quote-name {
    font-weight: 700;
    font-size: 11px;
    color: var(--brand-accent, #ffe45c);
    margin-bottom: 2px;
}
@keyframes cw-slide-up {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Lightbox */
.cw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100120;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: cw-lb-in 0.2s ease-out;
}
@keyframes cw-lb-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cw-lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(95vw, 1280px);
    max-height: 95vh;
    object-fit: contain;
    image-orientation: from-image;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: default;
}
.cw-lightbox img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}
.cw-lightbox .cw-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cw-lightbox .cw-lb-close:hover { background: rgba(255,255,255,0.3); }

/* Mobile */
@media (max-width: 480px) {
    .cw-window:not(.cw-window--inline) {
        position: fixed !important;
        inset: 0 !important;
        width: auto !important;
        max-width: none !important;
        height: 100dvh !important;
        max-height: none !important;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        resize: none;
    }
    .cw-header {
        padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) 12px calc(12px + env(safe-area-inset-left, 0px));
        gap: 10px;
    }
    .cw-header-avatar {
        width: 42px;
        height: 42px;
    }
    .cw-header-title {
        font-size: 15px;
    }
    .cw-header-status {
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cw-start {
        justify-content: flex-start;
        padding: calc(28px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) 18px calc(14px + env(safe-area-inset-left, 0px));
    }
    .cw-start-title { font-size: 22px; }
    .cw-start-sub { font-size: 14px; }
    .cw-messages {
        padding: 14px calc(12px + env(safe-area-inset-right, 0px)) 14px calc(12px + env(safe-area-inset-left, 0px));
        gap: 14px;
    }
    .cw-msg {
        font-size: 16px;
        border-radius: 18px;
        padding: 12px 16px;
    }
    .cw-composer {
        padding: 10px calc(8px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(8px + env(safe-area-inset-left, 0px));
        gap: 6px;
    }
    .cw-attach-btn,
    .cw-send-btn {
        width: 38px;
        height: 38px;
    }
    .cw-composer textarea {
        flex-basis: 0;
        font-size: 16px;
        min-height: 38px;
        padding: 8px 10px;
    }
    .cw-composer textarea::placeholder {
        font-size: 13px;
    }
    .cw-bubble {
        bottom: calc(92px + env(safe-area-inset-bottom));
        right: 16px;
        width: 58px;
        height: 58px;
    }
}

/* Embedded conversation: one workspace, with a first message instead of a lead form. */
.live-chat {
    padding: 60px 0 48px;
    background: #fff;
    color: #18212b;
    scroll-margin-top: 80px;
    font-family: 'Golos Text', Arial, sans-serif;
}
.live-chat__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.live-chat__title { margin: 0; font: 700 clamp(32px, 3.7vw, 48px)/1.12 'Geologica', Arial, sans-serif; letter-spacing: -.035em; }
.live-chat__title span { color: #7b858b; }
.live-chat__lead { margin: 0 0 4px; color: #65717a; font-size: 16px; line-height: 1.65; }
.live-chat__mount { min-width: 0; height: 530px; }
.live-chat__note { margin: 16px 0 0; color: #758089; font-size: 12px; line-height: 1.6; }
.live-chat__fallback { margin: 0; padding: 24px; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; }
.live-chat__mount:has(.cw-window:not([hidden])) .live-chat__fallback { display: none; }
.cw-window--inline {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    z-index: 1;
    resize: none;
    opacity: 1;
    pointer-events: auto;
    border-radius: 12px;
    box-shadow: none;
}
.cw-window--inline .cw-header { cursor: default; }
.cw-window--conversation:not(.cw-window--inline) .cw-start { padding: 20px; justify-content: flex-start; }
.cw-window--conversation:not(.cw-window--inline) .cw-header-note { display: none; }
.cw-window--conversation { background: #f3f4f1; border: 1px solid #dbe0de; color: #18212b; font: 400 16px/1.5 'Golos Text', Arial, sans-serif; }
.cw-window--conversation .cw-header { gap: 14px; padding: 20px 28px; background: #fff; border-color: #e3e6e3; }
.cw-window--conversation .cw-header-avatar { width: 48px; height: 48px; overflow: hidden; background: #e5e8e3; }
.cw-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cw-window--conversation .cw-header-title { color: #18212b; font-size: 18px; letter-spacing: 0; }
.cw-window--conversation .cw-header-status { color: #758089; font-size: 12px; }
.cw-header-note { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: #66716a; font-size: 12px; }
.cw-header-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #718773; }
.cw-window--conversation .cw-close { color: #66716a; }
.cw-window--conversation .cw-start,
.cw-window--conversation .cw-messages { background-color: #f3f4f1; background-image: radial-gradient(#a8b3a626 .8px, transparent .8px); background-size: 12px 12px; }
.cw-window--conversation .cw-start { justify-content: center; gap: 16px; padding: 28px 40px; min-height: 0; overflow-y: auto; }
.cw-greeting { max-width: 680px; padding: 16px 20px; border: 1px solid #e1e6df; border-radius: 0 16px 16px 16px; background: #fff; box-shadow: 0 3px 8px #28312805; }
.cw-greeting-author { display: block; margin-bottom: 5px; color: #697f6a; font-size: 12px; font-weight: 600; }
.cw-greeting p { margin: 0; color: #35424a; font-size: 15px; line-height: 1.6; }
.cw-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-prompts button { display: flex; align-items: center; gap: 16px; min-height: 38px; padding: 8px 12px; border: 1px solid #cdd6cd; border-radius: 20px; background: transparent; color: #405345; font: 400 13px/1.35 'Golos Text', Arial, sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.cw-prompts button:hover { background: #e5ebe1; border-color: #97a78f; }
.cw-first-composer { position: relative; flex-shrink: 0; min-height: 114px; border: 1px solid #cbd3cb; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.cw-first-composer:focus-within { border-color: #84977d; box-shadow: 0 0 0 3px #84977d1a; }
.cw-first-composer:has([aria-invalid="true"]) { border-color: #a52b2b; }
.cw-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#cwFirstMessage { display: block; width: 100%; min-height: 112px; margin: 0; padding: 18px 86px 18px 18px; border: 0; border-radius: inherit; background: transparent; color: #18212b; font: 400 16px/1.5 'Golos Text', Arial, sans-serif; resize: vertical; outline: none; }
#cwFirstMessage::placeholder { color: #929b98; }
.cw-first-composer .cw-start-btn { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border-radius: 50%; background: #26372b; color: #fff; box-shadow: none; }
.cw-first-composer .cw-start-btn:hover { background: #3e5540; }
.cw-first-composer .cw-start-btn svg { width: 24px; height: 24px; }
.cw-contact-details { flex-shrink: 0; }
.cw-contact-details summary { display: flex; align-items: center; gap: 8px; width: fit-content; color: #4c5b51; font-size: 13px; cursor: pointer; list-style: none; }
.cw-contact-details summary::-webkit-details-marker { display: none; }
.cw-contact-details summary svg { width: 16px; height: 16px; transition: transform .2s; }
.cw-contact-details[open] summary svg { transform: rotate(45deg); }
.cw-contact-details summary span { margin-left: 6px; color: #8b9690; font-size: 11px; }
.cw-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.cw-start-label { display: grid; gap: 6px; width: 100%; margin: 0; color: #d5dadd; font: 400 13px/1.4 'Golos Text', Arial, sans-serif; }
.cw-window--conversation .cw-start-label { color: #65716a; }
.cw-window--conversation .cw-input { padding: 11px 13px; border-color: #ccd5cc; border-radius: 8px; background: #fff; color: #18212b; }
.cw-window--conversation .cw-input::placeholder { color: #929b98; }
.cw-contact-hint { margin: 8px 0 0; color: #758079; font-size: 12px; line-height: 1.5; }
.cw-start-privacy { margin: 0; color: #9fa9b0; font-size: 11px; line-height: 1.5; }
.cw-window--conversation .cw-start-privacy { color: #7a867c; }
.cw-start-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cw-start-title { margin: 0; }
.cw-window--conversation .cw-form-error { color: #a52b2b; margin: 0; }
.cw-window--conversation .cw-msg.admin { background: #fff; border-color: #dce3d9; color: #35424a; }
.cw-window--conversation .cw-msg.client { background: #e3ebdb; border-color: #c9d6c1; color: #26372b; }
.cw-window--conversation .cw-msg-time { color: #7a867c; }
.cw-window--conversation .cw-composer { background: #fff; border-color: #dce3d9; }
.cw-window--conversation .cw-composer textarea { background: #f3f5f0; border-color: #d5ded1; color: #18212b; }
.cw-window--conversation .cw-attach-btn,
.cw-window--conversation .cw-emoji-btn { background: transparent; color: #546750; }
.cw-window--conversation .cw-attach-btn svg { fill: currentColor; }
.cw-window--conversation .cw-send-btn { background: #26372b; }
.cw-window--conversation .cw-send-btn svg { fill: #fff; }
.cw-window--conversation .cw-reply-preview { background: #e6ecdf; color: #26372b; border-color: #c9d6c1; }
.cw-window--conversation .cw-reply-preview-text { color: #65716a; }
.cw-window button:focus-visible,
.cw-window summary:focus-visible,
.cw-bubble:focus-visible { outline: 3px solid var(--brand-accent, #ffe45c); outline-offset: 3px; }
@media (max-width: 767.98px) {
    .live-chat { padding: 48px 0; }
    .live-chat__intro { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 24px; }
    .live-chat__title span { display: inline; }
    .live-chat__lead { font-size: 14px; }
    .live-chat__mount { height: 650px; }
    .cw-window--conversation .cw-header { padding: 16px 20px; }
    .cw-header-note { display: none; }
    .cw-window--conversation .cw-start { padding: 22px 20px; gap: 14px; justify-content: flex-start; }
    .cw-greeting { padding: 14px 16px; }
    .cw-greeting p { font-size: 14px; }
    .cw-prompts button { font-size: 12px; min-height: 38px; }
    .cw-contact-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cw-contact-details summary { flex-wrap: wrap; }
    .cw-contact-details summary span { margin-left: 24px; flex-basis: 100%; }
}
@media (max-width: 480px) {
    .cw-window--conversation .cw-start { padding: 20px 16px; }
    .cw-window--conversation .cw-header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    .cw-window, .cw-bubble, .cw-msg, .cw-contact-details summary svg { transition: none; animation: none; }
}
