.sm-cookie-hide {
    display: none !important;
}

.sm-cookie-banner {
    position: fixed !important;
    bottom: 24px !important;
    left: 24px !important;
    width: 360px !important;
    max-width: calc(100vw - 48px) !important;
    z-index: 999999 !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    transform: translateY(150%) scale(0.95) !important;
    opacity: 0 !important;
    overflow: hidden !important;
    
    /* High-contrast Debug Styles */
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 2px solid #3b82f6 !important;
}

.sm-cookie-banner.sm-cookie-active {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

/* Explicit Light Mode Override */
html[data-theme="light"] .sm-cookie-banner {
    background: #ffffff !important;
    border: 2px solid #005eff !important;
    color: #1e293b !important;
}

/* Explicit Dark Mode Override */
html[data-theme="dark"] .sm-cookie-banner {
    background: #0f172a !important;
    border: 2px solid #005eff !important;
    color: #f1f5f9 !important;
}

.sm-cookie-body {
    padding: 24px !important;
    display: block !important;
}

.sm-cookie-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sm-cookie-icon {
    font-size: 18px !important;
    display: inline !important;
}

.sm-cookie-title {
    margin: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: -0.2px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
html[data-theme="light"] .sm-cookie-title { color: #0f172a !important; }
html[data-theme="dark"] .sm-cookie-title { color: #ffffff !important; }

.sm-cookie-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    margin: 0 0 16px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
html[data-theme="light"] .sm-cookie-text { color: #475569 !important; }
html[data-theme="dark"] .sm-cookie-text { color: #cbd5e1 !important; }

.sm-cookie-link {
    color: #3b82f6 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    display: inline !important;
}
html[data-theme="light"] .sm-cookie-link { color: #005eff !important; }
html[data-theme="dark"] .sm-cookie-link { color: #3b82f6 !important; }

.sm-cookie-link:hover {
    color: #60a5fa !important;
}

/* Accordion / Preferences styles */
.sm-cookie-prefs-collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin-bottom: 0 !important;
    display: none !important;
}

.sm-cookie-prefs-expanded {
    max-height: 350px !important;
    opacity: 1 !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin-bottom: 20px !important;
    border-top: 1px solid rgba(120, 120, 120, 0.15) !important;
    padding-top: 16px !important;
    display: block !important;
}

.sm-cookie-pref-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    gap: 12px !important;
}

.sm-cookie-pref-item:last-child {
    margin-bottom: 0 !important;
}

.sm-cookie-pref-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex-grow: 1 !important;
}

.sm-cookie-pref-label {
    font-weight: 700 !important;
    font-size: 13.5px !important;
    font-family: 'Outfit', sans-serif !important;
}
html[data-theme="light"] .sm-cookie-pref-label { color: #0f172a !important; }
html[data-theme="dark"] .sm-cookie-pref-label { color: #ffffff !important; }

.sm-cookie-pref-desc {
    font-size: 11px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
html[data-theme="light"] .sm-cookie-pref-desc { color: #64748b !important; }
html[data-theme="dark"] .sm-cookie-pref-desc { color: #94a3b8 !important; }

/* Custom Switch styles */
.sm-cookie-switch-wrap {
    position: relative !important;
    width: 42px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.sm-cookie-switch-input {
    display: none !important;
}

.sm-cookie-switch-label {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    position: relative !important;
}

html[data-theme="light"] .sm-cookie-switch-label { background-color: #cbd5e1 !important; }
html[data-theme="dark"] .sm-cookie-switch-label { background-color: #334155 !important; }

.sm-cookie-switch-label::after {
    content: '' !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 18px !important;
    height: 18px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.sm-cookie-switch-input:checked + .sm-cookie-switch-label {
    background-color: #005eff !important;
}

.sm-cookie-switch-input:checked + .sm-cookie-switch-label::after {
    transform: translateX(18px) !important;
}

.sm-cookie-switch-input:disabled + .sm-cookie-switch-label {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* Actions panel */
.sm-cookie-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
}

.sm-cookie-btn {
    border-radius: 8px !important;
    border: none !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Outfit', sans-serif !important;
    outline: none !important;
}

.sm-cookie-btn-primary {
    background: #005eff !important;
    color: #ffffff !important;
}

.sm-cookie-btn-primary:hover {
    background: #004dcf !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 94, 255, 0.25) !important;
}

.sm-cookie-btn-secondary {
    background: transparent !important;
}
html[data-theme="light"] .sm-cookie-btn-secondary {
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #475569 !important;
}
html[data-theme="light"] .sm-cookie-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}
html[data-theme="dark"] .sm-cookie-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .sm-cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile responsive styles */
@media (max-width: 576px) {
    .sm-cookie-banner {
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 16px 16px 0 0 !important;
        transform: translateY(100%) !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    
    .sm-cookie-banner.sm-cookie-active {
        transform: translateY(0) !important;
    }
    
    .sm-cookie-body {
        padding: 20px !important;
    }
}
