/* VedaVaya storefront login popup. Self-contained: nothing here depends on home.css. */

.vv-auth {
    --vv-field-h: 48px;
    --vv-field-border: #dfe3df;
    --vv-green: #2e5332;
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.vv-auth[hidden] { display: none; }

.vv-auth-scrim {
    position: absolute;
    inset: 0;
    background: rgba(24, 33, 25, .55);
    backdrop-filter: blur(2px);
    animation: vvAuthFade .18s ease;
}

.vv-auth-card {
    position: relative;
    width: min(100%, 400px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 30px 26px 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(24, 33, 25, .28);
    text-align: center;
    animation: vvAuthPop .2s ease;
}

/* The country dropdown sits outside the card bounds, so stop clipping it. */
.vv-auth-card.is-picking { overflow: visible; }

@keyframes vvAuthFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vvAuthPop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.vv-auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b756d;
    cursor: pointer;
}
.vv-auth-close:hover { background: #f1f3f1; color: #2e5332; }
.vv-auth-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.vv-auth-card h2 {
    margin: 0 0 8px;
    font-family: Merriweather, Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1d2a1f;
}

.vv-auth-sub {
    margin: 0 0 20px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #66716a;
}

.vv-auth-alert {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fdecec;
    border: 1px solid #f6d2d2;
    color: #a3282c;
    font-size: 12.5px;
    text-align: left;
}

.vv-auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: var(--vv-field-h);
    margin-bottom: 10px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid var(--vv-field-border);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #1d2a1f;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}
.vv-auth-social:hover { border-color: #2e5332; background: #f7faf7; }
.vv-auth-social svg { width: 19px; height: 19px; flex: none; }
.vv-auth-social .vv-auth-mono { fill: #1d2a1f; }
.vv-auth-social .vv-auth-stroke { fill: none; stroke: #2e5332; stroke-width: 1.7; stroke-linejoin: round; }

.vv-auth-or {
    position: relative;
    margin: 18px 0 16px;
    text-align: center;
}
.vv-auth-or::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e6e9e6;
}
.vv-auth-or span {
    position: relative;
    padding: 0 12px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    color: #98a19a;
}

.vv-auth-input {
    width: 100%;
    height: var(--vv-field-h);
    padding: 0 18px;
    margin-bottom: 12px;
    border: 1px solid var(--vv-field-border);
    border-radius: 999px;
    background: #fbfcfb;
    font: inherit;
    font-size: 14px;
    line-height: normal;
    color: #1d2a1f;
    box-sizing: border-box;
}
.vv-auth-input::placeholder { color: #98a19a; }
.vv-auth-input:focus {
    outline: none;
    border-color: #2e5332;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 83, 50, .1);
}
.vv-auth-input.is-invalid { border-color: #d9534f; background: #fffafa; }

.vv-auth-primary {
    width: 100%;
    height: var(--vv-field-h);
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #2e5332;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .16s ease;
}
.vv-auth-primary:hover { background: #24401f; }

.vv-auth-link {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    color: #2e5332;
    text-decoration: underline;
    cursor: pointer;
}

.vv-auth-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: var(--vv-field-h);
    margin: 0 0 12px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid #e6e9e6;
    border-radius: 999px;
    background: #f7faf7;
    font-size: 13px;
    color: #4a544c;
    text-align: left;
}
.vv-auth-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-auth-identity button {
    flex: none;
    border: 0;
    background: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #2e5332;
    text-decoration: underline;
    cursor: pointer;
}

.vv-auth-phone { display: flex; align-items: flex-start; gap: 8px; }
.vv-auth-phone .vv-auth-input { flex: 1; min-width: 0; }

.vv-auth-country { position: relative; flex: none; }

.vv-auth-country-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: var(--vv-field-h);
    padding: 0 12px;
    border: 1px solid var(--vv-field-border);
    border-radius: 999px;
    background: #fbfcfb;
    font: inherit;
    font-size: 14px;
    color: #1d2a1f;
    cursor: pointer;
    box-sizing: border-box;
}
.vv-auth-country-btn:hover { border-color: var(--vv-green); }
.vv-auth-country-btn img { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.vv-auth-country-btn .vv-dropdown-chevron { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; color: #7c857e; }
.vv-auth-country-btn .vv-dropdown-chevron svg { grid-area: 1 / 1; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.vv-auth-country-btn .vv-chevron-up { display: none; }
.vv-auth-country-btn[aria-expanded="true"] .vv-chevron-down { display: none; }
.vv-auth-country-btn[aria-expanded="true"] .vv-chevron-up { display: block; }

.vv-auth-country-menu {
    position: absolute;
    z-index: 5;
    top: calc(var(--vv-field-h) + 6px);
    left: 0;
    width: 268px;
    max-width: calc(100vw - 60px);
    padding: 8px;
    border: 1px solid #e6e9e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(24, 33, 25, .18);
    text-align: left;
}
.vv-auth-country-menu[hidden] { display: none; }

.vv-auth-country-search {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    margin-bottom: 6px;
    border: 1px solid var(--vv-field-border);
    border-radius: 999px;
    background: #fbfcfb;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}
.vv-auth-country-search:focus { outline: none; border-color: var(--vv-green); }

.vv-auth-country-menu ul {
    max-height: 216px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vv-auth-country-menu li[hidden] { display: none; }

.vv-auth-country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: none;
    font: inherit;
    font-size: 13px;
    color: #1d2a1f;
    text-align: left;
    cursor: pointer;
}
.vv-auth-country-option:hover { background: #f2f6f2; }
.vv-auth-country-option.is-selected { background: #eaf1ea; }
.vv-auth-country-option img { width: 22px; height: 16px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.vv-auth-country-option span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-auth-country-option b { flex: none; font-weight: 600; color: #66716a; }

.vv-auth-note {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #66716a;
}

.vv-auth-hint {
    margin: -6px 0 10px;
    font-size: 12px;
    color: #b4262a;
    text-align: left;
    padding-left: 16px;
}

.vv-auth-foot {
    margin: 18px 0 0;
    font-size: 13px;
    color: #66716a;
}
.vv-auth-foot a { color: #2e5332; font-weight: 600; }

.vv-auth-demo {
    margin: 0 0 14px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fdf4e0;
    border: 1px solid #f0e0b0;
    color: #8a6a12;
    font-size: 12.5px;
    text-align: left;
}
.vv-auth-otp {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 4px 0 14px;
}
.vv-auth-otp-box {
    width: 46px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--vv-field-border);
    border-radius: 12px;
    background: #fbfcfb;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #1d2a1f;
}
.vv-auth-otp-box:focus {
    outline: none;
    border-color: #2e5332;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 83, 50, .1);
}
.vv-auth-resend {
    margin: 12px 0 0;
    font-size: 12.5px;
    color: #66716a;
}
.vv-auth-resend button {
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #2e5332;
    text-decoration: underline;
    cursor: pointer;
}
.vv-auth-resend button:disabled {
    color: #98a19a;
    text-decoration: none;
    cursor: default;
}

.vv-auth-legal {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #98a19a;
}
.vv-auth-legal a { color: #66716a; text-decoration: underline; }

.vv-auth-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

body.vv-auth-open { overflow: hidden; }

@media (max-width: 420px) {
    .vv-auth { padding: 12px; }
    .vv-auth-card { padding: 26px 18px 18px; border-radius: 16px; }
    .vv-auth-card h2 { font-size: 19px; }
    .vv-auth-country-btn { padding: 0 10px; gap: 5px; font-size: 13px; }
    .vv-auth-otp { gap: 6px; }
    .vv-auth-otp-box { width: 40px; height: 44px; font-size: 16px; }
}
