/**
 * The Conviqo AI Chatbot — Frontend Widget Styles
 */

:root {
    --ttb-primary: #4F46E5;
    --ttb-primary-dark: #D88E05;
    --ttb-secondary: #0F172A;
    --ttb-secondary-light: #2A3E66;
    --ttb-bg-light: #F8FAFC;
    --ttb-border: #E2E8F0;
    --cw-text-main: #1E293B;
    --cw-text-muted: #64748B;
    --ttb-user-bubble: #0F172A;
    --cw-bot-bubble: #FFFFFF;
    --ttb-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.05);
    --ttb-z-index: 2147483647;
    --ttb-radius: 16px;
    --ttb-width: 400px;
    --ttb-height: 600px;
    --cw-launcher-size: 60px;
}

/* ==========================================================================
   Base Container & Positioning
   ========================================================================== */

.conviqo-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cw-text-main);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.conviqo-container *,
.conviqo-container *::before,
.conviqo-container *::after {
    box-sizing: inherit;
}

/* Theme button resets */
.conviqo-container button {
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
}

.cw-mode-floating {
    position: fixed;
    z-index: var(--ttb-z-index);
}

.cw-pos-bottom-right {
    bottom: var(--cw-bottom-offset, 24px);
    right: var(--cw-side-offset, 24px);
}

.cw-pos-bottom-left {
    bottom: var(--cw-bottom-offset, 24px);
    left: var(--cw-side-offset, 24px);
}

.cw-pos-middle-right {
    top: calc(50% + var(--cw-vertical-offset, 0px));
    transform: translateY(-50%);
    right: var(--cw-side-offset, 24px);
    bottom: auto;
}

.cw-pos-middle-left {
    top: calc(50% + var(--cw-vertical-offset, 0px));
    transform: translateY(-50%);
    left: var(--cw-side-offset, 24px);
    bottom: auto;
}

/* Inline shortcode mode */
.cw-mode-inline {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
}

.cw-mode-inline .cw-chat-window {
    position: relative;
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    width: 100%;
    max-width: 600px;
    height: 620px;
    margin: 0 auto;
    box-shadow: var(--ttb-shadow);
}

/* ==========================================================================
   Launcher Button
   ========================================================================== */

.cw-launcher-btn {
    width: var(--cw-launcher-size);
    height: var(--cw-launcher-size);
    border-radius: 50%;
    background: var(--ttb-secondary);
    border: 3px solid var(--ttb-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    padding: 0;
    outline: none;
}

.cw-launcher-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(247, 168, 13, 0.4);
}

.cw-launcher-btn:focus-visible {
    outline: 3px solid var(--ttb-primary);
    outline-offset: 3px;
}

.cw-launcher-icon-open,
.cw-launcher-icon-close {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cw-launcher-icon-open img {
    border-radius: 50%;
    display: block;
}

.cw-launcher-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    color: #FFFFFF;
}

.ttb-is-open .cw-launcher-icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.ttb-is-open .cw-launcher-icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.cw-launcher-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    animation: ttbPulse 2s infinite;
}

@keyframes ttbPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ==========================================================================
   Chat Window
   ========================================================================== */

