/* STP CX My Account + auth */
body.stp-cx-page{background:var(--stp-background)}
body.stp-cx-account .entry-title,body.stp-cx-account .page-title,body.stp-cx-account h1.wp-block-post-title{display:none}
.stp-cx.stp-cx-account{margin:0 auto;max-width:var(--stp-content-width);padding:28px 20px 64px}
.stp-cx .stp-cx-account__header{align-items:center;display:flex;gap:14px;margin-bottom:24px}
.stp-cx .stp-cx-avatar{align-items:center;background:var(--stp-primary);border-radius:999px;color:#fff;display:inline-flex;font-weight:700;height:48px;justify-content:center;width:48px}
.stp-cx .stp-cx-account__eyebrow{color:var(--stp-muted);font-size:.8em;font-weight:600;letter-spacing:.06em;margin:0;text-transform:uppercase}
.stp-cx .stp-cx-account__name{font-size:1.2em;font-weight:var(--stp-heading-weight);margin:0}
.stp-cx .stp-cx-account__layout{align-items:start;display:grid;gap:var(--stp-gap);grid-template-columns:240px minmax(0,1fr)}
.stp-cx .stp-cx-account__content{float:none;min-width:0;width:auto}

.stp-cx .stp-cx-nav{float:none;position:sticky;top:24px;width:auto}
.stp-cx .stp-cx-nav ul{background:var(--stp-surface);border:var(--stp-card-border) solid var(--stp-border);border-radius:var(--stp-radius-card);box-shadow:var(--stp-shadow);list-style:none;margin:0;padding:8px}
.stp-cx .stp-cx-nav li{border:0;margin:0;padding:0}
.stp-cx .stp-cx-nav a{align-items:center;border-radius:calc(var(--stp-radius-card) - 4px);color:var(--stp-muted);display:flex;font-weight:500;gap:10px;padding:10px 12px;text-decoration:none;transition:background .15s,color .15s}
.stp-cx .stp-cx-nav a:hover{background:color-mix(in srgb,var(--stp-primary) 6%,transparent);color:var(--stp-text)}
.stp-cx .stp-cx-nav li.is-active a{background:color-mix(in srgb,var(--stp-primary) 10%,transparent);color:var(--stp-primary);font-weight:600}
.stp-cx .stp-cx-nav .woocommerce-MyAccount-navigation-link--customer-logout{border-block-start:1px solid var(--stp-border);margin-top:6px;padding-top:6px}
.stp-cx .stp-cx-nav__mobile{display:none}

.stp-cx .stp-cx-tiles{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin-bottom:28px}
.stp-cx .stp-cx-tile{align-items:flex-start;display:flex;flex-direction:column;gap:6px}
.stp-cx h2.stp-cx-tile__label{color:var(--stp-muted);font-size:.78em;font-weight:600;letter-spacing:.06em;margin:0;text-transform:uppercase}
.stp-cx .stp-cx-tile__value{font-size:1.6em;font-weight:var(--stp-heading-weight);margin:0}
.stp-cx .stp-cx-tile__value--sm{font-size:1.1em}
.stp-cx .stp-cx-quick h2{color:var(--stp-muted);font-size:1em}
.stp-cx .stp-cx-quick__grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.stp-cx .stp-cx-quick__item{align-items:center;color:var(--stp-text);display:flex;font-weight:600;gap:10px;padding:16px;text-decoration:none;transition:border-color .15s}
.stp-cx .stp-cx-quick__item:hover{border-color:var(--stp-primary)}
.stp-cx .stp-cx-quick__item .stp-cx-icon{color:var(--stp-primary)}

.stp-cx .stp-cx-order-list,.stp-cx .stp-cx-download-list{display:flex;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}
.stp-cx .stp-cx-order{align-items:center;display:grid;gap:12px 20px;grid-template-columns:1fr auto auto auto}
.stp-cx .stp-cx-order p{margin:0}
.stp-cx .stp-cx-order__number,.stp-cx .stp-cx-order__total{font-weight:700}
.stp-cx .stp-cx-order__actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.stp-cx .stp-cx-pagination{display:flex;gap:10px;justify-content:space-between;margin-top:16px}

.stp-cx .stp-cx-download{align-items:center;display:grid;gap:16px;grid-template-columns:auto 1fr auto}
.stp-cx .stp-cx-download p{margin:0}
.stp-cx .stp-cx-download__icon{align-items:center;background:color-mix(in srgb,var(--stp-primary) 10%,transparent);border-radius:12px;color:var(--stp-primary);display:inline-flex;height:44px;justify-content:center;width:44px}
.stp-cx .stp-cx-download__name{font-weight:700}

.stp-cx .stp-cx-address-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin-top:16px}
.stp-cx .stp-cx-address header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}
.stp-cx .stp-cx-address h2{align-items:center;display:flex;font-size:1.05em;gap:8px;margin:0}
.stp-cx .stp-cx-address address{border:0;padding:0}

