/* ==========================================================================
   ZARQ CUSTOMER PORTAL SPLIT GRID OVERRIDE (GOD-MODE)
   ========================================================================== */

/* Main Wrapper Alignment */
.woocommerce-account .zarq-woo-main {
    padding: 80px 0 !important;
    background-color: #F8F9FB; /* Theme Light Gray Background */
}

/* Form Headings */
.woocommerce-account h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    color: var(--z-primary-blue) !important;
    margin-bottom: 30px !important;
    letter-spacing: 0.5px !important;
}

/* Twin Grid Columns (Split Box) */
.woocommerce-account #customer_login {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px !important;
    background: #ffffff !important;
    padding: 60px !important;
    border: 1px solid rgba(44, 62, 80, 0.08) !important;
    box-shadow: 0 30px 70px rgba(26, 26, 46, 0.03) !important;
    border-radius: 4px !important;
}

/* Separation Border Between Login & Register on Desktop */
@media (min-width: 769px) {
    .woocommerce-account .u-column1 {
        position: relative !important;
        padding-right: 40px !important;
    }
    .woocommerce-account .u-column1::after {
        content: "" !important;
        position: absolute !important;
        top: 10% !important;
        right: -40px !important;
        width: 1px !important;
        height: 80% !important;
        background: var(--z-muted-blue) !important;
        opacity: 0.5 !important;
    }
}

/* Forms Alignment Row Control */
.woocommerce-form-row {
    margin-bottom: 22px !important;
    display: block !important;
    width: 100% !important;
}

/* Minimalist Luxury Labels */
.woocommerce-form-row label {
    display: block !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--z-primary-blue) !important;
    margin-bottom: 8px !important;
}

/* Input Fields Overhaul */
.woocommerce-form input[type="text"],
.woocommerce-form input[type="email"],
.woocommerce-form input[type="password"] {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    color: var(--z-primary-blue) !important;
    background-color: #ffffff !important;
    border: 1px solid var(--z-muted-blue) !important;
    border-radius: 0 !important; /* Zero Radius Luxury Vibe */
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

/* Focus Input Interactions */
.woocommerce-form input[type="text"]:focus,
.woocommerce-form input[type="email"]:focus,
.woocommerce-form input[type="password"]:focus {
    border-color: var(--z-primary-blue) !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.05) !important;
}

/* Inline Checkbox and Meta Fixes */
.woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 15px 0 25px 0 !important;
    cursor: pointer !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: var(--z-primary-blue) !important;
    margin: 0 !important;
}

.woocommerce-form-login__rememberme span {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    color: var(--z-text-muted) !important;
}

/* Lost Password Link Position */
.woocommerce-LostPassword {
    margin-top: 15px !important;
}

.woocommerce-LostPassword a {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    color: var(--z-text-muted) !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.woocommerce-LostPassword a:hover {
    color: var(--z-gold) !important;
}

/* Core Buttons Upgrades */
.woocommerce-form .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: white !important;
    background: var(--z-primary-blue) !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Hover Accent Transition */
.woocommerce-form .button:hover {
    background: var(--z-gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.2) !important;
}

/* Privacy Text Notice */
.woocommerce-privacy-policy-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: var(--z-text-muted) !important;
    margin-bottom: 20px !important;
}

/* Tablet & Mobile Adjustments */
@media (max-width: 991px) {
    .woocommerce-account #customer_login {
        gap: 50px !important;
        padding: 40px !important;
    }
}

@media (max-width: 768px) {
    .woocommerce-account #customer_login {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
        padding: 30px 20px !important;
    }
}
/* ==========================================================================
   ZARQ LAYER RESOLUTION & POINTER INTEGRITY PATCH
   ========================================================================== */

/* Header parent container context configuration */
.zarq-header {
    position: fixed !important;
    z-index: 99999 !important; /* Standard base stack */
}

/* Force Drawer to stay at absolute top layout level */
#zarq-drawer {
    z-index: 100000000 !important; /* Highest Layer possible */
    isolation: isolate !important;
    pointer-events: auto !important; /* Reactivates click tracking */
}

/* Ensure backdrop sits perfectly under the drawer box but above old header links */
#zarq-drawer-backdrop.zarq-is-open {
    z-index: 99999999 !important;
    pointer-events: auto !important;
    background-color: rgba(15, 23, 42, 0.2) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

/* Exact Target: Cross (X) Close button pointer force */
#zarq-drawer-close,
#zarq-drawer-close svg,
#zarq-drawer-close path {
    cursor: pointer !important;
    pointer-events: auto !important; /* Tells browser: "Yes, this is clickable!" */
    position: relative !important;
    z-index: 100000001 !important; /* Step above drawer surface */
}

/* Debug backup in case theme handles active buttons with opacity glitches */
.zarq-drawer-close:hover {
    opacity: 0.8 !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}