.cw-chat-window {
    position: absolute;
    bottom: calc(var(--cw-launcher-size) + 16px);
    right: 0;
    width: var(--ttb-width);
    height: var(--ttb-height);
    max-height: calc(100vh - 120px);
    background: var(--ttb-bg-light);
    border-radius: var(--ttb-radius);
    box-shadow: var(--ttb-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    border: 1px solid var(--ttb-border);
}

.cw-pos-bottom-left .cw-chat-window {
    right: auto;
    left: 0;
    transform-origin: bottom left;
}

.cw-pos-middle-right .cw-chat-window {
    bottom: auto;
    top: 50%;
    right: calc(var(--cw-launcher-size) + 16px);
    left: auto;
    max-height: calc(100vh - 40px);
    transform: translateY(-50%) scale(0.95);
    transform-origin: center right;
}

.cw-pos-middle-left .cw-chat-window {
    bottom: auto;
    top: 50%;
    left: calc(var(--cw-launcher-size) + 16px);
    right: auto;
    max-height: calc(100vh - 40px);
    transform: translateY(-50%) scale(0.95);
    transform-origin: center left;
}

.ttb-is-open .cw-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cw-pos-middle-right.ttb-is-open .cw-chat-window,
.cw-pos-middle-left.ttb-is-open .cw-chat-window {
    transform: translateY(-50%) scale(1);
}

/* ==========================================================================
   Header
   ========================================================================== */

.cw-chat-header {
    background: var(--ttb-secondary);
    color: #FFFFFF;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--ttb-primary);
    flex-shrink: 0;
}

.cw-launcher-btn.cw-icon-style-chat_bubble .cw-launcher-icon-open svg {
    color: var(--ttb-primary);
}

.cw-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cw-header-logo-wrap {
    max-width: 110px;
    max-height: 36px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 10px;
    margin-right: 2px;
}

.cw-header-logo-img {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
    display: block;
}

.cw-header-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 2px;
    flex-shrink: 0;
}

.cw-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.cw-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    border: 2px solid var(--ttb-secondary);
}

.cw-bot-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.cw-bot-subtitle {
    display: block;
    font-size: 11px;
    color: #94A3B8;
    margin-top: 1px;
}

.cw-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-header-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    padding: 0 !important;
    border-radius: 8px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    box-shadow: none !important;
    line-height: 1 !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease !important;
}

.cw-header-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
    transform: scale(1.05);
}

.cw-header-btn svg {
    display: block;
    stroke: #FFFFFF !important;
}

/* ==========================================================================
   Conversation Messages Area
   ========================================================================== */

.cw-chat-messages {
    flex: 1 1 0%;
    min-height: 0 !important;
    height: 100%;
    max-height: 100%;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    pointer-events: auto !important;
}

.cw-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.cw-chat-messages::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.ttb-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: ttbMessageIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ttbMessageIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ttb-msg-user {
    align-self: flex-end;
    align-items: flex-end;
}

.ttb-msg-assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.ttb-msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    word-break: break-word;
}

.ttb-msg-user .ttb-msg-bubble {
    background: var(--ttb-user-bubble);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.ttb-msg-assistant .ttb-msg-bubble {
    background: var(--cw-bot-bubble);
    color: var(--cw-text-main);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ttb-border);
}

.ttb-msg-bubble p {
    margin: 0 0 8px;
    line-height: 1.55;
}

.ttb-msg-bubble p:last-child {
    margin-bottom: 0;
}

.ttb-msg-bubble strong {
    font-weight: 600;
    color: inherit;
}

.ttb-msg-bubble ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.ttb-msg-bubble ol {
    margin: 8px 0;
    padding-left: 22px;
    list-style-type: decimal;
}

.ttb-msg-bubble li {
    margin-bottom: 8px;
    line-height: 1.55;
}

.ttb-msg-bubble ul.cw-chat-sublist {
    margin: 6px 0 8px 0;
    padding-left: 18px;
    list-style-type: disc;
}

.ttb-msg-bubble ul.cw-chat-sublist li {
    margin-bottom: 4px;
    line-height: 1.45;
    font-size: 0.94em;
    opacity: 0.92;
}

.ttb-msg-bubble li:last-child {
    margin-bottom: 2px;
}

/* Links rendered as Modern Interactive Button Pills */
.ttb-msg-bubble a,
.cw-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0B0F26;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 9999px;
    margin: 4px 6px 4px 0;
    border: 1px solid #2563EB;
    box-shadow: 0 2px 6px rgba(11, 15, 38, 0.14);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    vertical-align: middle;
    cursor: pointer;
    line-height: 1.3;
}

