/**
 * ComprarOnline - Dark Mode Design System
 * WCAG 2.2 Compliant Dark Theme Architecture (Slate Tokens)
 */

/* -------------------------------------------------------------
   1. Theme Tokens Definition
   ------------------------------------------------------------- */
:root[data-theme="dark"],
html.co-dark-mode {
    color-scheme: dark;
    --co-bg-base: #0f172a;
    --co-bg-surface: #1e293b;
    --co-bg-surface-elevated: #334155;
    --co-bg-input: #090d16;
    --co-border-subtle: #334155;
    --co-border-strong: #475569;
    --co-text-primary: #f8fafc;
    --co-text-secondary: #94a3b8;
    --co-text-muted: #64748b;
    --co-accent-primary: #38bdf8;
    --co-accent-hover: #7dd3fc;
    --co-accent-emerald: #34d399;
    --co-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

    /* Astra theme global variables mapping */
    --ast-global-color-primary: #38bdf8;
    --ast-global-color-secondary: #1e293b;
    --ast-global-color-alternate-background: #0f172a;
    --ast-global-color-subtle-background: #334155;
    --ast-global-color-0: #38bdf8;
    --ast-global-color-1: #0284c7;
    --ast-global-color-2: #f8fafc;
    --ast-global-color-3: #cbd5e1;
    --ast-global-color-4: #1e293b;
    --ast-global-color-5: #0f172a;
    --ast-global-color-6: #f8fafc;
    --ast-global-color-7: #334155;
    --ast-global-color-8: #ffffff;
}

/* Fallback for system dark mode when no explicit light override */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --co-bg-base: #0f172a;
        --co-bg-surface: #1e293b;
        --co-bg-surface-elevated: #334155;
        --co-bg-input: #090d16;
        --co-border-subtle: #334155;
        --co-border-strong: #475569;
        --co-text-primary: #f8fafc;
        --co-text-secondary: #94a3b8;
        --co-text-muted: #64748b;
        --co-accent-primary: #38bdf8;
        --co-accent-hover: #7dd3fc;
        --co-accent-emerald: #34d399;
        --co-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

        --ast-global-color-primary: #38bdf8;
        --ast-global-color-secondary: #1e293b;
        --ast-global-color-alternate-background: #0f172a;
        --ast-global-color-subtle-background: #334155;
        --ast-global-color-0: #38bdf8;
        --ast-global-color-1: #0284c7;
        --ast-global-color-2: #f8fafc;
        --ast-global-color-3: #cbd5e1;
        --ast-global-color-4: #1e293b;
        --ast-global-color-5: #0f172a;
        --ast-global-color-6: #f8fafc;
        --ast-global-color-7: #334155;
        --ast-global-color-8: #ffffff;
    }
}

/* -------------------------------------------------------------
   2. Global Document & Layout
   ------------------------------------------------------------- */
html.co-dark-mode,
html.co-dark-mode body,
html.co-dark-mode #page,
html.co-dark-mode .site,
html.co-dark-mode .site-content,
html.co-dark-mode .ast-plain-container,
html.co-dark-mode .ast-separate-container,
html.co-dark-mode .entry-content {
    background-color: var(--co-bg-base) !important;
    color: var(--co-text-secondary) !important;
}

