﻿/* =============================================================================
   Login & Registration modal styles
   Shared by UserControl/LoginModal.ascx and UserControl/RegisterModal.ascx.
   Moved here from the inline <style> blocks that used to live in those controls.
   Order matters: the LOGIN section is emitted first (matching how the controls
   render on the page), then the REGISTRATION section.
   ============================================================================= */

/* ============================================================================
   LOGIN MODAL
   ============================================================================ */
/* The Turnstile widget is a fixed 300px iframe inside a CLOSED shadow root - no
   selector from this stylesheet can reach it (a "#captcha1 iframe" rule matches
   nothing). On phones it is scaled down to fit by fitTurnstileWidget() in
   LoginModal.ascx, which reads #captcha1's clientWidth as the available room.
   min-width:0 is what lets #captcha1 (a flex item of .captcha-box) actually
   shrink to that room instead of sticking at the widget's 300px min-content. */
/* All three Turnstile containers (login, guest, register). Each takes the full
   row of its .captcha-box (flex-basis 100%) so justify-content:center really
   centres the 300px widget, with the same 8px above and below. The old rules
   gave only the login one a 12px-top / 6px-bottom margin and let it shrink to
   the widget's width, which left it hugging the left edge. */
#captcha1,
#captcha2,
#captcha_register1 {
    flex: 0 0 auto;         /* not 1 1 100%: in the register box (a column flex) that basis
                               is a HEIGHT and undid the scaled height set by the fit script */
    width: 100%;            /* full row of the box in either direction */
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;    /* don't stretch Turnstile's wrapper to the container height
                                   (fitTurnstileWidget reads the wrapper's natural 65px) */
    margin: 8px 0;
    padding: 0;
}

/* The error label is the second flex item in .captcha-box; drop it onto its own
   line so it (and the 12px gap before it) stop eating into the widget's width. */
#LoginmodalOuterWrapArea .captcha-box,
.reg-card .captcha-box {
    flex-wrap: wrap;
    row-gap: 0;
}

    #LoginmodalOuterWrapArea .captcha-box > span,
    .reg-card .captcha-box > span {
        flex-basis: 100%;
    }

/* Phones: the widget is scaled down by fitTurnstileWidget() to the box's inner
   width, so keep a little padding around it instead of pressing it against the
   border. fitTurnstileWidget measures the container after this padding. */
@media only screen and (max-width: 500px) {
    .captcha-box {
        padding: 6px 8px !important;
    }

    #captcha1,
    #captcha2,
    #captcha_register1 {
        margin: 4px 0;
    }
}

:root {
    --ocean-900: #0b3550;
    --ocean-700: #114a68;
    --ocean-500: #1c6b86;
    --ocean-200: #bfe3ea;
    --foam: #eef7f8;
    --card-bg: #ffffff;
    --ink: #1f2933;
    --muted: #64748b;
    --accent-orange: #f2891c;
    --accent-orange-dark: #d9760f;
    --accent-teal: #158094;
    --divider: #e5e9ec;
    --focus-ring: #208799;
}

/* ===== Ambient wave backdrop ===== */
.wave-layer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    line-height: 0;
    z-index: 0;
    pointer-events: none;
}

    .wave-layer svg {
        width: 100%;
        height: auto;
        display: block;
    }

/* ===== Page wrap ===== */
.page-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 90px;
}

/* ===== Card ===== */
.login-card {
    position: relative; /* anchor for the absolutely-positioned close button */
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(6, 30, 45, 0.35);
    overflow: hidden;
}

