/* Shared Seller Onboarding v1: keep byte-for-byte identical in both plugins.
   Isolated to seller gateway paths, NO Woo My Account, cart, or checkout selectors. */
.tm-sgw-shell{--seller-accent:#08795a;--seller-accent-soft:#e9f8f0;--seller-accent-rgb:8,121,90}
.wm-sgw-shell{--seller-accent:#f26422;--seller-accent-soft:#fff2e9;--seller-accent-rgb:242,100,34}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card,.wm-sgw-card){border-radius:18px;border:1px solid #e3e8ed;box-shadow:0 18px 52px rgba(16,24,40,.085)}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-eyebrow,.wm-sgw-eyebrow,.tm-sgw-kicker,.wm-sgw-kicker){color:var(--seller-accent);font-size:11px;font-weight:800;letter-spacing:.12em}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-hero,.wm-sgw-hero) h1{color:#101828;font-size:clamp(30px,3.1vw,44px);letter-spacing:-.035em;line-height:1.12;font-weight:760}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-lead,.wm-sgw-lead){color:#667085;font-size:16px;line-height:1.55}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-inner,.wm-sgw-card-inner){padding:30px}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) label{color:#243043;font-size:13px;font-weight:650;line-height:1.45}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:46px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#152238;font-size:14px;box-shadow:none}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{outline:0;border-color:var(--seller-accent);box-shadow:0 0 0 3px rgba(var(--seller-accent-rgb),.11)}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-progress,.wm-sgw-register-progress) .is-active>span{background:var(--seller-accent-soft);color:var(--seller-accent);border-color:var(--seller-accent)}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-primary,.wm-sgw-primary){background:var(--seller-accent);border-color:var(--seller-accent);color:#fff;border-radius:9px;min-height:48px}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-primary,.wm-sgw-primary):hover{filter:brightness(.91);background:var(--seller-accent);border-color:var(--seller-accent)}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-trust-row,.wm-sgw-trust-row) b{color:var(--seller-accent)}
/* Tea: match Wine's separate international dialing prefix, avoiding country-code repetition. */
.tm-sgw-phone-row{display:flex;gap:9px;width:100%;min-width:0;align-items:stretch}
.tm-sgw-phone-row select{flex:0 0 83px!important;max-width:83px;min-width:0;padding:8px!important}
.tm-sgw-phone-row input{flex:1 1 auto;min-width:0;width:1px!important}
.tm-sgw-password-wrap{display:flex;position:relative;align-items:center;width:100%;min-width:0}
.tm-sgw-password-wrap input{width:100%;min-width:0;padding-right:64px!important}
.tm-sgw-password-wrap button{position:absolute;right:7px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#344054;font-size:12px;font-weight:700;padding:10px 8px;cursor:pointer}
.tm-sgw-password-wrap button:focus-visible{outline:2px solid var(--seller-accent);outline-offset:1px;border-radius:4px}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields){row-gap:18px;column-gap:14px}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-next-note,.wm-sgw-next-note){background:#f8fafc;border-color:#e2e8f0;border-radius:10px}
@media(max-width:640px){
 :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-inner,.wm-sgw-card-inner){padding:23px 18px}
 :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-lead,.wm-sgw-lead){font-size:14px}
 :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 .tm-sgw-phone-row select{flex-basis:77px!important;max-width:77px}
}

/* Override older Wine.my high-specificity color styles only within merchant gateway. */
body.wm-seller-gateway-page .wm-sgw-shell .wm-sgw-primary{background:var(--seller-accent)!important;border-color:var(--seller-accent)!important}
body.wm-seller-gateway-page .wm-sgw-shell :is(.wm-sgw-eyebrow,.wm-sgw-kicker){color:var(--seller-accent)}
body.wm-seller-gateway-page .wm-sgw-shell .wm-sgw-tabs .is-active:after{background:var(--seller-accent)}
body.wm-seller-gateway-page .wm-sgw-shell .wm-sgw-journey>div span{background:var(--seller-accent-soft);color:var(--seller-accent);border-color:#ffd5b8}
body.wm-seller-gateway-page .wm-sgw-shell .wm-sgw-register-progress .is-active>span{background:var(--seller-accent-soft);color:var(--seller-accent);border:1px solid var(--seller-accent)}
/* Both login journeys use the same bullet-card rhythm and spacing. */
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-journey,.wm-sgw-journey){margin-top:28px;display:grid;gap:0}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-journey,.wm-sgw-journey)>div{display:grid;grid-template-columns:42px 1fr;gap:14px;min-height:66px}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-journey,.wm-sgw-journey) strong{font-size:14px;color:#1d2939}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-journey,.wm-sgw-journey) small{font-size:12.5px;line-height:1.45;color:#667085}

/* Shared layout and control metrics override each legacy application's historical UI CSS. */
@media (min-width:1001px){
 .tm-sgw-shell .tm-sgw-grid-register,
 body.wm-seller-gateway-page .wm-sgw-grid-register{grid-template-columns:minmax(0,.9fr) minmax(520px,590px);gap:60px}
}
@media (min-width:641px){
 .tm-sgw-shell .tm-sgw-hero h1,body.wm-seller-gateway-page .wm-sgw-hero h1,
 body.wm-seller-gateway-page .wm-sgw-hero.is-register h1{font-size:44px;line-height:1.1;letter-spacing:-1.5px}
}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){height:48px!important;min-height:48px!important;border-radius:9px!important}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) textarea{height:auto!important;min-height:82px!important}
@media (min-width:641px) and (max-width:1000px){
 .tm-sgw-shell .tm-sgw-grid-register,
 body.wm-seller-gateway-page .wm-sgw-grid-register{grid-template-columns:1fr;width:min(calc(100% - 30px),620px);gap:26px;min-height:0}
}
@media(max-width:640px){
 .tm-sgw-shell .tm-sgw-hero h1,body.wm-seller-gateway-page .wm-sgw-hero h1,
 body.wm-seller-gateway-page .wm-sgw-hero.is-register h1{font-size:30px;line-height:1.14;letter-spacing:-.9px}
 .tm-sgw-shell .tm-sgw-grid-register,
 body.wm-seller-gateway-page .wm-sgw-grid-register{grid-template-columns:1fr;width:calc(100% - 28px);gap:20px;min-height:0}
}

:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){box-sizing:border-box!important}

/* RC82 shared, page-scoped parity. Existing Woo My Account and CheckoutWC are never targeted. */
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) .wmte-country-code-select,
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select{
  -webkit-appearance:menulist!important;appearance:menulist!important;
  background:#fff!important;color:#17263d!important;min-width:72px!important;max-width:83px!important;
  padding:0 9px!important;line-height:1.4!important;cursor:pointer!important;
}
:is(.tm-sgw-shell,.wm-sgw-shell) .wmte-seller-terms{
  font-size:12px!important;line-height:1.55!important;color:#7c889b!important;text-align:center!important;margin:16px 0 0!important;
}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields) select{
  cursor:pointer!important;
}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields)>label,
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-fields,.wm-sgw-register-fields)>label>span{min-width:0!important;box-sizing:border-box!important}
@media(max-width:700px){
 :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select{min-width:65px!important;max-width:77px!important}
}

/* Cross-platform onboarding parity (v2026-10-13). Only the two seller application surfaces. */
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-register-only,.wm-sgw-register-form) .wmte-seller-terms,
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register) > :is(.tm-sgw-card-inner,.wm-sgw-card-inner) > .wmte-seller-terms {
 display:block!important;visibility:visible!important;opacity:1!important;
 max-width:100%!important;white-space:normal!important;overflow-wrap:break-word!important;
 font-size:12px!important;line-height:1.6!important;color:#69768a!important;
 margin:16px 0 0!important;text-align:center!important;
}
/* A consistently visible dropdown chevron regardless of browser-native appearance, including Incognito. */
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register) :is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select {
 -webkit-appearance:none!important;appearance:none!important;
 background-color:#fff!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23334455' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-size:12px 12px!important;background-position:right 7px center!important;
 min-width:83px!important;max-width:83px!important;width:83px!important;
 padding:0 24px 0 10px!important;text-align:left!important;
 box-sizing:border-box!important;cursor:pointer!important;
}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register) :is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select:focus-visible {
 outline:2px solid var(--seller-accent)!important;outline-offset:2px!important;
}
@media(max-width:390px){
 :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register) :is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select {
  min-width:80px!important;max-width:80px!important;width:80px!important;
 }
}

/* v2026-10-13.2 — One country-prefix control contract across both signup forms.
   Preserve native select and phone input; avoid WooCommerce/CheckoutWC selectors. */
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register)
:is(.tm-sgw-phone-row,.wm-sgw-phone-row){
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register)
:is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select{
  display:block!important;
  width:92px!important;
  min-width:92px!important;
  max-width:92px!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding:0 28px 0 12px!important;
  font-size:14px!important;
  line-height:1.4!important;
  box-sizing:border-box!important;
  background-position:right 10px center!important;
  background-size:12px 12px!important;
  text-align:left!important;
  text-align-last:left!important;
}
:is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register)
:is(.tm-sgw-phone-row,.wm-sgw-phone-row)>input[type=tel]{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding-left:13px!important;
  box-sizing:border-box!important;
}
@media(max-width:390px){
  :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register)
  :is(.tm-sgw-phone-row,.wm-sgw-phone-row){grid-template-columns:88px minmax(0,1fr)!important;gap:10px!important}
  :is(.tm-sgw-shell,.wm-sgw-shell) :is(.tm-sgw-card-register,.wm-sgw-card-register)
  :is(.tm-sgw-phone-row,.wm-sgw-phone-row)>select{width:88px!important;min-width:88px!important;max-width:88px!important;padding-left:10px!important;padding-right:27px!important}
}

/* Registration progress is not shown until the required account fields validate.
   Override existing grid display rules; the HTML hidden attribute alone is not enough. */
[data-wmte-seller-register] [data-wmte-next-step][hidden] { display:none !important; }
