/* Amazon-style customer account flow adapted to the active theme colours. */
:root{
  --ssc-auth-accent: var(--e-global-color-secondary, var(--e-global-color-primary, #1f6fb2));
  --ssc-auth-accent-contrast: #ffffff;
  --ssc-auth-text: #0f1111;
  --ssc-auth-muted: #565959;
  --ssc-auth-border: #d5d9d9;
  --ssc-auth-border-strong: #888c8c;
  --ssc-auth-bg: #ffffff;
  --ssc-auth-help: #2162a1;
  --ssc-auth-error: #b12704;
}

.ssc-auth-shell,
.ssc-checkout-profile,
.ssc-checkout-fields,
.ssc-header-account-link{font-family:inherit;color:inherit;box-sizing:border-box}
.ssc-auth-shell *,
.ssc-checkout-profile *,
.ssc-checkout-fields *,
.ssc-header-account-link *{box-sizing:border-box}

/* The custom account flow owns the screen. WooCommerce's default forms stay hidden as fallback markup. */
body.ssc-account-access #customer_login{
  position:absolute!important;
  left:-99999px!important;
  top:auto!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
body.ssc-account-access .woocommerce{max-width:620px;margin-left:auto;margin-right:auto}
body.ssc-account-access .woocommerce-notices-wrapper{max-width:520px;margin:0 auto 18px}
body.ssc-account-access .entry-content,
body.ssc-account-access .site-main,
body.ssc-account-access .content-area{background:transparent}

.ssc-auth-shell{max-width:350px;margin:0 auto 24px;padding:10px 0 30px;transition:max-width .15s ease}
.ssc-auth-shell.is-register{max-width:560px}
.ssc-auth-logo{display:flex;justify-content:center;align-items:center;margin:0 0 16px}
.ssc-auth-logo img{display:block;max-width:180px;max-height:72px;width:auto;height:auto}
.ssc-auth-card{background:var(--ssc-auth-bg);border:1px solid var(--ssc-auth-border);border-radius:8px;padding:20px 26px 24px;box-shadow:none}
.ssc-auth-step{display:none;margin:0}
.ssc-auth-step.is-active{display:block}
.ssc-auth-step h1{margin:0 0 16px;padding:0;font-size:28px;line-height:1.2;font-weight:500;color:var(--ssc-auth-text);font-family:inherit;text-transform:none;letter-spacing:normal}
.ssc-auth-step label{display:block;margin:0 0 10px;font-size:13px;font-weight:700;line-height:1.4;color:var(--ssc-auth-text)}
.ssc-auth-step label>span{font-weight:400;color:var(--ssc-auth-muted)}
.ssc-auth-step input[type="text"],
.ssc-auth-step input[type="email"],
.ssc-auth-step input[type="tel"],
.ssc-auth-step input[type="password"],
.ssc-auth-step select{
  display:block;width:100%;min-height:38px;margin-top:6px;border:1px solid var(--ssc-auth-border-strong);border-radius:4px;background:#fff;padding:6px 10px;font-size:15px;line-height:1.4;color:var(--ssc-auth-text);box-shadow:none;font-family:inherit
}
.ssc-auth-step select{padding-right:32px}
.ssc-auth-step input:focus,.ssc-auth-step select:focus{border-color:var(--ssc-auth-accent);outline:0;box-shadow:0 0 0 3px color-mix(in srgb, var(--ssc-auth-accent) 18%, transparent)}
.ssc-auth-button,
body.ssc-account-access .ssc-auth-card .button.alt.ssc-auth-button{
  display:block;width:100%;margin:14px 0 0;min-height:36px;border-radius:999px;border:1px solid color-mix(in srgb, var(--ssc-auth-accent) 70%, #8c6318);background:var(--ssc-auth-accent)!important;color:var(--ssc-auth-accent-contrast)!important;font-size:13px;font-weight:600;line-height:34px;text-align:center;padding:0 14px;box-shadow:none;text-transform:none
}
.ssc-auth-button:hover,.ssc-auth-button:focus{filter:brightness(.97);color:var(--ssc-auth-accent-contrast)!important}
.ssc-auth-button[disabled]{opacity:.65;cursor:wait}
.ssc-auth-legal,.ssc-auth-subcopy,.ssc-auth-register-intro{margin:18px 0 0;font-size:12px;line-height:1.55;color:var(--ssc-auth-text)}
.ssc-auth-register-intro{margin:-3px 0 18px;color:var(--ssc-auth-muted)}
.ssc-auth-legal a,.ssc-auth-help a,.ssc-auth-mini-link,.ssc-auth-change{color:var(--ssc-auth-help)!important;text-decoration:none;background:none;border:0;padding:0}
.ssc-auth-legal a:hover,.ssc-auth-help a:hover,.ssc-auth-mini-link:hover,.ssc-auth-change:hover{text-decoration:underline}
.ssc-auth-help-link{display:inline-flex;align-items:center;gap:4px;margin:18px 0 0;padding:0;background:none;border:0;color:var(--ssc-auth-help);font-size:13px;line-height:1.4;cursor:pointer}
.ssc-auth-help-link:before{content:'▸';font-size:12px;transform:translateY(-1px)}
.ssc-auth-help-link[aria-expanded="true"]:before{content:'▾'}
.ssc-auth-help{display:flex;flex-direction:column;gap:8px;margin-top:8px;font-size:13px;line-height:1.45;color:var(--ssc-auth-muted)}
.ssc-auth-message{min-height:18px;margin:12px 0 0;font-size:13px;line-height:1.45;color:var(--ssc-auth-error)}
.ssc-auth-step-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 14px;padding:8px 10px;border:1px solid var(--ssc-auth-border);border-radius:8px;background:#f7fafa;color:var(--ssc-auth-text);font-size:14px;line-height:1.4}
.ssc-auth-step-head span{font-weight:500;overflow-wrap:anywhere}
.ssc-auth-mini-link{display:inline-block;margin-top:12px;font-size:13px}
.ssc-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.ssc-auth-grid .ssc-auth-span-2{grid-column:1/-1}

/* Returning-customer checkout summary. */
.ssc-checkout-profile{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 26px;padding:20px 22px;background:#fff;border:1px solid #d8dee6;border-radius:8px}
.ssc-checkout-profile-copy{display:flex;flex-direction:column;min-width:0;gap:2px;line-height:1.45}
.ssc-checkout-profile-copy .ssc-checkout-profile-kicker{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--e-global-color-lighter,#6d7882);margin-bottom:3px}
.ssc-checkout-profile-copy strong{font-size:17px;color:var(--e-global-color-primary,#222a35)}
.ssc-checkout-profile-copy span{overflow-wrap:anywhere;color:var(--e-global-color-text,#6d7882)}
.ssc-checkout-profile-copy small{margin-top:6px;color:var(--e-global-color-secondary,#1f6fb2);font-weight:600}
.ssc-checkout-profile .ssc-checkout-edit{flex:0 0 auto;white-space:nowrap;margin:0}
.ssc-checkout-fields{transition:opacity .18s ease}
.ssc-checkout-fields.is-collapsed{display:none}
.ssc-checkout-fields.is-open{display:block}

/* Optional header-builder shortcode. */
.ssc-header-account-link{display:inline-flex!important;flex-direction:column;justify-content:center;text-decoration:none!important;line-height:1.15;gap:2px}
.ssc-header-account-link span{font-size:12px;font-weight:400}
.ssc-header-account-link strong{font-size:14px;font-weight:600}

@media (max-width:767px){
  body.ssc-account-access .woocommerce{max-width:100%}
  .ssc-auth-shell,.ssc-auth-shell.is-register{max-width:100%;padding:4px 12px 24px}
  .ssc-auth-card{padding:18px 18px 22px}
  .ssc-auth-step h1{font-size:28px}
  .ssc-auth-grid{grid-template-columns:1fr;gap:0}
  .ssc-auth-grid .ssc-auth-span-2{grid-column:auto}
  .ssc-checkout-profile{align-items:flex-start;flex-direction:column;gap:14px;padding:18px}
  .ssc-checkout-profile .ssc-checkout-edit{width:100%}
}