.card-header {
    text-align: center;
    padding: 40px 36px 4px;
    background-color: rgba(0, 0, 0, .03);
    border-bottom:none!important;
}

    /* ===== Logo mark (circular badge) =====
    The inline SVG has a tall/portrait viewBox (534.11 x 728.43), so we size
    it by height only and let width scale automatically — forcing both
    dimensions equal would squash it horizontally. */
    .card-header .mark {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        box-shadow: 0 8px 18px rgba(217, 118, 15, 0.35);
    }

        .card-header .mark svg {
            height: 26px;
            width: auto;
            display: block;
            fill: #ffffff;
        }

    /* ===== Wordmark logo image next to "Login to" ===== */
    .card-header h1 {
        font-family: 'Open Sans', sans-serif;
        font-weight: 600;
        font-size: 27px;
        margin: 0 0 0px;
        color: var(--ink);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

        .card-header h1 em {
            color: var(--accent-orange-dark);
            font-style: italic;
        }

        .card-header h1 .brand-logo {
            height: 24px;
            width: auto;
            max-width: 150px;
            object-fit: contain;
            display: inline-block;
        }

    .card-header p {
        margin: 0;
        font-size: 13px;
        color: var(--muted);
    }

/* ===== Tabs ===== */
.tabs {
    display: flex;
    margin: 15px 36px 0;
    border-bottom: 1px solid var(--divider);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 14px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    position: relative;
    transition: color 0.18s ease;
}

    .tab-btn::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: var(--accent-orange);
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    .tab-btn.active {
        color: var(--ink);
    }

        .tab-btn.active::after {
            transform: scaleX(1);
        }

    .tab-btn:hover {
        color: var(--ink);
    }

/* ===== Tab panels ===== */
.tab-panel {
    display: none;
    padding: 15px 36px 36px;
}

    .tab-panel.active {
        display: block;
        animation: fadeIn 0.25s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

    .panel-sub a {
        color: var(--accent-orange-dark);
        font-weight: 600;
        text-decoration: none;
    }

        .panel-sub a:hover {
            text-decoration: underline;
        }

/* ===== Form fields ===== */
.field {
    margin-bottom: 16px;
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--ink);
        margin-bottom: 6px;
    }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--divider);
    border-radius: 8px;
    background: var(--foam);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .input-wrap:focus-within {
        border-color: var(--focus-ring);
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(32, 135, 153, 0.15);
    }

    .input-wrap .icons {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        color: var(--ocean-500);
        flex-shrink: 0;
    }

        .input-wrap .icons svg {
            width: 16px;
            height: 16px;
        }

    .input-wrap input {
        flex: 1;
        min-width: 0;
        border: none;
        background: transparent;
        outline: none;
        padding: 12px 12px 12px 0;
        font-family: 'Poppins', Arial, sans-serif;
        font-size: 14px;
        color: var(--ink);
        margin-bottom:0 !important;
        height: 44px;
        box-sizing: border-box;
        line-height: 20px;
    }

        .input-wrap input::placeholder {
            color: #9aa5af;
        }

.toggle-pw {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    padding: 0 12px;
}

    .toggle-pw svg {
        width: 17px;
        height: 17px;
    }

/* ===== Checkbox row ===== */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 20px;
}

    .checkbox-row input {
        width: 15px;
        height: 15px;
        accent-color: var(--accent-teal);
        flex-shrink: 0;
    }

.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
}

.forgot-link {
    font-size: 13px;
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

/* ===== Captcha placeholder ===== */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 5px 16px;
    background: var(--foam);
    margin-bottom: 20px;
}

    .captcha-box input[type="checkbox"] {
        width: 19px;
        height: 19px;
        accent-color: var(--accent-teal);
        flex-shrink: 0;
    }

    .captcha-box .captcha-label {
        font-size: 13px;
        font-weight: 500;
        color: var(--ink);
    }

    .captcha-box .captcha-badge {
        margin-left: auto;
        text-align: right;
        line-height: 1.2;
    }

        .captcha-box .captcha-badge .name {
            font-size: 10px;
            font-weight: 700;
            color: var(--muted);
            letter-spacing: 0.3px;
        }

        .captcha-box .captcha-badge .sub {
            font-size: 8.5px;
            color: #a3aeb8;
        }