.ttb-msg-bubble a:hover,
.cw-chat-btn:hover {
    background: #2563EB;
    border-color: #1D4ED8;
    color: #FFFFFF !important;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}

.ttb-msg-bubble a:active,
.cw-chat-btn:active {
    transform: translateY(0);
}

.ttb-msg-time {
    font-size: 10px;
    color: var(--cw-text-muted);
    margin-top: 4px;
    padding: 0 4px;
}

/* Source Citations - Strictly and Permanently Hidden */
.ttb-msg-sources,
.ttb-sources-title,
.ttb-sources-list,
.ttb-source-chip,
.cw-show-sources-active .ttb-msg-sources {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ttb-sources-title {
    display: inline-block;
    font-weight: 700;
    color: var(--cw-text-muted);
    margin-right: 6px;
    margin-bottom: 4px;
    font-size: 10.5px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ttb-sources-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    vertical-align: middle;
}

.ttb-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F1F5F9;
    color: #334155;
    text-decoration: none !important;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    transition: all 0.15s ease;
}

.ttb-source-chip:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #2563EB;
}

.ttb-source-chip-text {
    display: inline-block;
}

/* Typing Indicator */
.ttb-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    background: #FFFFFF;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--ttb-border);
    width: fit-content;
}

.ttb-dot {
    width: 6px;
    height: 6px;
    background: #94A3B8;
    border-radius: 50%;
    animation: ttbBounce 1.4s infinite ease-in-out both;
}

.ttb-dot:nth-child(1) { animation-delay: -0.32s; }
.ttb-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes ttbBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==========================================================================
   Quick Suggestions Chips
   ========================================================================== */

.cw-quick-suggestions {
    padding: 8px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    flex-shrink: 0;
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.cw-quick-suggestions::-webkit-scrollbar {
    width: 4px;
}

.cw-quick-suggestions::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.cw-chip,
.ttb-chip {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
}

.cw-chip::after,
.ttb-chip::after {
    content: "→";
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cw-chip:hover,
.ttb-chip:hover {
    background: #F1F5F9 !important;
    border-color: var(--ttb-primary, #4F46E5) !important;
    color: var(--ttb-primary, #4F46E5) !important;
    transform: translateX(2px) !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.12) !important;
}

.cw-chip:hover::after,
.ttb-chip:hover::after {
    color: var(--ttb-primary, #4F46E5);
    transform: translateX(2px);
}

/* ==========================================================================
   Lead Proposal Drawer (Slide Up)
   ========================================================================== */

.cw-lead-drawer,
.cw-ticket-drawer,
.cw-ticket-track-drawer,
.cw-handoff-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 3px solid var(--ttb-primary);
    border-top-left-radius: var(--ttb-radius);
    border-top-right-radius: var(--ttb-radius);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.14);
    padding: 18px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    z-index: 15;
    max-height: 88%;
    overflow-y: auto;
    visibility: hidden !important;
    pointer-events: none !important;
}

.cw-lead-drawer.cw-drawer-open,
.cw-ticket-drawer.cw-drawer-open,
.cw-ticket-track-drawer.cw-drawer-open,
.cw-handoff-drawer.cw-drawer-open {
    transform: translateY(0);
    visibility: visible !important;
    pointer-events: auto !important;
}

.cw-ticket-drawer {
    border-top-color: #EF4444;
}

.cw-ticket-track-drawer {
    border-top-color: #10B981;
}

.cw-handoff-drawer {
    border-top-color: #2DD9C4;
}

.cw-category-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.cw-cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cw-cat-pill:hover {
    border-color: #94A3B8;
    background: #F1F5F9;
}

.cw-cat-pill input[type="radio"] {
    margin: 0;
}

.cw-cat-pill:has(input:checked) {
    border-color: #0B0F26;
    background: #EFF6FF;
    color: #1D4ED8;
}

.cw-ticket-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
}

.cw-tkt-msg {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.45;
}

.cw-tkt-msg-staff {
    background: #F0FDFA;
    border: 1px solid #CCFBF1;
    color: #0F766E;
    align-self: flex-start;
    width: 90%;
}

.cw-tkt-msg-customer {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    align-self: flex-end;
    width: 90%;
}

.cw-tkt-msg-meta {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.cw-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cw-drawer-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ttb-secondary);
}

