/* Premium Glassmorphic Toast Notifications */
#antigravity-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.antigravity-toast {
    position: relative;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.antigravity-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.antigravity-toast.hide {
    transform: translateY(-20px);
    opacity: 0;
    margin-top: -60px; /* Collapse space */
    pointer-events: none;
}

.antigravity-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.antigravity-toast-body {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    padding-right: 12px;
}

.antigravity-toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.antigravity-toast-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

/* Toast types decoration */
.antigravity-toast-success {
    border-left: 4px solid #10b981;
}
.antigravity-toast-success .antigravity-toast-header {
    color: #34d399;
}

.antigravity-toast-error {
    border-left: 4px solid #f43f5e;
}
.antigravity-toast-error .antigravity-toast-header {
    color: #fb7185;
}

.antigravity-toast-info {
    border-left: 4px solid #3b82f6;
}
.antigravity-toast-info .antigravity-toast-header {
    color: #60a5fa;
}

/* Shrinking Progress Bar */
.antigravity-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    background: rgba(255, 255, 255, 0.2);
}

.antigravity-toast-success .antigravity-toast-progress {
    background: #10b981;
}

.antigravity-toast-error .antigravity-toast-progress {
    background: #f43f5e;
}

.antigravity-toast-info .antigravity-toast-progress {
    background: #3b82f6;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    #antigravity-toast-container {
        top: auto;
        bottom: 16px;
        right: 24px;
        left: 24px;
    }
    
    .antigravity-toast {
        transform: translateY(120%);
    }
    
    .antigravity-toast.show {
        transform: translateY(0);
    }
    
    .antigravity-toast.hide {
        transform: translateY(20px);
        opacity: 0;
        margin-top: 0;
        margin-bottom: -60px;
    }
}

/* --- Premium Header Dropdown Menu Styles --- */
/* Force reveal wix menus and headers locked by dynamic prewarmup classes */
.hidden-during-prewarmup,
wix-dropdown-menu.hidden-during-prewarmup,
#DrpDwnMn0,
#DrpDwnMn0navContainer,
#SITE_HEADER,
#SITE_HEADER-placeholder {
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
}

/* Ensure absolute z-index priority, positioning, and visible overflows to prevent clipping of the dropdown menu */
#SITE_HEADER,
#SITE_HEADER_WRAPPER,
#SITE_HEADER-placeholder {
    overflow: visible !important;
    z-index: 999999999 !important; /* Ultimate stack level */
    position: relative; /* Fallback: only applies if no other positioning is defined, ensuring z-index works without breaking fixed/absolute layouts */
}

wix-dropdown-menu,
#DrpDwnMn0,
#DrpDwnMn0navContainer, 
#DrpDwnMn0itemsContainer, 
#SITE_HEADER [data-mesh-id*="inlineContent"],
#SITE_HEADER [data-mesh-id*="gridContainer"],
#SITE_HEADER_WRAPPER [data-mesh-id*="inlineContent"],
#SITE_HEADER_WRAPPER [data-mesh-id*="gridContainer"] {
    overflow: visible !important;
    z-index: 999999999 !important; /* Ultimate stack level */
    position: relative; /* Fallback baseline only: respects native absolute coordinates of the Wix layout mesh */
}

li.wixui-dropdown-menu__item,
li#DrpDwnMn04,
li#DrpDwnMn01 {
    overflow: visible !important;
}

/* Custom premium UL styled as a white glassmorphic dropdown matching the header */
li.wixui-dropdown-menu__item > ul {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(8px) !important;
    min-width: 250px !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
    padding: 12px 0 !important;
    margin: 4px 0 0 0 !important;
    list-style: none !important;
    z-index: 999999999 !important; /* Forces dropdown card on top of everything! */
    display: none; /* Controlled dynamically by JS hover */
    box-sizing: border-box !important;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Invisible CSS Hover Bridge to bridge the physical gap between PRODUCTS tab and the dropdown card, preventing premature close */
li.wixui-dropdown-menu__item > ul::before {
    content: "" !important;
    position: absolute !important;
    top: -24px !important; /* Stretches up to seamlessly fill the gap */
    left: 0 !important;
    width: 100% !important;
    height: 28px !important;
    background: transparent !important;
    z-index: -1 !important;
    pointer-events: auto !important;
}

li.wixui-dropdown-menu__item > ul li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

li.wixui-dropdown-menu__item > ul li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-transform: capitalize !important;
    text-align: left !important;
}

li.wixui-dropdown-menu__item > ul li a:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #2563eb !important;
    padding-left: 24px !important; /* Elegant slide micro-animation */
}

/* Arrow indicator button styling alignment */
li.wixui-dropdown-menu__item button._pfxlW {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Mobile responsive menu overrides */
@media (max-width: 768px) {
    li.wixui-dropdown-menu__item > ul {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(8px) !important;
        width: 250px !important;
        min-width: 250px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 10px !important;
        padding: 12px 0 !important;
        margin: 4px 0 0 0 !important;
        display: none; /* Controlled dynamically by JS hover/click */
        max-height: 380px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* --- Premium FAQ Accordion & Tabs --- */
[data-hook^="tab-item-"],
[data-hook="accordion-item-header"] {
    cursor: pointer !important;
}

[data-hook="accordion-item-header"] svg,
[data-hook="expandIcon"] {
    transition: transform 0.3s ease !important;
}