/* ===== Buttons ===== */
.btn-primary {
    width: 100% !important;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    color: #ffffff;
    background: var(--accent-teal);
    box-shadow: 0 10px 20px rgba(32, 135, 153, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .btn-primary:hover {
        background: var(--focus-ring);
        transform: translateY(-2px);
        box-shadow: 0 14px 26px rgba(32, 135, 153, 0.35);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.guest-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

/* ===== Footer ===== */
.card-footer {
    text-align: center;
    padding: 4px 27px 30px;
    font-size: 12px;
    color: var(--muted);
    background-color: rgba(0, 0, 0, .03);
    border-top:none !important;
}

    .card-footer a {
        color: var(--accent-orange-dark);
        text-decoration: none;
        font-weight: 600;
    }

        .card-footer a:hover {
            text-decoration: underline;
        }

/* ==========================================================================
Responsive — Mobile (≤560px)
========================================================================== */
@media (max-width: 560px) {
    .top-bar {
        padding: 20px 20px;
    }

    .page-wrap {
        padding: 6px 14px 60px;
        align-items: flex-start;
    }

    .login-card {
        border-radius: 14px;
    }

    .card-header {
        padding: 30px 22px 4px;
    }

        .card-header h1 {
            font-size: 21px;
            gap: 6px;
        }

            .card-header h1 .brand-logo {
                height: 20px;
                max-width: 120px;
            }

    .tab-panel {
        padding: 22px 22px 28px;
    }

    .field-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .crossButt {
        top: 10px;
        right: 10px;
        margin: 0;
    }
}

@media (max-width: 380px) {
    .top-bar .back-link span {
        display: none;
    }

    .tab-btn {
        font-size: 11px;
        letter-spacing: 0.4px;
    }

    .crossButt {
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .btn-primary,
    .input-wrap,
    .tab-panel {
        transition: none;
        animation: none;
    }
}

/* Full-screen modal overlay (always above other elements) */
#LoginmodalOuterWrapArea {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none; /* shown by JS */
    /* Scroll the whole overlay (not an inner box) so a taller card — e.g. when validation
       messages appear — scrolls smoothly instead of showing a cramped inner scrollbar. */
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0,0,0,0.45);
    z-index: 120000 !important; /* high value to be above Twilio/chat */
    height: 100% !important;
}

    /* Centering container: margin auto keeps the card centered when it fits, and lets the
       overlay scroll from the top when it doesn't. No inner max-height/overflow. */
    #LoginmodalOuterWrapArea .page-wrap {
        width: 100%;
        max-width: 760px;
        margin: auto 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        box-sizing: border-box;
    }

    /* Ensure the card itself stacks above the overlay (precaution) */
    #LoginmodalOuterWrapArea .login-card {
        position: relative;
        z-index: 120010;
    }

/* Prevent page scroll while modal is open */
body.modal-open {
    overflow: hidden;
    height: 100%;
}

.mainWrapperNoScroll {
    overflow: hidden;
}

/* Close button: anchored to the card's top-right corner. Positioned absolutely inside
   .login-card (position:relative) so it renders identically on every page — the old
   negative-margin hack was clipped by the card's overflow:hidden on the checkout pages. */
.crossButt {
    position: absolute;
    top: 12px;
    right: 14px;
    margin: 0;
    z-index: 10;
}

    .crossButt a {
        display: inline-block;
        line-height: 1;
    }

/* ============================================================================
   REGISTRATION MODAL
   ============================================================================ */

/* ── Overlay ── */
#RegistermodalOuterWrapArea {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start; /* start so tall cards don't clip at top */
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.50);
    z-index: 120000;
    overflow-y: auto; /* allow scroll when card taller than viewport */
}

/* ── Card ── */
.reg-card {
    position: relative; /* anchor for the close button */
    width: 100%;
    max-width: 720px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 40px 80px rgba(6,30,45,0.35);
    display: flex;
    flex-direction: column;
    overflow: visible;
    margin: auto 0; /* vertical centering when content fits */
}

    /* ── Close (X) button — mirrors the login modal's corner close ── */
    .reg-card .reg-close {
        position: absolute;
        top: 14px;
        right: 16px;
        z-index: 5;
        line-height: 0;
    }

        .reg-card .reg-close img {
            width: 24px;
            height: 24px;
            display: block;
        }

    /* ── Header ── */
    .reg-card .card-header {
        text-align: center;
        padding: 32px 36px 10px;
    }

        .reg-card .card-header .mark {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 5px;
            box-shadow: 0 8px 18px rgba(217,118,15,0.35);
        }

        .reg-card .card-header h1 {
            font-weight: 700;
            font-size: 22px;
            margin: 0 0 0px;
            color: var(--ink);
        }

        .reg-card .card-header p {
            margin: 0;
            font-size: 13px;
            color: var(--muted);
        }

    /* ── Form body ── */
    .reg-card .form-body {
        padding: 0px 36px 10px;
    }

    /* ── Two-column row ── */
    .reg-card .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* ── Field ── */
    .reg-card .field {
        margin-bottom: 14px;
    }

        .reg-card .field label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--ink);
            margin-bottom: 5px;
        }