.cw-drawer-close {
    background: transparent;
    border: none;
    font-size: 16px;
    color: #94A3B8;
    cursor: pointer;
}

.cw-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cw-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cw-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cw-form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--cw-text-muted);
}

.cw-form-group input,
.cw-form-group textarea {
    padding: 8px 10px;
    border: 1px solid var(--ttb-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    color: var(--cw-text-main);
    background: #F8FAFC;
    outline: none;
    transition: border 0.15s;
}

.cw-form-group input:focus,
.cw-form-group textarea:focus {
    border-color: var(--ttb-primary);
    background: #FFFFFF;
}

.cw-consent-group {
    margin-top: 4px;
}

.cw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: var(--cw-text-muted);
    cursor: pointer;
}

.cw-submit-btn {
    background: var(--ttb-primary);
    color: var(--ttb-secondary);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 6px;
}

.cw-submit-btn:hover {
    background: var(--ttb-primary-dark);
}

/* ==========================================================================
   Input Bar
   ========================================================================== */

.cw-chat-input-wrap {
    padding: 12px 16px 10px;
    background: #FFFFFF;
    border-top: 1px solid var(--ttb-border);
    flex-shrink: 0;
}

.cw-input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--ttb-bg-light);
    border: 1px solid var(--ttb-border);
    border-radius: 24px;
    padding: 6px 6px 6px 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cw-input-container:focus-within {
    border-color: var(--ttb-primary);
    box-shadow: 0 0 0 2px rgba(247, 168, 13, 0.2);
}

.cw-chat-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 100px;
    padding: 4px 0;
    line-height: 1.4;
    color: var(--cw-text-main);
}

.cw-voice-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid #E2E8F0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cw-voice-btn:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
    transform: scale(1.05);
}

.cw-voice-btn.cw-mic-listening {
    background: #EF4444 !important;
    color: #FFFFFF !important;
    border-color: #DC2626 !important;
    animation: cwMicPulse 1.2s infinite ease-in-out !important;
}

@keyframes cwMicPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.cw-send-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background: var(--ttb-primary) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.15s, background 0.15s !important;
}

.cw-send-btn:hover {
    background: var(--ttb-primary-dark) !important;
    transform: scale(1.06);
}

.cw-send-btn svg {
    display: block !important;
    stroke: #FFFFFF !important;
    fill: none !important;
    width: 18px !important;
    height: 18px !important;
}

/* ==========================================================================
   2-Tier Action Toolbar & Dedicated Branding Row
   ========================================================================== */

.cw-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px 6px;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
    flex-wrap: wrap;
}

.cw-toolbar-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cw-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.25;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.cw-toolbar-btn:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.cw-toolbar-btn:active {
    transform: translateY(0);
}

.cw-tb-icon {
    font-size: 12px;
    line-height: 1;
}

.cw-toolbar-cta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cw-cta-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.25;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.08);
}

.cw-cta-pill-btn:hover {
    background: #DCFCE7;
    border-color: #86EFAC;
    color: #166534;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.cw-cta-pill-btn:active {
    transform: translateY(0);
}

.cw-cta-arrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.cw-cta-pill-btn:hover .cw-cta-arrow {
    transform: translateX(3px);
}

/* Dedicated Branding / Watermark Row (Tier 2) */
.cw-branding-row {
    padding: 2px 14px 7px;
    text-align: center;
    background: #FFFFFF;
}