/* Native forms and unknown endpoints rendered inside the shell */
.stp-cx .stp-cx-account__content>form,.stp-cx .stp-cx-account__content .woocommerce-EditAccountForm,.stp-cx .stp-cx-account__content .woocommerce-address-fields{background:var(--stp-surface);border:var(--stp-card-border) solid var(--stp-border);border-radius:var(--stp-radius-card);box-shadow:var(--stp-shadow);padding:var(--stp-card-padding)}
.stp-cx .stp-cx-account__content .woocommerce-address-fields__field-wrapper{display:grid;gap:0 14px;grid-template-columns:1fr 1fr}
.stp-cx .stp-cx-account__content .woocommerce-address-fields__field-wrapper>.form-row{grid-column:1/-1}
.stp-cx .stp-cx-account__content .woocommerce-address-fields__field-wrapper>.form-row-first,.stp-cx .stp-cx-account__content .woocommerce-address-fields__field-wrapper>.form-row-last{grid-column:auto}
.stp-cx .stp-cx-account__content .woocommerce-EditAccountForm .form-row-first,.stp-cx .stp-cx-account__content .woocommerce-EditAccountForm .form-row-last{float:none;width:100%}
.stp-cx .stp-cx-account__content fieldset{border:1px solid var(--stp-border);border-radius:var(--stp-radius-field);margin:16px 0;padding:16px}
.stp-cx .stp-cx-account__content legend{font-weight:700;padding:0 6px}

/* Auth: login, register, lost/reset password */
.stp-cx.stp-cx-auth{margin:32px auto;max-width:980px;padding:0 16px}
.stp-cx.stp-cx-auth--simple{max-width:460px}
.stp-cx.stp-cx-auth--split{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}
.stp-cx .stp-cx-auth__aside{background:var(--stp-primary);border-radius:var(--stp-radius-container) 0 0 var(--stp-radius-container);color:#fff;display:flex;flex-direction:column;gap:16px;justify-content:center;padding:48px}
.stp-cx .stp-cx-auth__aside h2{color:#fff;font-size:1.7em}
.stp-cx .stp-cx-auth__aside img{height:auto;max-height:44px;width:auto}
.stp-cx .stp-cx-auth__brand{font-size:1.2em;font-weight:700}
.stp-cx .stp-cx-auth__aside ul{display:flex;flex-direction:column;gap:10px;list-style:none;margin:0;padding:0}
.stp-cx .stp-cx-auth__aside li{align-items:center;display:flex;gap:10px}
.stp-cx.stp-cx-auth--split .stp-cx-auth__card{border-radius:0 var(--stp-radius-container) var(--stp-radius-container) 0;padding:40px}
.stp-cx .stp-cx-auth__title{font-size:1.5em}
.stp-cx .stp-cx-auth__row{align-items:center;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin:4px 0 20px}
.stp-cx .stp-cx-auth form{background:transparent;border:0;margin:0;padding:0}
.stp-cx .stp-cx-auth .form-row-first,.stp-cx .stp-cx-auth .form-row-last{float:none;width:100%}
.stp-cx .stp-cx-tabs{background:var(--stp-background);border-radius:var(--stp-radius-button);display:grid;gap:4px;grid-template-columns:1fr 1fr;margin-bottom:24px;padding:4px}
.stp-cx .stp-cx-tabs button{background:transparent;border:0;border-radius:calc(var(--stp-radius-button) - 2px);color:var(--stp-muted);cursor:pointer;font:inherit;font-weight:600;padding:10px}
.stp-cx .stp-cx-tabs button[aria-selected=true]{background:var(--stp-surface);box-shadow:0 1px 3px rgba(15,23,42,.1);color:var(--stp-text)}

@media (max-width:860px){
	.stp-cx .stp-cx-account__layout{grid-template-columns:1fr}
	.stp-cx .stp-cx-nav{position:static}
	.stp-cx .stp-cx-nav ul{display:none}
	.stp-cx .stp-cx-nav__mobile{display:block}
	.stp-cx .stp-cx-order{grid-template-columns:1fr auto}
	.stp-cx .stp-cx-order__actions{grid-column:1/-1;justify-content:flex-start}
	.stp-cx.stp-cx-auth--split{grid-template-columns:1fr}
	.stp-cx .stp-cx-auth__aside{border-radius:var(--stp-radius-container) var(--stp-radius-container) 0 0;padding:28px}
	.stp-cx.stp-cx-auth--split .stp-cx-auth__card{border-radius:0 0 var(--stp-radius-container) var(--stp-radius-container);padding:24px}
}
@media (max-width:560px){
	.stp-cx.stp-cx-account{padding:16px 12px 48px}
	.stp-cx .stp-cx-download{grid-template-columns:auto 1fr}
	.stp-cx .stp-cx-download .stp-cx-btn{grid-column:1/-1}
	.stp-cx .stp-cx-account__content .woocommerce-address-fields__field-wrapper{grid-template-columns:1fr}
}