.req {
    color: var(--accent-orange-dark);
    margin-left: 2px;
}

/* All registration validation messages red. Validators render as a <span> directly inside their
   .field (and the captcha CustomValidator inside .captcha-box); the .req asterisk sits inside the
   <label>, so it is not matched here. !important guarantees red over any inherited color. */
.reg-card .field > span,
.reg-card .captcha-box > span {
    color: red !important;
}

/* ── State/City autocomplete dropdown ──────────────────────────────────────────────────────────
   The ACT extender moves its completion list to <body> when it opens, so it (a) falls outside the
   modal's stacking context and (b) can't be scoped by an ancestor selector. The acReg/acRegItem
   class names are unique to the register modal's extenders, so styling them touches nothing else.
   z-index 120200 lifts the list above the modal overlay (120000); this file loads after
   my-custom.css so it wins over the plain #divState/#divCity defaults there. */
#divState,
#divCity,
#divState div,
#divCity div,
.acReg {
    z-index: 120200 !important;
}

.acReg {
    border: 1px solid var(--divider) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(6, 30, 45, 0.20) !important;
    padding: 4px !important;
    font-size: 13.5px !important;
    line-height: normal !important;
    overflow: hidden;
}

.acRegItem {
    list-style: none;
    padding: 8px 12px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    color: var(--ink) !important;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

    .acRegItem:hover,
    .acRegItemHi {
        background: var(--foam) !important;
        color: var(--accent-teal) !important;
    }

/* Loading spinner shown inside the State/City field while the autocomplete service is fetching.
   (.input-wrap gets position:relative so the spinner anchors to its right edge.) */
.reg-card .input-wrap {
    position: relative;
}

    .reg-card .input-wrap.ac-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 12px;
        width: 15px;
        height: 15px;
        margin-top: -8px;
        border: 2px solid rgba(0, 0, 0, 0.15);
        border-top-color: var(--accent-teal);
        border-radius: 50%;
        animation: ac-spin 0.6s linear infinite;
        pointer-events: none;
    }

    .reg-card .input-wrap.ac-loading input {
        padding-right: 26px;
    }

@keyframes ac-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Input wrapper — fixes the "extra line" caused by browser default input border ── */
.reg-card .input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--divider);
    border-radius: 8px;
    background: var(--foam);
    padding: 0 12px;
    box-sizing: border-box;
    height: 44px;
    overflow: hidden;
}

    .reg-card .input-wrap:focus-within {
        border-color: var(--focus-ring);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(32,135,153,0.12);
    }
    /* Remove every default browser border / outline from child inputs */
    .reg-card .input-wrap input,
    .reg-card .input-wrap textarea,
    .reg-card .input-wrap select {
        flex: 1;
        min-width: 0;
        border: none !important;
        outline: none !important;
        background: transparent;
        padding: 0 8px;
        font-size: 13.5px;
        color: var(--ink);
        height: 100%;
        box-shadow: none !important;
        -webkit-appearance: none;
    }

        .reg-card .input-wrap input::placeholder {
            color: #9aa5af;
        }

    .reg-card .input-wrap .icon {
        width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ocean-500);
        flex-shrink: 0;
        margin-left:0 !important;
        margin-top:4px !important;
    }
    /* Country dropdown wrapper needs a right-arrow indicator */
    .reg-card .input-wrap.has-select {
        padding-right: 32px;
        position: relative;
    }

        .reg-card .input-wrap.has-select::after {
            content: '';
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid var(--muted);
            pointer-events: none;
        }

        .reg-card .input-wrap.has-select select {
            padding-right: 4px;
        }