.cw-branding-link {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #94A3B8;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.cw-branding-link:hover {
    color: #475569;
    text-decoration: underline;
}

/* ==========================================================================
   Mobile Responsiveness (Fullscreen App Layout)
   ========================================================================== */

@media (max-width: 768px) {
    .cw-pos-bottom-right,
    .cw-pos-bottom-left,
    .cw-pos-middle-right,
    .cw-pos-middle-left {
        bottom: var(--cw-bottom-offset, 16px);
        top: auto;
        transform: none;
    }

    .cw-pos-bottom-right,
    .cw-pos-middle-right {
        right: var(--cw-side-offset, 16px);
        left: auto;
    }

    .cw-pos-bottom-left,
    .cw-pos-middle-left {
        left: var(--cw-side-offset, 16px);
        right: auto;
    }

    .conviqo-container.ttb-is-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        z-index: 999999999 !important;
    }

    .cw-chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        transform: translateY(100%);
        display: flex !important;
        flex-direction: column !important;
        z-index: 999999999 !important;
        margin: 0 !important;
    }

    .ttb-is-open .cw-chat-window {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .ttb-is-open #cw-chat-launcher {
        display: none !important;
    }

    .cw-chat-header {
        padding: 12px 16px !important;
        flex-shrink: 0 !important;
    }

    .cw-chat-messages {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 14px 16px !important;
    }

    .cw-quick-suggestions {
        flex-shrink: 0 !important;
        padding: 0 14px 8px !important;
    }

    .cw-chat-input-wrap {
        flex-shrink: 0 !important;
        padding: 10px 14px !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        background: #FFFFFF !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .cw-chat-input {
        font-size: 15px !important; /* Prevents auto-zoom in iOS Safari */
    }

    /* Suppress overlapping third-party floating buttons (e.g. WhatsApp, Chat badges) when chat is open — exclude Conviqo's own buttons */
    body.cw-chat-active .whatsapp-button:not(.conviqo-container *),
    body.cw-chat-active [class*="whatsapp"]:not(.conviqo-container *):not([class*="cw-"]):not([class*="ttb-"]),
    body.cw-chat-active [id*="whatsapp"]:not(.conviqo-container *):not([id*="cw-"]):not([id*="ttb-"]),
    body.cw-chat-active [href*="whatsapp.com"]:not(.conviqo-container *),
    body.cw-chat-active [href*="wa.me"]:not(.conviqo-container *),
    body.cw-chat-active .joinchat,
    body.cw-chat-active .chaty-widget,
    body.cw-chat-active .ht-ctc-chat,
    body.cw-chat-active .qlwapp,
    body.cw-chat-active .wame_box,
    body.cw-chat-active .nj-facebook-messenger,
    body.cw-chat-active .crisp-client,
    body.cw-chat-active #tidio-chat,
    body.cw-chat-active #hubspot-messages-iframe-container {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        z-index: -1 !important;
    }
}

/* ==========================================================================
   🤝 Human Handoff / Live Escalation Slide Drawer & Triggers
   ========================================================================== */

/* Drawer Header Titles */
.cw-handoff-drawer-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0B0F26;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cw-handoff-drawer-subtitle {
    margin: 4px 0 0;
    font-size: 11.5px;
    color: #64748B;
    line-height: 1.4;
}

/* Rich Channel Cards Inside Slide Drawer */
.cw-handoff-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
}

.cw-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #0F172A;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.cw-channel-card:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.cw-channel-card:active {
    transform: translateY(0);
}

.cw-channel-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cw-channel-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cw-channel-card:hover .cw-channel-icon-wrap {
    transform: scale(1.08);
}

.cw-channel-icon-wrap svg {
    width: 18px;
    height: 18px;
}

/* Channel Palette Accents (Strict Purple Ban Compliant) */
.cw-channel-icon-wrap.whatsapp {
    background: #DCFCE7;
    color: #16A34A;
}

