.account-portal [hidden],.account-auth-shell [hidden]{display:none!important}

/* Neutral header control becomes an icon only after private no-store hydration. */
.header-account__icon{display:none;flex:0 0 auto}
.header-account.is-authenticated{width:52px;min-width:52px;height:52px;padding:0;border-radius:50%;display:inline-grid;place-items:center}
.header-account.is-authenticated .header-account__icon{display:block}

.account-auth-popover{position:fixed;z-index:10020;width:min(360px,calc(100vw - 32px));padding:22px;border:1px solid #dfe5df;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(13,29,25,.22)}
.account-auth-popover__label{margin:0 0 4px;color:#66736e;font-size:.82rem}
.account-auth-popover strong{display:block;margin-bottom:18px;color:#12221e;overflow-wrap:anywhere}
.account-auth-popover .button{margin-top:2px}.account-auth-popover>.account-link-button{margin-top:16px;color:#8b3127}

.account-auth-dialog{width:min(500px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));margin:auto;padding:0;border:0;border-radius:28px;background:#fff;color:#12221e;box-shadow:0 28px 90px rgba(8,24,20,.3);overflow:auto}
.account-auth-dialog::backdrop{background:rgba(12,27,23,.64);backdrop-filter:blur(5px)}
.account-auth-dialog__close{position:absolute;z-index:2;top:16px;right:16px;width:44px;height:44px;border:1px solid #d8dfda;border-radius:50%;background:#fff;color:#12221e;font-size:1.8rem;line-height:1;cursor:pointer}
.account-auth-stage{display:grid;gap:16px;padding:clamp(28px,6vw,44px)}
.account-auth-stage h2{margin:0;padding-right:38px;font-size:clamp(1.8rem,5vw,2.6rem);line-height:1.06}.account-auth-stage p{margin:0;color:#5e6b66}
.account-auth-stage label{display:grid;gap:8px;font-weight:800}.account-auth-stage input{width:100%;min-height:56px;padding:12px 15px;border:1px solid #cbd4cf;border-radius:14px;background:#fff;font:inherit;font-size:1.05rem}
.account-auth-stage input:focus{outline:3px solid rgba(184,225,55,.36);border-color:#779a0c}
.account-field-hint{margin-top:-10px!important;font-size:.8rem;line-height:1.4}
.account-auth-stage__links{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.account-auth-spinner{width:30px;height:30px;border:3px solid #dde5de;border-top-color:#8bb30d;border-radius:50%;animation:account-spin .8s linear infinite}
[data-account-shell-loading]{min-height:180px;place-content:center;place-items:center;text-align:center}
@keyframes account-spin{to{transform:rotate(360deg)}}
.account-link-button{min-height:44px;padding:4px 0;border:0;background:transparent;color:#24463e;text-decoration:underline;text-underline-offset:3px;font:inherit;font-weight:750;cursor:pointer}.account-link-button:disabled{opacity:.55;cursor:not-allowed;text-decoration:none}
.account-message{padding:14px 18px;border-radius:15px;background:#eef8d2;color:#20312c}.account-message.is-error{background:#fff0ed;color:#8c2f24}.account-auth-dialog>.account-message{margin:0 28px 28px}
.account-privacy-note{font-size:.84rem!important;line-height:1.45}.account-privacy-note a{color:inherit}

.account-portal{min-height:72vh;padding:clamp(30px,5vw,72px) 0 80px;background:linear-gradient(135deg,#f6f7f2 0%,#f3f7e8 52%,#eef7cd 100%)}
.account-portal__shell{max-width:1240px}
.account-portal__intro{margin-bottom:26px}.account-portal__intro h1{margin:5px 0 10px;font-size:clamp(2.25rem,5vw,4.25rem);line-height:.98;letter-spacing:-.045em}.account-portal__intro>p:last-child{max-width:650px;margin:0;color:#5e6b66;font-size:1.08rem}
.account-page-loading,.account-signed-out{min-height:230px;padding:clamp(24px,5vw,48px);border:1px solid #dfe5df;border-radius:28px;background:#fff;box-shadow:0 20px 60px rgba(17,34,31,.08)}
.account-page-loading{display:grid;place-content:center;place-items:center;gap:12px}.account-page-loading p{margin:0}
.account-signed-out{display:flex;align-items:center;justify-content:space-between;gap:30px}.account-signed-out h2{margin:4px 0 10px;font-size:clamp(1.8rem,4vw,2.8rem)}.account-signed-out p{max-width:600px;margin:0;color:#5e6b66}.account-signed-out>.button{flex:0 0 auto}

.account-dashboard{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start}
.account-dashboard__sidebar{position:sticky;top:24px;padding:18px;border:1px solid #dfe5df;border-radius:24px;background:#fff;box-shadow:0 16px 45px rgba(17,34,31,.07)}
.account-dashboard__identity{display:flex;align-items:center;gap:12px;padding:8px 6px 19px;border-bottom:1px solid #e8ece9}.account-dashboard__identity>div{min-width:0}.account-dashboard__identity strong,.account-dashboard__identity span{display:block;overflow:hidden;text-overflow:ellipsis}.account-dashboard__identity>div span{margin-top:3px;color:#68756f;font-size:.82rem;white-space:nowrap}
.account-avatar{display:grid!important;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:#b8e137;color:#13231f}.account-avatar svg{width:25px;height:25px}
.account-dashboard__nav{display:grid;gap:4px;padding:15px 0}.account-dashboard__nav a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px 12px;border-radius:12px;color:#20312c;text-decoration:none;font-weight:720}.account-dashboard__nav a:hover,.account-dashboard__nav a:focus-visible,.account-dashboard__nav a.is-active{background:#f0f6d8}.account-dashboard__nav a span{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:20px;background:#fff;font-size:.8rem}
.account-dashboard__logout{color:#8b3127}
.account-dashboard__content{display:grid;gap:20px;min-width:0}
.account-panel,.account-help{padding:clamp(22px,3vw,34px);border:1px solid #dfe5df;border-radius:24px;background:#fff;box-shadow:0 16px 45px rgba(17,34,31,.065);scroll-margin-top:30px}.account-panel h2,.account-help h2{margin:4px 0 12px;font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.08}.account-panel p{color:#5e6b66}.account-panel__head{display:flex;justify-content:space-between;gap:16px}.account-panel__note{margin:20px 0 0;padding-top:18px;border-top:1px solid #e6ebe7;font-size:.94rem}
.account-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);gap:26px;align-items:center;background:linear-gradient(135deg,#13231f,#24463e);color:#fff}.account-overview p{color:#dbe6e0}.account-overview .eyebrow{color:#b8e137}.account-overview__cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-overview__cards article{display:grid;gap:8px;min-height:150px;padding:18px;border-radius:18px;background:#fff;color:#172722}.account-overview__cards span{color:#66736e;font-size:.86rem}.account-overview__cards strong{font-size:1.25rem;line-height:1.15}.account-overview__cards a{align-self:end;color:#24463e;font-weight:800}
.account-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.account-data-grid>div{padding:18px;border-radius:17px;background:#f5f7f3}.account-data-grid span,.account-data-grid strong{display:block}.account-data-grid span{margin-bottom:6px;color:#68756f;font-size:.84rem}.account-data-grid strong{overflow-wrap:anywhere}
.account-order-list,.account-history{display:grid;gap:12px}.account-order{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;padding:18px;border:1px solid #e0e6e1;border-radius:18px}.account-order__head{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.account-order__head>strong{font-size:1.05rem}.account-order__dates{margin:0!important;font-size:.92rem}.account-order__amount{align-self:end}.account-status{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#edf3df;color:#3d571d;font-size:.78rem;font-weight:800}.account-status--return_expected{background:#fff0d2;color:#76510b}.account-status--request_received{background:#eaf1ff;color:#244b86}
.account-history__item{padding:18px;border:1px solid #e0e6e1;border-radius:18px}.account-history__head{display:flex;justify-content:space-between;gap:14px}.account-history__item p{margin:7px 0 0;color:#64716c}.account-empty{padding:22px;border-radius:18px;background:#f1f6df}.account-empty h3{margin:0 0 7px}.account-empty p{margin:0 0 16px}.account-order-list:not(:empty)+.account-empty,.account-history:not(:empty)+.account-empty{display:none}
.account-dashboard__two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.account-help{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#f1f6df}.account-help h2,.account-help p{margin:0}.account-help p{margin-top:7px;color:#5e6b66}.account-security-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.account-page-message{position:sticky;bottom:20px;margin-top:18px;z-index:4}
.account-loyalty-details{display:grid;gap:10px;margin-top:20px}.account-loyalty-details>div{display:flex;justify-content:space-between;gap:18px;padding:14px 16px;border-radius:14px;background:#f4f8e8}.account-loyalty-details span{color:#5e6b66}.account-loyalty-details strong{text-align:right;color:#26330f}
.account-active-offers{display:grid;gap:9px;margin:16px 0}.account-active-offer{display:grid;gap:4px;padding:13px 14px;border:1px solid #e1e8d1;border-radius:14px;background:#f8faef}.account-active-offer strong{color:#18221f}.account-active-offer span{color:#64706b;font-size:.9rem;line-height:1.35}.account-active-offer.is-eligible{border-color:#b9db4a;background:#f2fbd6}

@media(max-width:900px){.account-dashboard{grid-template-columns:1fr}.account-dashboard__sidebar{position:static}.account-dashboard__nav{display:flex;overflow-x:auto;scrollbar-width:none;margin:0 -8px;padding:14px 8px}.account-dashboard__nav::-webkit-scrollbar{display:none}.account-dashboard__nav a{flex:0 0 auto;white-space:nowrap}.account-dashboard__logout{margin-left:6px}.account-overview{grid-template-columns:1fr}}
@media(max-width:720px){.header-account.is-authenticated{width:48px;min-width:48px;height:48px}.account-auth-popover{position:fixed!important;left:12px!important;right:12px;bottom:12px;top:auto!important;width:auto;border-radius:24px;padding:22px}.account-auth-dialog{width:100%;max-width:none;max-height:calc(100dvh - 18px);margin:auto 0 0;border-radius:26px 26px 0 0}.account-auth-stage{padding:28px 20px 24px}.account-auth-dialog>.account-message{margin:0 20px 20px}.account-portal{padding:28px 0 64px}.account-portal__intro h1{font-size:clamp(2.15rem,12vw,3.4rem)}.account-signed-out{align-items:flex-start;flex-direction:column}.account-signed-out>.button{width:100%}.account-dashboard__sidebar{padding:14px}.account-overview__cards,.account-data-grid,.account-dashboard__two-columns{grid-template-columns:1fr}.account-overview__cards article{min-height:125px}.account-panel,.account-help{border-radius:20px}.account-order__head,.account-history__head{flex-direction:column}.account-status{align-self:flex-start}.account-help{align-items:stretch;flex-direction:column}.account-help .button{width:100%}.account-security-actions{align-items:stretch;flex-direction:column}.account-security-actions .button{width:100%}}
@media(max-width:360px){.account-auth-stage__links{align-items:flex-start;flex-direction:column}.account-dashboard__identity{align-items:flex-start}.account-panel{padding:20px 16px}.account-order,.account-history__item{padding:15px}.account-overview__cards strong{font-size:1.1rem}}
@media(prefers-reduced-motion:reduce){.account-auth-spinner{animation:none}.account-auth-dialog::backdrop{backdrop-filter:none}}