/* ── Password toggle button ── */
.reg-card .toggle-pw {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    padding: 0 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── Password hint ── */
.field-hint {
    font-size: 11px;
    color: var(--muted);
    margin: -8px 0 12px;
}

/* ── Address toggle checkbox label ── */
.address-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    font-size: 13px;
}

    .address-toggle input[type="checkbox"] {
        margin-top: 3px;
        width: 16px;
        height: 16px;
        accent-color: var(--accent-teal);
        flex-shrink: 0;
    }

.toggle-text strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
}

.toggle-text span {
    color: var(--muted);
    font-size: 12px;
}

/* ── Address panel — hidden until checkbox checked ── */
.address-panel {
    display: none;
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 16px;
    background: var(--foam);
    margin-bottom: 16px;
}

    .address-panel.open {
        display: block;
    }

.panel-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin: 0 0 12px;
}

/* ── Captcha box ── */
.reg-card .captcha-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;   /* .captcha-box's align-items:center let #captcha_register1
                               shrink to the widget's 300px and overflow on phones */
    gap: 0;                 /* the error <span> is empty until it fires; no gap under the widget */
    border: 1px solid var(--divider);
    border-radius: 8px;
    padding: 5px 16px;      /* same box spacing as the login modal */
    background: var(--foam);
    margin-bottom: 20px;
}

/* ── Buttons ── */
.reg-card .btn-row {
    padding-top: 4px;
}

.reg-card .btn-primary {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* ── Footer ── */
.reg-card .card-footer {
    text-align: center;
    padding: 10px 24px 20px;
    color: var(--muted);
    font-size: 13px;
}

    .reg-card .card-footer a {
        color: var(--accent-orange-dark);
        font-weight: 600;
        text-decoration: none;
    }

@media(max-width:620px) {
    .reg-card .form-row {
        /* minmax(0, 1fr), not 1fr: a plain 1fr column is at least as wide as its
           content's minimum, and the password inputs (intrinsic width + icon +
           eye button) pushed the Password / Retype rows past the form's edge */
        grid-template-columns: minmax(0, 1fr);
    }

    .reg-card .field {
        min-width: 0;
    }

    .reg-card {
        max-width: 96%;
    }

        .reg-card .form-body {
            padding: 18px 20px;
        }
}

/* ── Forgot-password modal ───────────────────────────────────────────────────────
   Reuses the register card shell; only the overlay id and the card width differ
   (one field, so the 720px register width is far too wide). */
#ForgotmodalOuterWrapArea {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    background: rgba(0,0,0,0.50);
    z-index: 120000;
    overflow-y: auto;
}

.reg-card.forgot-card {
    max-width: 460px;
}

/* ── Host-page typography normalisation ─────────────────────────────────────────
   The cards used to inherit their base typography from whatever the host page
   happened to load, so the same markup rendered two different layouts:

     master pages (css-shop/style.css)  12px / 1.7, h1 and p carry padding-bottom
     store-detail themes (Bootstrap 5)  16px / 1.5, reboot zeroes that padding

   Nothing below is new design -- these are the values the master-page version
   already computed, pinned so the modal renders identically on every page. */
