.ct-storefront .ct-account-nav ul,
.ct-storefront .ct-account-plugin-nav {display:flex;flex-wrap:wrap;gap:var(--ct-space-2);list-style:none;padding:0;margin-block:var(--ct-space-5);}
.ct-storefront .ct-account-nav a {display:inline-flex;align-items:center;min-height:44px;padding:var(--ct-space-2) var(--ct-space-4);border:1px solid var(--ct-color-border);border-radius:var(--ct-control-radius);text-decoration:none;}
.ct-storefront .ct-account-nav [aria-current="page"] {background:var(--ct-color-primary);border-color:var(--ct-color-primary);color:var(--ct-color-on-primary);font-weight:var(--ct-font-weight-semibold);}
.ct-storefront .ct-account-panel {margin-block:var(--ct-space-6);padding:clamp(16px,3vw,28px);border:1px solid var(--ct-color-border);border-radius:var(--ct-radius-md);min-width:0;overflow-wrap:anywhere;}
.ct-storefront .ct-account-panel > .ct-heading-1 {margin-bottom:var(--ct-space-5);}
.ct-storefront .ct-account-orders {display:grid;gap:var(--ct-space-4);}
.ct-storefront .ct-account-order-heading {display:flex;flex-wrap:wrap;align-items:center;gap:var(--ct-space-3);justify-content:space-between;}
.ct-storefront .ct-account-status {padding:var(--ct-space-2) var(--ct-space-3);background:var(--ct-color-surface);border-radius:var(--ct-radius-pill);}
.ct-storefront .ct-account-section {margin-top:var(--ct-space-6);}
.ct-storefront .ct-account-table-scroll {max-width:100%;overflow-x:auto;}
.ct-storefront .ct-account-table {border-collapse:collapse;width:100%;min-width:560px;}
.ct-storefront .ct-account-table th,
.ct-storefront .ct-account-table td {text-align:left;vertical-align:top;padding:var(--ct-space-3);border-bottom:1px solid var(--ct-color-border);}
.ct-storefront .ct-account-table thead th,
.ct-storefront .ct-account-table td {white-space:nowrap;}
@media (max-width:767px) {
  .ct-storefront .ct-account-table {display:block;min-width:0;}
  .ct-storefront .ct-account-table caption {display:block;}
  .ct-storefront .ct-account-table thead {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  .ct-storefront .ct-account-table :is(tbody,tfoot) {display:block;}
  .ct-storefront .ct-account-table tbody tr {display:block;padding-block:var(--ct-space-3);border-bottom:1px solid var(--ct-color-border);}
  .ct-storefront .ct-account-table tbody th {display:block;border:0;padding:var(--ct-space-2) var(--ct-space-3);}
  .ct-storefront .ct-account-table tbody td {display:flex;justify-content:space-between;gap:var(--ct-space-3);border:0;padding:var(--ct-space-2) var(--ct-space-3);white-space:normal;overflow-wrap:anywhere;}
  .ct-storefront .ct-account-table tbody td::before {content:attr(data-label);color:var(--ct-color-muted);}
  .ct-storefront .ct-account-table tfoot tr {display:flex;justify-content:space-between;gap:var(--ct-space-3);border-bottom:1px solid var(--ct-color-border);}
  .ct-storefront .ct-account-table tfoot :is(th,td) {display:block;border:0;white-space:normal;overflow-wrap:anywhere;}
  .ct-storefront .ct-account-table tfoot td {text-align:right;}
}
.ct-storefront .ct-account-table caption {text-align:left;color:var(--ct-color-muted);padding-block:var(--ct-space-3);}
.ct-storefront .ct-account-table tfoot {background:var(--ct-color-surface);}
.ct-storefront .ct-account-pin {display:grid;gap:var(--ct-space-4);max-width:480px;}
.ct-storefront .ct-account-success {padding:var(--ct-space-3);color:var(--ct-color-success);border:1px solid currentColor;border-radius:var(--ct-radius-sm);}
.ct-storefront .ct-account-prewrap {white-space:pre-wrap;}
.ct-storefront .ct-account-profile {display:grid;gap:var(--ct-space-4);}
.ct-storefront .ct-account-profile .wa-field {margin-block:var(--ct-space-3);min-width:0;}
.ct-storefront .ct-account-profile .wa-name {font-weight:600;margin-bottom:var(--ct-space-2);}

/* Address fields: stack each field vertically, label above control */
.ct-storefront .ct-account-profile .wa-field-address .wa-value > p {display:grid;gap:var(--ct-space-4);margin:0;}
.ct-storefront .ct-account-profile .wa-field-address .field {display:flex;flex-direction:column;gap:var(--ct-space-1);min-width:0;}
.ct-storefront .ct-account-profile .wa-field-address .field > span:first-child {font-weight:600;font-size:var(--ct-font-size-sm);color:var(--ct-color-text);}

/* Text controls, select, textarea: reasonable max width, full on mobile */
.ct-storefront .ct-account-profile :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),select,textarea) {box-sizing:border-box;max-width:min(36rem,100%);min-height:44px;font:inherit;width:100%;padding:10px 12px;border:1px solid var(--ct-color-border);border-radius:var(--ct-control-radius);background:var(--ct-color-bg);color:var(--ct-color-text);}

