/* =============================================================
   Unified Chat Launcher — unified.css
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
    --uc-primary:     #0c0c0c;
    --uc-primary-dk:  #1a1a1a;
    --uc-text-light:  #ffffff;
    --uc-menu-bg:     #0c0c0c;
    --uc-divider:     rgba(255,255,255,0.3);
    --uc-radius:      14px;
    --uc-shadow:      0 6px 24px rgba(0,0,0,0.22);
    --uc-z:           10000;
    --uc-border-w:    2px;
    --uc-border-c:    #0c0c0c;
}

.uc-launcher {
    position: fixed !important;
    bottom: var(--uc-bottom, 24px);
    left: var(--uc-left, auto);
    right: var(--uc-right, 24px);
    top: auto !important;
    z-index: var(--uc-z) !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    transform: translateZ(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.uc-launcher.uc-scroll-hidden:not(.is-open) {
    opacity: 0;
    transform: translateZ(0) translateY(80px);
    pointer-events: none;
}

.uc-launcher.uc-cart-open {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateZ(0) translateY(80px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

.uc-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--uc-primary);
    color: var(--uc-text-light);
    border: var(--uc-border-w) solid var(--uc-border-c);
    border-radius: 50px;
    padding: 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--uc-shadow);
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.uc-toggle-btn:hover,
.uc-toggle-btn:focus {
    background: var(--uc-primary-dk);
    outline: none;
}

.uc-toggle-btn:active {
    transform: scale(0.97);
}

.uc-toggle-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.uc-icon-close { display: none; }
.uc-icon-chat  { display: block; }

.uc-launcher.is-open .uc-icon-close { display: block; }
.uc-launcher.is-open .uc-icon-chat  { display: none; }
.uc-launcher.is-open .uc-toggle-label { display: none; }

.uc-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    left: auto;
    background: var(--uc-menu-bg);
    border-radius: var(--uc-radius);
    box-shadow: var(--uc-shadow);
    overflow: hidden;
    min-width: 260px;
    max-width: 320px;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.uc-menu[aria-hidden="false"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.uc-side-left .uc-menu {
    right: auto;
    left: 0;
}

.uc-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: var(--uc-text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--uc-divider);
    transition: background 0.15s;
}

.uc-option:last-child { border-bottom: none; }

.uc-option:hover,
.uc-option:focus {
    background: rgba(0,0,0,0.08);
    outline: none;
    color: var(--uc-text-light);
}

.uc-option.oct8ne-widget-on,
.uc-option.oct8ne-widget-off {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: nowrap;
}

.uc-option.oct8ne-widget-on .uc-option-text,
.uc-option.oct8ne-widget-off .uc-option-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.2;
}

.uc-option.oct8ne-widget-on br,
.uc-option.oct8ne-widget-off br {
    display: none !important;
}

.uc-option-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-option-icon svg {
    width: 22px;
    height: 22px;
}

.uc-option-text {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
    min-width: 0;
}

.uc-option-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.uc-option-text small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    margin-top: 3px;
    opacity: 0.85;
}

.uc-option-text small.uc-recommended {
    font-weight: 600;
    opacity: 0.95;
}

.oct8ne-widget-on,
.oct8ne-widget-off {
    display: none;
}

.whatsapp-layout {
    display: none !important;
}

body.uc-hide-oct8ne #powered-by-oct8ne,
body.uc-hide-oct8ne .powered-by-oct8ne,
body.uc-hide-oct8ne .custom-chat-powered-oct8ne,
body.uc-hide-oct8ne chat-oct8ne,
body.uc-hide-oct8ne #livechat-wrapper,
body.uc-hide-oct8ne p.powered-by-oct8ne {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

@media (max-width: 600px) {

    .uc-toggle-btn {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
        overflow: hidden;
    }

    .uc-toggle-label,
    .uc-launcher.is-open .uc-toggle-label {
        display: none !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    .uc-toggle-btn .uc-icon-chat {
        display: block !important;
        width: 26px !important;
        height: 26px !important;
        flex-shrink: 0;
        margin: 0 !important;
    }
    .uc-toggle-btn .uc-icon-close,
    .uc-launcher.is-open .uc-toggle-btn .uc-icon-close {
        display: none !important;
    }

    .uc-menu {
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}