/* Headings and Typography */
html.co-dark-mode h1,
html.co-dark-mode h2,
html.co-dark-mode h3,
html.co-dark-mode h4,
html.co-dark-mode h5,
html.co-dark-mode h6,
html.co-dark-mode .entry-title,
html.co-dark-mode strong,
html.co-dark-mode b {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode p,
html.co-dark-mode li,
html.co-dark-mode dt,
html.co-dark-mode dd,
html.co-dark-mode label,
html.co-dark-mode blockquote {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode a:not(.button):not(.co-nav-tab):not(.menu-link):not(.co-quick-pill):not(.woocommerce-LoopProduct-link) {
    color: var(--co-accent-primary) !important;
}

html.co-dark-mode a:not(.button):not(.co-nav-tab):not(.menu-link):not(.co-quick-pill):not(.woocommerce-LoopProduct-link):hover {
    color: var(--co-accent-hover) !important;
}

/* -------------------------------------------------------------
   3. Header & Search Bar
   ------------------------------------------------------------- */
html.co-dark-mode .site-header,
html.co-dark-mode #ast-desktop-header,
html.co-dark-mode #ast-mobile-header,
html.co-dark-mode .main-header-bar,
html.co-dark-mode .ast-primary-header-bar,
html.co-dark-mode .ast-below-header-bar {
    background-color: var(--co-bg-surface) !important;
    border-color: var(--co-border-subtle) !important;
}

html.co-dark-mode .main-header-menu .menu-item > .menu-link {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .main-header-menu .menu-item > .menu-link:hover,
html.co-dark-mode .main-header-menu .menu-item:hover > .menu-link {
    color: var(--co-accent-primary) !important;
}

/* Header Live Search */
html.co-dark-mode .co-header-search-form,
html.co-dark-mode .co-header-search-wrap input[type="search"],
html.co-dark-mode .co-header-search-wrap input.co-search-input {
    background-color: var(--co-bg-input) !important;
    border-color: var(--co-border-strong) !important;
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-header-search-wrap input::placeholder {
    color: var(--co-text-muted) !important;
}

html.co-dark-mode .co-search-results-dropdown {
    background-color: var(--co-bg-surface) !important;
    border-color: var(--co-border-subtle) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

html.co-dark-mode .co-search-result-item {
    border-bottom-color: var(--co-border-subtle) !important;
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-search-result-item:hover {
    background-color: var(--co-bg-surface-elevated) !important;
}

/* Cart Icon in Header */
html.co-dark-mode .ast-site-header-cart {
    border-color: var(--co-border-subtle) !important;
}

html.co-dark-mode .ast-site-header-cart-data,
html.co-dark-mode .ast-woo-header-cart-info-wrap,
html.co-dark-mode .ast-site-header-cart i {
    color: var(--co-text-primary) !important;
}

/* -------------------------------------------------------------
   4. Mobile Drawer & Mobile Bottom Nav
   ------------------------------------------------------------- */
@media (max-width: 921px) {
    html.co-dark-mode .ast-mobile-header-content,
    html.co-dark-mode .ast-mobile-header-content .main-header-menu,
    html.co-dark-mode #ast-hf-mobile-menu,
    html.co-dark-mode .ast-mobile-popup-drawer,
    html.co-dark-mode #ast-mobile-popup {
        background-color: var(--co-bg-surface) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .main-header-menu .menu-item > .menu-link,
    html.co-dark-mode #ast-hf-mobile-menu .menu-item > .menu-link {
        color: var(--co-text-primary) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .main-header-menu .menu-item > .menu-link:hover,
    html.co-dark-mode #ast-hf-mobile-menu .menu-item > .menu-link:hover {
        background-color: var(--co-bg-surface-elevated) !important;
        color: var(--co-text-primary) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .main-header-menu .menu-item.current-menu-item > .menu-link,
    html.co-dark-mode #ast-hf-mobile-menu .menu-item.current-menu-item > .menu-link {
        background-color: rgba(56, 189, 248, 0.12) !important;
        color: var(--co-accent-primary) !important;
        border-left-color: var(--co-accent-primary) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .main-header-menu .sub-menu,
    html.co-dark-mode #ast-hf-mobile-menu .sub-menu {
        border-left-color: var(--co-border-subtle) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .main-header-menu .sub-menu .menu-item > .menu-link,
    html.co-dark-mode #ast-hf-mobile-menu .sub-menu .menu-item > .menu-link {
        color: var(--co-text-secondary) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .ast-menu-toggle,
    html.co-dark-mode #ast-hf-mobile-menu .ast-menu-toggle {
        background-color: var(--co-bg-input) !important;
        border-color: var(--co-border-subtle) !important;
        color: var(--co-text-primary) !important;
    }

    html.co-dark-mode .ast-mobile-header-content .main-header-menu > .menu-item,
    html.co-dark-mode #ast-hf-mobile-menu > .menu-item {
        border-bottom-color: var(--co-border-subtle) !important;
    }
}

/* Bottom Navigation Bar in Dark Mode */
html.co-dark-mode .co-bottom-nav {
    background: rgba(30, 41, 59, 0.95) !important;
    border-top-color: var(--co-border-subtle) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.45) !important;
}

html.co-dark-mode .co-nav-tab {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .co-nav-tab:active,
html.co-dark-mode .co-nav-tab.is-active {
    color: var(--co-accent-primary) !important;
}

/* -------------------------------------------------------------
   5. Home SEO Hero & MercadoLibre Trust Bar
   ------------------------------------------------------------- */
html.co-dark-mode .co-home-seo-hero {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: var(--co-border-subtle) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

html.co-dark-mode .co-seo-hero-title {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-seo-hero-highlight {
    color: var(--co-accent-primary) !important;
}

html.co-dark-mode .co-seo-hero-subtitle {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .co-seo-hero-subtitle strong {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-seo-hero-badge {
    background: var(--co-bg-input) !important;
    border-color: var(--co-border-subtle) !important;
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .co-quick-pill {
    background: var(--co-bg-surface) !important;
    border-color: var(--co-border-subtle) !important;
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-quick-pill:hover {
    border-color: var(--co-accent-primary) !important;
    color: var(--co-accent-primary) !important;
    background: var(--co-bg-surface-elevated) !important;
}

html.co-dark-mode .co-quick-pill-all {
    background: var(--co-bg-surface-elevated) !important;
    border-color: var(--co-border-strong) !important;
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-quick-pill-all:hover {
    background: var(--co-accent-primary) !important;
    border-color: var(--co-accent-primary) !important;
    color: #0f172a !important;
}

/* MercadoLibre Trust Bar in Dark Mode */
html.co-dark-mode .co-ml-top-bar {
    background: linear-gradient(90deg, #1e293b 0%, #283347 100%) !important;
    border-color: #854d0e !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html.co-dark-mode .co-ml-top-text {
    color: #fef08a !important;
}

html.co-dark-mode .co-ml-top-text strong {
    color: #ffffff !important;
}

html.co-dark-mode .co-ml-top-pill {
    background: #0f172a !important;
    color: #34d399 !important;
    border-color: #065f46 !important;
}

/* -------------------------------------------------------------
   6. WooCommerce Catalog, Product Cards & Vitrinas
   ------------------------------------------------------------- */
html.co-dark-mode .woocommerce ul.products li.product,
html.co-dark-mode .woocommerce-page ul.products li.product,
html.co-dark-mode .wp-block-woocommerce-product-collection li.product {
    background-color: var(--co-bg-surface) !important;
    border: 1px solid var(--co-border-subtle) !important;
    box-shadow: var(--co-card-shadow) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

html.co-dark-mode .woocommerce ul.products li.product:hover,
html.co-dark-mode .woocommerce-page ul.products li.product:hover {
    border-color: var(--co-border-strong) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html.co-dark-mode .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
html.co-dark-mode .woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap {
    background: #131b2c !important;
    border-radius: 8px !important;
}

html.co-dark-mode .woocommerce-loop-product__title,
html.co-dark-mode .woocommerce ul.products li.product h2,
html.co-dark-mode .woocommerce ul.products li.product h3 {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .woocommerce ul.products li.product .price,
html.co-dark-mode .woocommerce-page ul.products li.product .price,
html.co-dark-mode .price .amount,
html.co-dark-mode .price ins .amount {
    color: var(--co-accent-primary) !important;
    font-weight: 700 !important;
}

html.co-dark-mode .price del,
html.co-dark-mode .price del .amount {
    color: var(--co-text-muted) !important;
}

html.co-dark-mode .woocommerce ul.products li.product .button.co-out-of-stock-btn,
html.co-dark-mode .woocommerce-page ul.products li.product .button:not(.add_to_cart_button) {
    background-color: var(--co-bg-surface-elevated) !important;
    color: var(--co-text-primary) !important;
    border-color: var(--co-border-strong) !important;
}

html.co-dark-mode .woocommerce ul.products li.product .button.co-out-of-stock-btn:hover,
html.co-dark-mode .woocommerce-page ul.products li.product .button:not(.add_to_cart_button):hover {
    background-color: var(--co-border-strong) !important;
    color: #ffffff !important;
    border-color: var(--co-accent-primary) !important;
}

/* -------------------------------------------------------------
   7. Single Product Page
   ------------------------------------------------------------- */
html.co-dark-mode .woocommerce div.product .product_title {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .woocommerce div.product p.price,
html.co-dark-mode .woocommerce div.product span.price {
    color: var(--co-accent-primary) !important;
}

html.co-dark-mode .woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .woocommerce-tabs ul.tabs {
    background-color: var(--co-bg-base) !important;
    border-color: var(--co-border-subtle) !important;
}

html.co-dark-mode .woocommerce-tabs ul.tabs li {
    background-color: var(--co-bg-base) !important;
    border-color: var(--co-border-subtle) !important;
}

html.co-dark-mode .woocommerce-tabs ul.tabs li.active {
    background-color: var(--co-bg-surface) !important;
    border-bottom-color: var(--co-bg-surface) !important;
}

html.co-dark-mode .woocommerce-tabs ul.tabs li a {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .woocommerce-tabs ul.tabs li.active a {
    color: var(--co-accent-primary) !important;
}

html.co-dark-mode .woocommerce-tabs .panel {
    background-color: var(--co-bg-surface) !important;
    border: 1px solid var(--co-border-subtle) !important;
    color: var(--co-text-secondary) !important;
    padding: 20px !important;
    border-radius: 0 0 12px 12px !important;
}

html.co-dark-mode .woocommerce div.product .stock.in-stock {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--co-accent-emerald) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

html.co-dark-mode .woocommerce div.product .stock.out-of-stock {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Quantity input */
html.co-dark-mode .quantity input.qty {
    background-color: var(--co-bg-input) !important;
    color: var(--co-text-primary) !important;
    border-color: var(--co-border-strong) !important;
}

/* Sticky Buy Bar */
html.co-dark-mode .co-sticky-buy-bar {
    background: rgba(30, 41, 59, 0.96) !important;
    border-top-color: var(--co-border-subtle) !important;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45) !important;
}

html.co-dark-mode .co-sticky-buy-bar .co-sticky-title {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-sticky-buy-bar .co-sticky-price {
    color: var(--co-accent-primary) !important;
}

/* -------------------------------------------------------------
   8. Cart & Checkout (WooCommerce Blocks & Funnel)
   ------------------------------------------------------------- */
/* Cart Table */
html.co-dark-mode .woocommerce-cart table.cart,
html.co-dark-mode .wc-block-cart {
    background-color: var(--co-bg-surface) !important;
    border-color: var(--co-border-subtle) !important;
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .woocommerce-cart table.cart th {
    background-color: var(--co-bg-base) !important;
    color: var(--co-text-primary) !important;
    border-color: var(--co-border-subtle) !important;
}

html.co-dark-mode .woocommerce-cart table.cart td {
    border-color: var(--co-border-subtle) !important;
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .woocommerce-cart table.cart td.product-name a {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .cart-collaterals,
html.co-dark-mode .cart_totals,
html.co-dark-mode .wc-block-cart__totals-wrapper,
html.co-dark-mode .wc-block-components-order-summary {
    background-color: var(--co-bg-surface) !important;
    border-color: var(--co-border-subtle) !important;
}

/* Checkout Blocks */
html.co-dark-mode .wc-block-checkout,
html.co-dark-mode .wp-block-woocommerce-checkout,
html.co-dark-mode .wc-block-components-checkout-step,
html.co-dark-mode .wc-block-components-panel {
    background-color: var(--co-bg-surface) !important;
    border-color: var(--co-border-subtle) !important;
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .wc-block-components-checkout-step__title,
html.co-dark-mode .wc-block-components-title {
    color: var(--co-text-primary) !important;
}

/* Form Inputs across entire checkout */
html.co-dark-mode input[type="text"],
html.co-dark-mode input[type="email"],
html.co-dark-mode input[type="tel"],
html.co-dark-mode input[type="password"],
html.co-dark-mode input[type="search"],
html.co-dark-mode select,
html.co-dark-mode textarea,
html.co-dark-mode .wc-block-components-text-input input,
html.co-dark-mode .wc-block-components-combobox input {
    background-color: var(--co-bg-input) !important;
    color: var(--co-text-primary) !important;
    border: 1px solid var(--co-border-strong) !important;
}

html.co-dark-mode input:focus,
html.co-dark-mode select:focus,
html.co-dark-mode textarea:focus,
html.co-dark-mode .wc-block-components-text-input input:focus {
    border-color: var(--co-accent-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

html.co-dark-mode .wc-block-components-text-input label,
html.co-dark-mode .wc-block-components-combobox label,
html.co-dark-mode .wc-blocks-components-select__label {
    color: var(--co-text-secondary) !important;
}

/* Radio options (Shipping rates & Payment methods) */
html.co-dark-mode .wc-block-components-radio-control,
html.co-dark-mode .wc-block-components-radio-control-accordion-content,
html.co-dark-mode .wc-block-components-radio-control-accordion-option {
    background-color: var(--co-bg-input) !important;
    border-color: var(--co-border-subtle) !important;
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .wc-block-components-radio-control__label,
html.co-dark-mode .wc-block-components-radio-control__description {
    color: var(--co-text-primary) !important;
}

/* Stepped Confirmation Box in Dark Mode */
html.co-dark-mode #co-checkout-confirm-box {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: var(--co-accent-primary) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

html.co-dark-mode #co-checkout-confirm-box .co-confirm-total-val,
html.co-dark-mode #co-checkout-live-total {
    color: var(--co-accent-primary) !important;
}

html.co-dark-mode #co-checkout-confirm-box .co-confirm-label {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .co-security-note {
    color: var(--co-text-muted) !important;
}

/* -------------------------------------------------------------
   9. Footer
   ------------------------------------------------------------- */
html.co-dark-mode .site-footer,
html.co-dark-mode .co-footer-wrap,
html.co-dark-mode .ast-footer-overlay {
    background-color: #0b0f19 !important;
    border-top-color: var(--co-border-subtle) !important;
}

html.co-dark-mode .co-footer-wrap h4,
html.co-dark-mode .co-footer-wrap h5,
html.co-dark-mode .site-footer .widget-title {
    color: var(--co-text-primary) !important;
}

html.co-dark-mode .co-footer-wrap p,
html.co-dark-mode .co-footer-wrap a,
html.co-dark-mode .site-footer a {
    color: var(--co-text-secondary) !important;
}

html.co-dark-mode .co-footer-wrap a:hover,
html.co-dark-mode .site-footer a:hover {
    color: var(--co-accent-primary) !important;
}

/* -------------------------------------------------------------
   10. Media & Asset Protection (Never invert logos, photos, badges)
   ------------------------------------------------------------- */
html.co-dark-mode img,
html.co-dark-mode svg,
html.co-dark-mode picture,
html.co-dark-mode video,
html.co-dark-mode canvas {
    filter: none !important;
}

/* -------------------------------------------------------------
   11. Theme Switch / Toggle Component Styles
   ------------------------------------------------------------- */
/* Header Toggle Button */
.co-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    margin: 0 6px;
    vertical-align: middle;
}

.co-theme-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: scale(1.05);
}

.co-theme-toggle:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

/* Dark mode state of the button */
html.co-dark-mode .co-theme-toggle {
    background: var(--co-bg-surface);
    border-color: var(--co-border-strong);
    color: #fef08a; /* Sun yellow */
}

html.co-dark-mode .co-theme-toggle:hover {
    background: var(--co-bg-surface-elevated);
    border-color: var(--co-accent-primary);
    color: #fef08a;
}

/* Icon visibility */
.co-theme-toggle .co-icon-sun {
    display: none;
}
.co-theme-toggle .co-icon-moon {
    display: block;
}

html.co-dark-mode .co-theme-toggle .co-icon-sun {
    display: block;
}
html.co-dark-mode .co-theme-toggle .co-icon-moon {
    display: none;
}

/* Mobile Drawer Switch Row */
.co-drawer-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin: 10px 0;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

html.co-dark-mode .co-drawer-theme-row {
    background: var(--co-bg-input);
    border-color: var(--co-border-subtle);
}

.co-drawer-theme-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
}

html.co-dark-mode .co-drawer-theme-title {
    color: var(--co-text-primary);
}

/* Switch Slider */
.co-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin: 0;
}

.co-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.co-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 26px;
}

.co-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .co-slider {
    background-color: #0284c7;
}

input:checked + .co-slider:before {
    transform: translateX(22px);
}