.ct-storefront .ct-account-profile input:disabled {opacity:.6;}
.ct-storefront .ct-account-profile input[type="file"] {max-width:100%;}
.ct-storefront .ct-account-profile .wa-field-photo .wa-value > img + img {display:none;}
.ct-storefront .ct-account-profile .errormsg {color:var(--ct-color-danger);}
.ct-storefront .ct-account-profile .error {border-color:var(--ct-color-danger);}
.ct-storefront .ct-account-table-scroll:focus-visible,
.ct-storefront .ct-account-profile :focus-visible {outline:2px solid var(--ct-color-primary);outline-offset:3px;}

/* Shared presentation for native authentication forms; core behavior is preserved. */
.ct-storefront .ct-auth {box-sizing:border-box;width:100%;max-width:32rem;margin-inline:auto;padding:clamp(16px,3vw,28px);border:1px solid var(--ct-color-border);border-radius:var(--ct-radius-md);}
.ct-storefront .ct-auth h1 {margin:0 0 var(--ct-space-6);font-size:var(--ct-font-size-xl);line-height:1.2;}
.ct-storefront .ct-auth .wa-field {margin-bottom:var(--ct-space-4);min-width:0;}
.ct-storefront .ct-auth .wa-name {margin-bottom:var(--ct-space-2);color:var(--ct-color-muted);font-size:var(--ct-font-size-sm);}
.ct-storefront .ct-auth input:is([type="text"],[type="email"],[type="password"],[type="tel"]) {box-sizing:border-box;display:block;width:100%;max-width:100%;min-height:44px;padding:10px 12px;font:inherit;border:1px solid var(--ct-color-border);border-radius:var(--ct-control-radius);background:var(--ct-color-bg);color:var(--ct-color-text);}
.ct-storefront .ct-auth input:is(.wa-error,.error) {border-color:var(--ct-color-danger);}
.ct-storefront .ct-auth :is(.wa-error-msg,.wa-error-text,.errormsg) {color:var(--ct-color-danger);}
.ct-storefront .ct-auth :is(input[type="submit"],button) {width:100%;min-height:44px;max-width:100%;padding:10px 24px;border:1px solid var(--ct-color-primary);border-radius:var(--ct-control-radius);background:var(--ct-color-primary);color:var(--ct-color-on-primary);font:inherit;font-weight:var(--ct-font-weight-semibold);cursor:pointer;}
.ct-storefront .ct-auth :is(input[type="submit"],button):hover {background:var(--ct-color-primary-hover);border-color:var(--ct-color-primary-hover);}
.ct-storefront .ct-auth :is(input[type="submit"],button):disabled {opacity:.6;cursor:default;}
.ct-storefront .ct-auth a {color:var(--ct-color-primary);overflow-wrap:anywhere;}
.ct-storefront .ct-auth .wa-value a {display:inline-flex;align-items:center;min-height:44px;}
.ct-storefront .ct-auth :is(input,button,a):focus-visible {outline:2px solid var(--ct-color-primary);outline-offset:3px;}
.ct-storefront .ct-auth .wa-field .wa-forgotpassword-button {display:block;margin-top:var(--ct-space-4);}

.ct-storefront .ct-auth-back {display:inline-flex;align-items:center;min-height:44px;margin-top:20px;}
