.customer-account-nav{display:inline-flex;align-items:center;gap:7px}
.customer-nav-button{min-height:38px;padding:8px 12px;border:1px solid #ead8dc;border-radius:22px;background:#f7e8eb;color:#8f4e5d;font:600 11px 'DM Sans',sans-serif;white-space:nowrap;transition:transform .14s ease,background .14s ease}
.customer-nav-button.secondary{background:#fff;color:var(--rose)}
.customer-nav-button:hover{background:#f1dfe3}
.customer-nav-button:active,.customer-dialog .shop-button:active{transform:scale(.97)}
.customer-nav-button:focus-visible,.customer-dialog button:focus-visible,.customer-dialog a:focus-visible{outline:3px solid #b9829166;outline-offset:2px}
.customer-dialog-backdrop{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;overflow:auto;padding:max(18px,env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));background:#49393e77;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.customer-dialog{position:relative;width:min(100%,490px);max-height:min(92dvh,850px);overflow:auto;padding:32px;background:#fff;border:1px solid #f1e3e2;border-radius:22px;box-shadow:0 24px 70px #49393e35}
.customer-dialog h2{margin:8px 35px 7px 0;color:var(--text);font:500 27px/1.2 'Playfair Display',serif}
.customer-dialog>p{margin:0 0 18px;color:var(--muted);font-size:12px;line-height:1.6}
.customer-dialog-close{position:absolute;top:15px;right:15px;width:38px;height:38px;border:0;border-radius:50%;background:#f8eef0;color:var(--rose);font-size:24px;line-height:1}
.customer-auth-form{display:grid;gap:12px}
.customer-auth-form>label,.account-proof-form>label{display:grid;gap:6px;color:var(--text);font-size:11px;font-weight:600}
.customer-auth-form input,.account-proof-form input[type=file]{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:13px 'DM Sans',sans-serif}
.customer-auth-form input:focus,.account-proof-form input:focus{outline:0;border-color:var(--rose);box-shadow:0 0 0 3px #E8A7AB33}
.customer-auth-form>small{margin-top:-8px;color:var(--muted);font-size:10px}
.customer-auth-message{min-height:20px;color:var(--rose);font-size:11px;line-height:1.5}
.customer-auth-submit{width:100%;min-height:46px}
.customer-text-button{display:inline;border:0;padding:0;background:none;color:var(--rose);font:600 11px 'DM Sans',sans-serif;text-align:left;text-decoration:underline;text-underline-offset:2px}
.customer-switch{margin:17px 0 0!important;text-align:center}
.customer-account-dialog{width:min(100%,700px)}
.customer-orders-list{display:grid;gap:12px;max-height:min(54dvh,540px);overflow:auto;margin:15px 0}
.customer-order-card{padding:15px;border:1px solid var(--line);border-radius:14px;background:#fffdfc}
.customer-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.customer-order-head>div{display:grid;gap:5px;min-width:0}
.customer-order-head small{color:var(--muted);font-size:10px}
.customer-order-head>strong{font:500 18px 'Playfair Display',serif;white-space:nowrap}
.customer-order-card ul{display:grid;gap:7px;margin:12px 0;padding:0;list-style:none}
.customer-order-card li{display:flex;justify-content:space-between;gap:12px;padding-top:7px;border-top:1px solid var(--line);font-size:11px}
.customer-order-card li span{white-space:nowrap}
.customer-order-actions{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.customer-order-actions>.shop-button,.customer-order-actions>a{justify-self:start}
.shop-button.secondary{background:#f5e8eb;color:var(--rose)}
.account-proof-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}
.account-proof-form .shop-button{min-height:44px;padding:10px 14px}
.account-proof-form small{grid-column:1/-1;color:var(--muted);font-size:10px;line-height:1.5}
.account-proof-form button:disabled{opacity:.6}
.customer-orders-empty{padding:18px;border-radius:12px;background:#fbf6f3;color:var(--muted);font-size:12px;line-height:1.6}
.customer-account-close{width:100%;min-height:44px}
@media(max-width:560px){
  .shop-header{gap:8px}
  .shop-header nav{min-width:0;gap:6px}
  .shop-header .bag-nav{padding:8px 9px;font-size:10px}
  .customer-account-nav{gap:4px}
  .customer-nav-button{min-height:35px;padding:7px 8px;font-size:9px}
  .customer-dialog-backdrop{place-items:end center;padding:8px 8px max(8px,env(safe-area-inset-bottom,0px))}
  .customer-dialog{width:100%;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 16px);padding:25px 18px 20px;border-radius:19px}
  .customer-dialog h2{font-size:24px}
  .customer-account-dialog{max-height:calc(100dvh - env(safe-area-inset-top,0px) - 16px)}
  .customer-orders-list{max-height:52dvh}
  .customer-order-card{padding:12px}
  .account-proof-form{grid-template-columns:1fr}
  .account-proof-form .shop-button{width:100%}
}
@media(max-width:360px){.shop-brand{font-size:17px}.shop-header{padding-left:10px;padding-right:10px}.shop-header nav{gap:4px}.shop-header .bag-nav{padding:7px 7px}.customer-nav-button{padding:6px 6px;font-size:8px}}

/* Keep the shop header within narrow phone viewports while retaining account actions. */
@media(max-width:560px){
  .shop-header{height:auto;min-height:67px;padding-top:8px;padding-bottom:8px}
  .shop-brand{min-width:0;white-space:nowrap}
  .shop-header nav{flex:1 1 0;min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end;gap:4px}
  .customer-account-nav{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
}