#LoginmodalOuterWrapArea .login-card,
#RegistermodalOuterWrapArea .reg-card,
#ForgotmodalOuterWrapArea .reg-card {
    font-size: 12px;
    line-height: normal;
}

    #LoginmodalOuterWrapArea .login-card .card-header h1,
    #RegistermodalOuterWrapArea .reg-card .card-header h1,
    #ForgotmodalOuterWrapArea .reg-card .card-header h1 {
        line-height: 1.48;
        padding-bottom: 0.5em;
    }

    #LoginmodalOuterWrapArea .login-card .card-header p,
    #RegistermodalOuterWrapArea .reg-card .card-header p,
    #ForgotmodalOuterWrapArea .reg-card .card-header p {
        line-height: 1.7;
        padding-bottom: 16px;
    }

    /* .panel-sub keeps its own 1.6 from the rule above; it only ever needed the padding. */
    #LoginmodalOuterWrapArea .login-card .panel-sub {
        padding-bottom: 16px;
    }

    #LoginmodalOuterWrapArea .login-card .field > label,
    #RegistermodalOuterWrapArea .reg-card .field > label,
    #ForgotmodalOuterWrapArea .reg-card .field > label {
        line-height: 20px;
    }

    /* Form controls don't inherit the card's 1.7 -- on master pages the global stylesheet
       pinned them at 20px, which is what sets the 44px input / 48px button heights. */
    #LoginmodalOuterWrapArea .login-card input,
    #LoginmodalOuterWrapArea .login-card select,
    #LoginmodalOuterWrapArea .login-card textarea,
    #LoginmodalOuterWrapArea .login-card button,
    #RegistermodalOuterWrapArea .reg-card input,
    #RegistermodalOuterWrapArea .reg-card select,
    #RegistermodalOuterWrapArea .reg-card textarea,
    #RegistermodalOuterWrapArea .reg-card button,
    #ForgotmodalOuterWrapArea .reg-card input,
    #ForgotmodalOuterWrapArea .reg-card select,
    #ForgotmodalOuterWrapArea .reg-card textarea,
    #ForgotmodalOuterWrapArea .reg-card button {
        line-height: 20px;
    }

/* ---- site alerts (the jQuery UI #dialog box, e.g. "Sorry! This Email-Id already
   exists.") raised while a login / register / forgot modal is open. body.modal-open
   locks the page (overflow hidden, height 100%), which makes jQuery UI drop the box
   at top/left 0 of the scrolled body, i.e. off-screen. Keep it centred in the
   viewport, above the modal, until the modal closes. ---- */
body.modal-open .ui-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    z-index: 999999;
}

/* ===== Compact login card (15 Nov 2026, Anup) =====
   Same look (colours, fonts, badge, tabs, order); only the empty space is smaller so the
   card fits a laptop screen without scrolling. Scoped to the login card only. */
#LoginmodalOuterWrapArea { padding: 16px; }
#LoginmodalOuterWrapArea .page-wrap { padding: 4px; }
#LoginmodalOuterWrapArea .login-card .card-header { padding: 22px 36px 4px; }
#LoginmodalOuterWrapArea .login-card .card-header .mark { width: 40px; height: 40px; margin: 0 auto 8px; }
#LoginmodalOuterWrapArea .login-card .card-header .mark svg { height: 22px; }
#LoginmodalOuterWrapArea .login-card .card-header h1 { font-size: 24px; }
#LoginmodalOuterWrapArea .login-card .card-header h1 .brand-logo { height: 22px; }
#LoginmodalOuterWrapArea .login-card .tabs { margin-top: 10px; }
#LoginmodalOuterWrapArea .login-card .tab-btn { padding-bottom: 10px; }
#LoginmodalOuterWrapArea .login-card .tab-panel { padding: 12px 36px 22px; }
#LoginmodalOuterWrapArea .login-card .panel-sub { margin-bottom: 8px; }
#LoginmodalOuterWrapArea .login-card .field { margin-bottom: 12px; }
#LoginmodalOuterWrapArea .login-card .field label { margin-bottom: 4px; }
#LoginmodalOuterWrapArea .login-card .checkbox-row,
#LoginmodalOuterWrapArea .login-card .field-row { margin: 2px 0 12px; }
#LoginmodalOuterWrapArea .login-card .captcha-box { margin-bottom: 14px; }
#LoginmodalOuterWrapArea .login-card .guest-note { margin-top: 10px; }
@media (max-width: 560px) {
    #LoginmodalOuterWrapArea .login-card .card-header { padding: 20px 22px 4px; }
    #LoginmodalOuterWrapArea .login-card .tab-panel { padding: 12px 22px 20px; }
}
/* One scrollbar only: while the login modal is open the page behind it does not scroll
   (on some pages <html>, not <body>, is the scrolling element). */
html.login-modal-open,
html.login-modal-open body { overflow: hidden !important; }