.cw-channel-icon-wrap.whatsapp svg {
    fill: #16A34A;
}

.cw-channel-icon-wrap.phone {
    background: #DBEAFE;
    color: #2563EB;
}

.cw-channel-icon-wrap.phone svg {
    stroke: #2563EB;
}

.cw-channel-icon-wrap.email {
    background: #FEF3C7;
    color: #D97706;
}

.cw-channel-icon-wrap.email svg {
    stroke: #D97706;
}

.cw-channel-icon-wrap.custom {
    background: #E0F2FE;
    color: #0284C7;
}

.cw-channel-icon-wrap.custom svg {
    stroke: #0284C7;
}

.cw-channel-info h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #0B0F26;
    line-height: 1.25;
}

.cw-channel-info p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #64748B;
    line-height: 1.3;
}

.cw-channel-arrow {
    font-size: 15px;
    font-weight: 700;
    color: #94A3B8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cw-channel-card:hover .cw-channel-arrow {
    color: #0F172A;
    transform: translateX(3px);
}

/* ==========================================================================
   Above-Input Quick Trigger Bar (Docked Pill)
   ========================================================================== */

.cw-handoff-bar {
    padding: 6px 14px 4px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.cw-handoff-pill-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cw-handoff-pill-btn:hover {
    border-color: #2DD9C4;
    color: #0F172A;
    background: #F0FDF4;
    box-shadow: 0 2px 6px rgba(45, 217, 196, 0.15);
    transform: translateY(-1px);
}

.cw-handoff-pill-left {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cw-handoff-pill-icon {
    font-size: 13px;
    line-height: 1;
}

.cw-handoff-pill-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #1E293B;
}

.cw-handoff-pill-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cw-handoff-pill-badge {
    font-size: 9.5px;
    font-weight: 700;
    color: #16A34A;
    background: #DCFCE7;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cw-handoff-pill-arrow {
    font-size: 12px;
    font-weight: 700;
    color: #94A3B8;
}

/* ==========================================================================
   Header Quick Action Button
   ========================================================================== */

#cw-btn-handoff-header {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.2s ease;
}

#cw-btn-handoff-header:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.08);
}

#cw-btn-handoff-header svg {
    width: 16px;
    height: 16px;
    stroke: #FFFFFF;
}

/* ==========================================================================
   🔴 Live Human Takeover Styles (v1.3.0)
   ========================================================================== */

/* Live Chat Drawer Icon Wrap */
.cw-channel-icon-wrap.live_chat {
    background: #EFF6FF;
    color: #2563EB;
}

.cw-channel-icon-wrap.live_chat svg {
    stroke: #2563EB;
}

/* System Notice Pill (Announcements, Join/Leave events) */
.ttb-msg-system {
    align-self: center !important;
    align-items: center !important;
    max-width: 92% !important;
    margin: 8px auto !important;
    animation: ttbMessageIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ttb-msg-system .ttb-msg-bubble {
    background: #F8FAFC !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    border: 1px solid #E2E8F0 !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Animated Pulsing Status Dot */
.cw-live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: cwPulseGreen 1.6s infinite;
    flex-shrink: 0;
}

@keyframes cwPulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Live Agent Message Bubble Styling */
.ttb-msg-agent {
    align-self: flex-start;
    align-items: flex-start;
}

.ttb-agent-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 11px;
    color: #475569;
}

.ttb-agent-meta strong {
    color: #065F46;
    font-weight: 700;
}

.ttb-agent-badge {
    display: inline-flex;
    align-items: center;
    background: #ECFDF5;
    color: #047857;
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid #A7F3D0;
}

.ttb-agent-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

.ttb-msg-agent .ttb-msg-bubble {
    background: #FFFFFF !important;
    color: var(--cw-text-main) !important;
    border-left: 3px solid #10B981 !important;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--ttb-border);
    border-right: 1px solid var(--ttb-border);
    border-bottom: 1px solid var(--ttb-border);
}

