/* Customer authentication pages; no checkout/admin form overrides. */
.buyer-auth-body .auth-forgot-link { display: inline-flex; align-items: center; justify-self: end; min-height: 44px; color: var(--theme-primary, #2f2d20); font-size: .875rem; font-weight: 500; }
.buyer-auth-body .auth-reset-note { padding: 14px 16px; background: var(--theme-soft, #f7f2ed); color: var(--theme-primary, #2f2d20); line-height: 1.7; }
.buyer-auth-body .auth-reset-help { margin: 8px 0 0; font-size: .8125rem; line-height: 1.7; color: #626262; }
.buyer-auth-body .auth-field .auth-otp { padding-inline: 16px; text-align: center; font-family: Consolas,Monaco,monospace; font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: .35em; }
.buyer-auth-body .auth-reset-toggle { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--theme-primary, #2f2d20); font-size: .875rem; text-decoration: underline; }
.buyer-auth-body .auth-reset-panel-confirm .auth-heading { margin-bottom: 20px; }
.buyer-auth-body .auth-reset-confirm-form { gap: 12px; }
.buyer-auth-body .auth-reset-email-confirm { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 92px; padding: 17px 18px; overflow: hidden; border: 1px solid #e7ddd2; border-radius: 12px; background: linear-gradient(135deg, #fcfaf7 0%, #f7f2ed 100%); box-shadow: 0 5px 16px rgb(47 45 32 / 5%); }
.buyer-auth-body .auth-reset-email-confirm::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--theme-primary, #2f2d20); content: ''; }
.buyer-auth-body .auth-reset-email-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #e5d9cc; border-radius: 50%; background: #fff; color: var(--theme-primary, #2f2d20); }
.buyer-auth-body .auth-reset-email-icon svg { display: block; width: 21px; height: 21px; }
.buyer-auth-body .auth-reset-email-copy { display: grid; gap: 5px; min-width: 0; }
.buyer-auth-body .auth-reset-email-label { color: #71695f; font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: .025em; }
.buyer-auth-body .auth-reset-email-confirm strong { color: var(--theme-primary); font-size: 1.125rem; font-weight: 650; line-height: 1.35; letter-spacing: .005em; overflow-wrap: anywhere; }
.buyer-auth-body .auth-reset-confirm-check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 12px; border: 1px solid #ece8e1; border-radius: 7px; color: #48463e; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.buyer-auth-body .auth-reset-submit-hint { margin: 0; color: #68645c; font-size: .8125rem; line-height: 1.55; }
.buyer-auth-body .auth-reset-submit-hint strong { color: var(--theme-primary); font-weight: 600; }
.buyer-auth-body .auth-reset-confirm-check:focus-within { outline: 2px solid var(--theme-primary); outline-offset: 3px; border-radius: 4px; }
.buyer-auth-body .auth-reset-confirm-check input { flex: 0 0 auto; width: 19px; height: 19px; margin: 0; accent-color: var(--theme-primary); }
.buyer-auth-body .auth-reset-change { justify-self: center; min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: #625947; font-size: .875rem; font-weight: 600; text-decoration: none; }
.buyer-auth-body .auth-reset-change:hover { color: var(--theme-primary); text-decoration: underline; }
.buyer-auth-body .auth-reset-change:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
.buyer-auth-body .auth-reset-page { padding-block: clamp(32px, 6vw, 64px) 32px; background: transparent; }
.buyer-auth-body .auth-reset-shell { max-width: 420px; }
.buyer-auth-body .auth-reset-panel { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.buyer-auth-body .auth-reset-panel .auth-heading { margin-bottom: 24px; }
.buyer-auth-body .auth-reset-panel .auth-heading h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.3rem + .5vw, 1.875rem); line-height: 1.35; font-weight: 600; letter-spacing: -.035em; }
.buyer-auth-body .auth-reset-panel .auth-submit { width: 100%; }
.buyer-auth-body .auth-reset-panel .auth-switch { text-align: center; }
.buyer-auth-body .auth-reset-panel .auth-reset-change { width: 100%; text-align: center; }
.buyer-auth-body .auth-reset-panel .auth-alert { padding: 13px 15px; }
.buyer-auth-body :is(.auth-forgot-link,.auth-reset-toggle):focus-visible { outline: 2px solid var(--theme-primary, #2f2d20); outline-offset: 3px; }
.buyer-auth-body .auth-facebook-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; width: 100%; margin-top: 12px; padding: 12px 16px; border: 1px solid #0866ff; border-radius: 6px; background: #0866ff; color: #fff; font-weight: 600; text-decoration: none; }
.buyer-auth-body .auth-facebook-btn:hover { background: #0756d6; color: #fff; }
.buyer-auth-body .auth-facebook-btn:focus-visible { outline: 3px solid #152f69; outline-offset: 3px; }
.buyer-auth-body .auth-facebook-icon { width: 22px; height: 22px; flex-shrink: 0; }
.buyer-auth-body { background: var(--theme-background, #fff); }
.buyer-auth-body .auth-page { display: block; min-height: 0; padding-block: clamp(32px, 6vw, 64px) 32px; background: transparent; }
.buyer-auth-body .auth-shell { display: block; max-width: 420px; margin-inline: auto; }
.buyer-auth-body .auth-panel { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.buyer-auth-body .auth-heading { margin-bottom: 24px; }
.buyer-auth-body .auth-heading h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.3rem + .5vw, 1.875rem); line-height: 1.35; font-weight: 600; letter-spacing: -.035em; color: var(--theme-primary); }
.buyer-auth-body .auth-heading p { font-size: .9375rem; line-height: 1.6; color: #626262; }
.buyer-auth-body .auth-google-btn { min-height: 48px; gap: 12px; border: 1px solid var(--theme-soft-2); border-radius: 6px; background: #fff; font-size: .9375rem; font-weight: 500; box-shadow: none; }
.buyer-auth-body .auth-google-btn:hover { background: var(--theme-soft); transform: none; box-shadow: none; }
.buyer-auth-body .auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #737373; font-size: .8125rem; font-weight: 400; }
.buyer-auth-body .auth-divider::before, .buyer-auth-body .auth-divider::after { content: ''; position: static; flex: 1; height: 1px; background: var(--theme-soft-2); }
.buyer-auth-body .auth-divider span { flex: 0 1 auto; padding: 0; background: transparent; }
.buyer-auth-body .auth-form { gap: 16px; }
.buyer-auth-body .auth-field > label { display: block; margin: 0 0 6px; font-size: .875rem; line-height: 1.5; font-weight: 500; color: #383838; }
.buyer-auth-body .auth-field .form-control { height: 48px; min-height: 48px; padding: 11px 12px; border: 1px solid var(--theme-soft-2); border-radius: 6px; background: #fff; color: #292929; font-size: 1rem; line-height: 1.5; }
.buyer-auth-body .auth-field .form-control::placeholder { color: #8a8a8a; opacity: 1; }
.buyer-auth-body .auth-field .form-control:focus { border-color: var(--theme-primary); box-shadow: 0 0 0 2px var(--theme-soft-2); }
.buyer-auth-body .auth-field .form-control.is-invalid { border-color: var(--bs-danger, #dc3545); }
.buyer-auth-body .auth-field:has(.auth-password-toggle) .form-control { padding-right: 52px; background-image: none; }
.buyer-auth-body .auth-password-toggle { top: 29px; right: 2px; width: 44px; height: 44px; min-height: 44px; padding: 11px; border: 0; border-radius: 4px; background: transparent; color: #666; }
.buyer-auth-body .auth-password-toggle svg { display: block; width: 22px; height: 22px; }
.buyer-auth-body .auth-submit { min-height: 48px; margin-top: 2px; border-radius: 6px; background: var(--theme-primary); border-color: var(--theme-primary); color: #fff; font-size: .9375rem; font-weight: 600; box-shadow: none; }
.buyer-auth-body .auth-submit:hover:not(:disabled) { background: var(--theme-primary-hover); border-color: var(--theme-primary-hover); }
.buyer-auth-body .auth-consent { min-height: 44px; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: #626262; font-size: .8125rem; line-height: 1.65; cursor: pointer; }
.buyer-auth-body .auth-consent input { margin-top: 3px; }
.buyer-auth-body .auth-consent-locked { color: #817b72; }
.buyer-auth-body .auth-consent-locked a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.buyer-auth-body .signup-policy-consent-help { margin: -9px 0 0 27px; color: #777168; font-size: .75rem; line-height: 1.55; }
.buyer-auth-body .signup-policy-consent-help.is-complete { color: var(--theme-primary, #2f2d20); }
.buyer-auth-body .signup-policy-validation { margin: -8px 0 0 27px; color: var(--bs-danger, #b42318); font-size: .75rem; line-height: 1.5; }
.buyer-auth-body.signup-policy-open { overflow: hidden; }
.buyer-auth-body .signup-policy-modal { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 24px; background: rgb(30 29 25 / 52%); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.buyer-auth-body .signup-policy-modal[hidden] { display: none; }
.buyer-auth-body .signup-policy-dialog { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; width: min(760px, 100%); max-height: min(840px, 88svh); min-height: min(560px, 88svh); overflow: hidden; border: 1px solid #e9e1d8; border-radius: 16px; background: #fff; box-shadow: 0 24px 72px rgb(24 23 19 / 22%); outline: none; }
.buyer-auth-body .signup-policy-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid #eee9e3; }
.buyer-auth-body .signup-policy-kicker { color: #81776b; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.buyer-auth-body .signup-policy-header h2 { margin: 3px 0 0; color: var(--theme-primary, #2f2d20); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.buyer-auth-body .signup-policy-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #eee9e3; border-radius: 50%; background: #fff; color: #625d55; font-size: 1.5rem; line-height: 1; }
.buyer-auth-body .signup-policy-close:hover { background: #f7f3ee; color: var(--theme-primary, #2f2d20); }
.buyer-auth-body .signup-policy-instruction { margin: 0; padding: 11px 24px; background: #faf8f5; color: #625d55; font-size: .75rem; line-height: 1.5; }
.buyer-auth-body .signup-policy-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 24px 28px; color: #4f4b44; font-size: .8125rem; line-height: 1.7; scrollbar-color: #c7a78a #f5f1ec; scrollbar-width: thin; }
.buyer-auth-body .signup-policy-scroll:focus-visible { outline: 2px solid var(--theme-primary, #2f2d20); outline-offset: -3px; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content { max-width: none; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content h2 { margin: 22px 0 8px; color: var(--theme-primary, #2f2d20); font-size: .9375rem; line-height: 1.5; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content h2:first-child { margin-top: 0; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content h3 { margin: 18px 0 7px; font-size: .875rem; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content p { margin-bottom: 12px; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content :is(ul, ol) { padding-left: 1.25rem; }
.buyer-auth-body .signup-policy-scroll .buyer-help-content a { color: var(--theme-primary, #2f2d20); text-underline-offset: 2px; }
.buyer-auth-body .signup-policy-loading, .buyer-auth-body .signup-policy-error { margin: 0; color: #625d55; font-size: .8125rem; }
.buyer-auth-body .signup-policy-error a { display: inline-flex; align-items: center; min-height: 44px; }
.buyer-auth-body .signup-policy-retry { min-height: 40px; margin-top: 12px; padding: 8px 13px; border: 1px solid #d9c8b7; border-radius: 7px; background: #faf7f3; color: var(--theme-primary, #2f2d20); font-size: .8125rem; font-weight: 600; }
.buyer-auth-body .signup-policy-retry:hover { background: #f2ebe3; }
.buyer-auth-body .signup-policy-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid #eee9e3; background: #fff; }
.buyer-auth-body .signup-policy-progress { color: #6f695f; font-size: .75rem; line-height: 1.5; }
.buyer-auth-body .signup-policy-accept { min-height: 44px; padding: 9px 16px; border: 1px solid var(--theme-primary, #2f2d20); border-radius: 7px; background: var(--theme-primary, #2f2d20); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.buyer-auth-body .signup-policy-accept:disabled { cursor: not-allowed; border-color: #d8d2ca; background: #e9e6e1; color: #78736a; }
.buyer-auth-body :is(.signup-policy-close, .signup-policy-accept):focus-visible { outline: 2px solid #8b6f51; outline-offset: 3px; }
.buyer-auth-body .auth-consent input:disabled { cursor: not-allowed; }
@media (max-width: 575.98px) {
    .buyer-auth-body .signup-policy-modal { padding: 12px; }
    .buyer-auth-body .signup-policy-dialog { max-height: 92svh; min-height: min(520px, 92svh); border-radius: 13px; }
    .buyer-auth-body .signup-policy-header { padding: 16px 17px 12px; }
    .buyer-auth-body .signup-policy-instruction { padding: 10px 17px; }
    .buyer-auth-body .signup-policy-scroll { padding: 16px 17px 22px; font-size: .8rem; }
    .buyer-auth-body .signup-policy-footer { align-items: stretch; flex-direction: column; gap: 9px; padding: 12px 17px max(12px, env(safe-area-inset-bottom)); }
    .buyer-auth-body .signup-policy-progress { min-height: 18px; }
    .buyer-auth-body .signup-policy-accept { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .buyer-auth-body .signup-policy-modal * { scroll-behavior: auto !important; transition: none !important; } }
.buyer-auth-body .auth-consent a, .buyer-auth-body .auth-switch a { color: var(--theme-primary); font-weight: 600; }
.buyer-auth-body .auth-switch { margin-top: 20px; font-size: .875rem; color: #626262; }
.buyer-auth-body .auth-switch a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.buyer-auth-body .auth-alert { margin-bottom: 20px; border-radius: 6px; font-size: .875rem; overflow-wrap: anywhere; }
.buyer-auth-body .auth-google-btn:focus-visible, .buyer-auth-body .auth-password-toggle:focus-visible, .buyer-auth-body .auth-submit:focus-visible, .buyer-auth-body .auth-switch a:focus-visible, .buyer-auth-body .auth-consent a:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
@media (max-width: 575.98px) { .buyer-auth-body .auth-page { padding-block: 28px 20px; } .buyer-auth-body .auth-page > .container { padding-inline: 20px; } }
@media (prefers-reduced-motion: reduce) { .buyer-auth-body .auth-page * { transition: none !important; } }

/* Keep the security widget balanced with the existing form, without an extra card. */
.buyer-auth-body .auth-form { grid-template-columns: minmax(0, 1fr); }
.buyer-auth-body .auth-captcha { width: 100%; min-width: 0; display: grid; justify-items: center; gap: 8px; margin-block: 2px 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.buyer-auth-body .auth-captcha-slot { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 78px; }
.buyer-auth-body .auth-captcha-slot[data-size="compact"] { min-height: 144px; }
.buyer-auth-body .auth-captcha-slot > .g-recaptcha { justify-self: center; line-height: 0; }
.buyer-auth-body .auth-captcha-status, .buyer-auth-body .auth-captcha noscript p { margin: 0; min-height: 20px; max-width: 34ch; font-size: .75rem; line-height: 1.65; text-align: center; color: #626262; overflow-wrap: anywhere; }
.buyer-auth-body .auth-captcha-status:empty { display: none; }
.buyer-auth-body .auth-captcha[data-state="verified"] .auth-captcha-status { color: var(--theme-primary, #2f2d20); }
.buyer-auth-body .auth-captcha[data-state="error"] .auth-captcha-status { color: var(--bs-danger, #b42318); }
@media (max-width: 343.98px) { .buyer-auth-body .auth-captcha-slot { min-height: 144px; } }
