.cw-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border: 2px solid #e9ecef;
    z-index: 2000;
    overflow: hidden;
    font-family: "Inter", sans-serif;
}
.cw-tab {
    flex: 1;
    background: none;
    border: none;
    color: #50617a;
    padding: 6px 4px 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-right: 1px solid #e9ecef;
}
.cw-tab:last-child {
    border-right: none;
}
.cw-tab i {
    font-size: 18px;
}
.cw-tab.cw-active {
    background: #f8f9fa;
    color: #0b57d0;
}

.cw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    display: none;
}
.cw-overlay.cw-overlay-active {
    display: block;
}
.cw-bubble {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 250px;
    background: #e8e9ff;
    border: 1px solid #1D4ED8;
    border-radius: 12px;
    padding: 14px 16px;
    z-index: 1998;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.cw-bubble::before,
.cw-bubble::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 83%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #e8e9ff;
    border-right: 1px solid #1D4ED8;
    border-bottom: 1px solid #1D4ED8;
    z-index: -1;
}
.cw-bubble.cw-bubble-show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cw-bubble-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #8a919b;
    cursor: pointer;
}
.cw-bubble-title {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #061b31;
    font-size: 16px;
    margin-bottom: 3px;
}
.cw-bubble-text {
    font-size: 14px;
    color: #50617a;
}

@media (max-width: 768px) {
    .cw-bubble {
        right: 17px;
    }
}

.cw-window {
    position: fixed;
    bottom: 58px;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    height: 620px;
    max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    font-family: "Inter", sans-serif;
}
.cw-window.cw-open {
    display: flex;
    margin-bottom: 28px;
}

.cw-header {
    background: #fff;
    color: #061b31;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 1.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    flex-shrink: 0;
}
.cw-header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cw-logo {
    width: 64px;
    float: left;
}
.cw-close {
    background: none;
    border: none;
    color: #061b31;
    font-size: 28px;
    font-weight: 100;
    line-height: 1;
    cursor: pointer;
}

.cw-body {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.cw-form-wrap {
    padding: 16px;
}
.cw-form-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #061b31;
    margin-bottom: 4px;
}
.cw-form-sub {
    font-size: 16px;
    color: #50617a;
    margin-bottom: 14px;
}
.cw-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cw-form-wrap input,
.cw-form-wrap textarea {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
}
.cw-form-wrap input:focus,
.cw-form-wrap textarea:focus {
    border-color: var(--cnvs-input-focus-border-color, #86b7fe);
    box-shadow: var(--cnvs-input-focus-box-shadow, 0 0 0 0.25rem rgba(13, 110, 253, 0.25));
    outline: none;
}
.cw-form-wrap textarea {
    resize: vertical;
    min-height: 70px;
}
.cw-form-wrap button[type="submit"] {
    background: #0b57d0;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
}
.cw-form-wrap input::placeholder,
.cw-form-wrap textarea::placeholder,
.cw-input-row input::placeholder {
    color: #50617a;
}
.cw-consent {
    font-size: 13px;
    color: #7b8094;
    line-height: 1.4;
    margin: 2px 0 20px;
}
.cw-consent a {
    color: #0b57d0;
    text-decoration: underline;
}
.cw-chat-consent {
    padding: 16px;
    margin: 0;
}
.cw-confirm {
    padding: 20px 16px;
    text-align: center;
    color: #16263f;
    font-size: 14px;
    line-height: 1.5;
}
.cw-confirm i {
    font-size: 32px;
    color: #2a9d5c;
    display: block;
    margin-bottom: 10px;
}

.cw-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cw-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}
.cw-msg-bot {
    background: #fff;
    border: 1px solid #e2e5e9;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.cw-msg-user {
    background: #1d3557;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.cw-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 12px 14px;
}
.cw-option-btn {
    background: #e8e9ff;
    border: 1px solid #0b57d0;
    color: #0b57d0;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 13px;
    cursor: pointer;
}
.cw-option-btn:hover {
    background: #0b57d0;
    color: #fff;
}
.cw-input-row {
    display: flex;
    border-top: 1px solid #e2e5e9;
    padding: 16px;
    gap: 8px;
    background: #fff;
    flex-shrink: 0;
}
.cw-input-row input {
    flex: 1;
    border: 1px solid #dcdfe3;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
}
.cw-input-row input:focus {
    border-color: #1d3557;
}
.cw-input-row button {
    background: #0b57d0;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    flex-shrink: 0;
}

.cw-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px !important;
}
.cw-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b0b8c1;
    animation: cw-typing-bounce 1.2s infinite ease-in-out;
}
.cw-typing span:nth-child(2) { animation-delay: 0.15s; }
.cw-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cw-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
    30% { transform: translateY(-4px); opacity: 1; }
}

@media (min-width: 769px) {
    .cw-bar {
        left: auto;
        right: 20px;
        bottom: 28px;
        width: 250px;
        border-radius: 4px;
    }
    .cw-window {
        right: 20px;
        left: auto;
        bottom: 90px;
        width: 430px;
        border-radius: 12px 12px 4px 12px;
    }
}

@media (max-width: 768px) {
    .cw-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .cw-header {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .cw-header-brand {
        padding: 0.375rem 0 0.375rem 0;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .cw-close {
        font-size: 42px;
        margin-top: -2px;
        margin-right: -10px;
        color: #000;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .cw-window {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-inline: 1px solid #dee2e5;
        border-radius: 0;
        margin-left: 0;
        display: flex;
        opacity: 0;
        transform: translateY(-50px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.15s linear, transform 0.3s ease-out, visibility 0.3s;
    }
    .cw-window.cw-open {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }
    .cw-overlay {
        display: none !important;
    }
}