/* ==========================================================================
   🛍️ Interactive Product Cards & Swipeable Carousel
   ========================================================================== */

.ttb-message.cw-has-products {
    max-width: 100% !important;
    width: 100% !important;
}

.cw-product-carousel-wrap {
    position: relative;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 2px;
}

.cw-product-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 10px 4px;
    scrollbar-width: none;
}

.cw-product-carousel::-webkit-scrollbar {
    display: none;
}

.cw-product-card {
    flex: 0 0 205px;
    width: 205px;
    scroll-snap-align: start;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.06), 0 1px 4px -1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    user-select: none;
}

.cw-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -2px rgba(0, 0, 0, 0.1);
    border-color: #CBD5E1;
}

.cw-product-carousel-wrap.cw-single-product .cw-product-card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 275px;
}

.cw-pc-media {
    position: relative;
    width: 100%;
    height: 125px;
    background: #F1F5F9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-pc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cw-product-card:hover .cw-pc-img {
    transform: scale(1.05);
}

.cw-pc-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
    color: #94A3B8;
}

.cw-pc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #DC2626;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.35);
    z-index: 2;
}

.cw-pc-body {
    padding: 10px 12px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    justify-content: space-between;
}

.cw-pc-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.cw-pc-category {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 110px;
}

.cw-pc-stock {
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cw-pc-stock.in-stock {
    color: #059669;
}

.cw-pc-stock.out-of-stock {
    color: #94A3B8;
}

.cw-pc-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.cw-pc-stock.in-stock .cw-pc-stock-dot {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cw-pc-stock.out-of-stock .cw-pc-stock-dot {
    background: #94A3B8;
}

.cw-pc-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.35;
    margin: 2px 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 35px;
}

.cw-pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.cw-pc-price {
    font-size: 15px;
    font-weight: 800;
    color: #0F172A;
}

.cw-pc-reg-price {
    font-size: 12px;
    color: #94A3B8;
    text-decoration: line-through;
    font-weight: 500;
}

.cw-pc-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.cw-pc-btn {
    flex: 1 1 auto;
    height: 32px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.cw-pc-add-btn {
    background: var(--ttb-primary, #0F172A);
    color: #FFFFFF !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cw-pc-add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cw-pc-add-btn.cw-btn-loading {
    opacity: 0.85;
    pointer-events: none;
}

.cw-pc-add-btn.cw-btn-success {
    background: #059669 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.cw-pc-view-btn {
    background: #F1F5F9;
    color: #1E293B !important;
    border: 1px solid #CBD5E1;
}

.cw-pc-view-btn:hover {
    background: #E2E8F0;
    color: #0F172A !important;
}

.cw-pc-btn-disabled {
    background: #F1F5F9;
    color: #94A3B8;
    cursor: not-allowed;
    border: 1px solid #E2E8F0;
}

.cw-pc-link-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 7px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    text-decoration: none;
    transition: all 0.15s ease;
}

.cw-pc-link-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #CBD5E1;
}

.cw-carousel-arrow {
    position: absolute;
    top: 62px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.15s ease;
    padding: 0;
    outline: none;
}

.cw-carousel-arrow:hover {
    background: #F8FAFC;
    transform: scale(1.12);
    color: #0F172A;
}

.cw-carousel-prev {
    left: -8px;
}

.cw-carousel-next {
    right: -8px;
}

.cw-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px 0 6px;
}

.cw-carousel-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cw-carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #CBD5E1;
    transition: all 0.2s ease;
}

.cw-carousel-dot.active {
    width: 14px;
    border-radius: 4px;
    background: var(--ttb-primary, #0F172A);
}

.cw-carousel-counter {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}

@keyframes cwSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cw-btn-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    display: inline-block;
    animation: cwSpin 0.7s linear infinite;
    vertical-align: middle;
}


