:host{display:block;min-width:0;color:var(--checkout-text,#24282d);font:16px/1.45 Arial,sans-serif;--selected:var(--checkout-selected,#374151);--selected-bg:var(--checkout-selected-bg,#f1f3f5)}
*{box-sizing:border-box} [hidden]{display:none!important} h2{font-size:20px;margin:0 0 20px;font-weight:700} section{padding:0} .fields{display:grid;gap:14px}.row{display:flex;gap:12px}.row>*{flex:1;min-width:0}.details{display:grid;gap:14px}.field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500;min-width:0}input,select,button{font:inherit}input:not([type=radio]):not([type=checkbox]),select{display:block;width:100%;min-height:48px;border:1px solid #bfc5cc;border-radius:6px;background:var(--checkout-surface,#fff);color:inherit;padding:12px;font-size:16px} input:focus,select:focus{outline:2px solid var(--selected);outline-offset:2px}input[aria-invalid=true],select[aria-invalid=true]{border-color:#b42318!important;outline-color:#b42318}.error{color:#b42318;font-size:12px}.error:empty{display:none}fieldset{border:0;padding:0;margin:0;min-width:0}.wallets{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #bfc5cc;border-radius:8px;padding:14px}.wallet{position:relative;display:flex;align-items:center;justify-content:center;flex:1 1 100px;min-height:48px;border-radius:6px;cursor:pointer;border:2px solid transparent}.wallet input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;margin:0}.wallet:has(input:checked){outline:3px solid var(--selected);outline-offset:3px}.wallet:has(input:focus-visible){outline:3px solid var(--selected);outline-offset:3px}.wallet:has(input:checked):after{content:'✓';position:absolute;right:4px;top:0;color:#fff;background:var(--selected);border-radius:50%;width:20px;height:20px;text-align:center;font-size:14px;pointer-events:none}.wallet img{max-width:100px;max-height:30px;width:auto;pointer-events:none}.paypal{background:#ffd431}.apple_pay,.google_pay{background:#000;color:#fff}.apple_pay span{font-size:22px}.klarna{background:#fda0c6}.separator{display:flex;align-items:center;gap:12px;margin:18px 0}.separator:before,.separator:after{content:'';height:1px;background:#c5c9ce;flex:1}.card{display:flex;align-items:center;gap:12px;border:1px solid #bfc5cc;padding:14px;cursor:pointer;min-height:56px}.card:has(input:checked){border-color:var(--selected);background:var(--selected-bg)}input[type=radio],input[type=checkbox]{accent-color:var(--selected);width:20px;height:20px;flex-shrink:0;margin:0}.brands{display:flex;gap:8px;margin-left:auto}.brands img{width:36px;height:24px;object-fit:contain}.note{padding:16px;line-height:1.5;margin:14px 0 28px}.billing-toggle{display:flex;align-items:center;gap:8px;margin:0 0 20px;cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:host([disabled]){opacity:.6}.wallet:has(input:disabled),:host([disabled]) label{cursor:default}@media(max-width:600px){.wallet{flex-basis:100%}.address-row{flex-wrap:wrap}.address-row>*{flex-basis:100%}}@media(max-width:350px){.row{flex-wrap:wrap}.row>*{flex-basis:100%}.brands{gap:4px}.brands img{width:28px}}

/* Match host; selected combo uses brand purple. */
:host{font-family:inherit;--checkout-selected:var(--selected-color,var(--brand-primary,#4b315c));--checkout-selected-bg:var(--selected-bg,var(--brand-tint,#f0eae9));--checkout-text:var(--brand-ink,#332b35)}
h2{font-size:18px;margin:14px 0 16px;line-height:1.5}

/* Floating labels — align empty metrics with slotted card chrome (solarstake-shopify only).
   Empty: 14px/400/#9ca3af @ top ~10px. Focus/filled: float 11px @ top ~8px. */
.fields,.details{gap:16px}.field{position:relative;gap:0;font-weight:400;overflow:visible}
.field-label{position:absolute;top:10px;left:14px;font-size:14px;font-weight:400;line-height:1.25;color:#9ca3af;pointer-events:none;z-index:1;transition:font-size .15s,top .15s,color .15s}
.field input:not([type=radio]):not([type=checkbox]),.field select{min-height:52px;height:52px;border-color:#c9ccd1;border-radius:8px;padding:10px 14px;font-size:16px;font-weight:400;line-height:1.25;box-sizing:border-box}
/* Empty text inputs: keep value/caret area under the ~10px label */
.field:has(input:placeholder-shown:not(:focus)) input{padding:10px 14px}
.field:has(input:focus) input,.field:has(input:not(:placeholder-shown)) input{padding:20px 14px 8px}
.field:has(input:focus) .field-label,.field:has(input:not(:placeholder-shown)) .field-label,.select-field .field-label{top:8px;font-size:11px;font-weight:400;line-height:1.2;color:#9ca3af}
.error{margin-top:5px}.shipping-subtitle{font-size:14px;color:#666;margin:-9px 0 20px}
.wallets{padding:15px;border-color:#a8a8a8;gap:8px}.wallet{flex:1 1 0;min-width:0;height:48px;min-height:48px;border-radius:4px}
.wallet img{max-width:100%;max-height:24px}.wallet.apple_pay img{width:64px;max-height:48px}.wallet.google_pay img{height:31px;max-height:31px}.wallet.klarna img{width:65px}.wallet.paypal img{width:85px}
.card{background:#fff;padding:14px 15px;gap:10px;border:1px solid #d0d5dd;border-radius:8px;font-weight:500;color:#111827}
.card:has(input:checked){border-color:var(--selected,#4b315c);background:var(--selected-bg,#f0eae9);box-shadow:inset 0 0 0 1px var(--selected,#4b315c)}
.card:has(input:focus:not(:focus-visible)) input{outline:none}
.card input[type=radio]:focus{outline:none}
.card input[type=radio]:focus-visible{outline:2px solid var(--selected,#4b315c);outline-offset:2px}
.note{font-size:16px;padding:16px 0;margin:0 0 16px}.billing-toggle{font-size:14px;margin-bottom:20px}.billing-toggle input{width:16px;height:16px}
/* Mobile ≤768: denser Shopify/Stripe-like pay chrome (solarstake-shopify page2). */
@media(max-width:768px){
  h2{font-size:17px;margin:8px 0 10px}
  .shipping-subtitle{margin:-4px 0 10px;font-size:13px}
  .fields,.details{gap:10px}
  .row{display:flex;flex-wrap:nowrap;gap:8px}
  .row>*{flex:1 1 0;min-width:0;flex-basis:0}
  .field input:not([type=radio]):not([type=checkbox]),.field select,.select-field select{
    min-height:52px;height:52px;padding:10px 14px;border-radius:8px
  }
  .field:has(input:focus) input,.field:has(input:not(:placeholder-shown)) input{padding:20px 14px 8px}
  .field-label{top:10px;left:14px;font-size:14px;font-weight:400;color:#9ca3af}
  .field:has(input:focus) .field-label,.field:has(input:not(:placeholder-shown)) .field-label,.select-field .field-label{top:8px;font-size:11px;color:#9ca3af}
  .select-field select{padding:20px 14px 8px}
  .wallets{padding:10px;gap:6px;border-radius:10px}
  .wallet{flex-basis:100%;flex:1 1 100%;height:44px;min-height:44px;border-radius:9px}
  .wallet.paypal{background:#ffc439}
  .wallet.apple_pay,.wallet.google_pay{background:#000}
  .wallet img{max-height:20px}
  .wallet.paypal img{width:72px;max-height:18px}
  .wallet.apple_pay img{width:52px;max-height:28px}
  .wallet.google_pay img{height:22px;max-height:22px}
  .separator{margin:10px 0;gap:10px}
  .separator:before,.separator:after{height:1px;background:#e3e5e8}
  .card{min-height:48px;padding:12px 12px;border-radius:8px;gap:8px}
  .card:has(input:checked){
    border-color:var(--selected,var(--brand-primary,#4b315c));background:var(--selected-bg,var(--brand-tint,#f0eae9));box-shadow:inset 0 0 0 1px var(--selected,var(--brand-primary,#4b315c))
  }
  .card input[type=radio]{accent-color:var(--selected,var(--brand-primary,#4b315c));width:18px;height:18px}
  .brands{gap:6px;margin-left:auto;align-items:center}
  .brands img{width:32px;height:20px}
  .billing-toggle{margin:8px 0 12px;font-size:13px}
  .note{margin:0 0 10px;padding:10px 0;font-size:14px}
  .card+.card{margin-top:6px}
  .card-fields .row,.address-row{flex-wrap:nowrap!important;gap:8px}
  .card-fields .row>*,.address-row>*{flex:1 1 0;min-width:0;flex-basis:0}
  .address-row .field-label{font-size:11px}
}
@media(max-width:350px){.address-row{flex-wrap:wrap}.address-row>*{flex-basis:100%}}

.wallet{appearance:none;font:inherit}.wallet:focus-visible{outline:3px solid #4b315c;outline-offset:3px}dialog{border:1px solid #ccd3d9;border-radius:8px;padding:24px;max-width:90vw;color:#132e42}dialog::backdrop{background:#071b2c99}dialog button{padding:10px 24px;cursor:pointer}

/* Country/State: same 52px shell; label always floated (select has value). */
.select-field select{box-sizing:border-box;height:52px;min-height:52px;line-height:20px;padding:20px 14px 8px}
.select-field .field-label{top:8px;line-height:1.2;font-size:11px;font-weight:400;color:#9ca3af}
/* dual select under OR */.card+.card{margin-top:8px}
