.customer-panel{width:min(650px,100%);min-width:0;padding:8px 2px}.customer-panel h2{margin:16px 0 20px}.customer-form{display:grid;gap:16px;margin-top:20px}.customer-form label{display:grid;gap:7px;font-size:14px;font-weight:600}.customer-form input,.customer-form textarea{width:100%;box-sizing:border-box;min-width:0;padding:12px 14px;border:1px solid #d7d9d7;border-radius:5px;background:#fff;color:#172622;font:inherit}.customer-form textarea{min-height:78px;resize:vertical}.customer-form button:disabled,.customer-actions button:disabled{opacity:.55;cursor:wait}.customer-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}.customer-actions button,#customerMore{padding:9px 12px;border:1px solid #d7d9d7;border-radius:4px;background:white;color:#173f36;cursor:pointer}.customer-profile{border-block:1px solid #e0e5e1;padding:15px 0;margin:20px 0}.customer-profile summary{cursor:pointer}.customer-order{padding:18px 0;border-bottom:1px solid #e0e5e1}.customer-order summary{display:flex;justify-content:space-between;gap:18px;cursor:pointer}.customer-order summary span:last-child{text-align:right}.customer-order small,.customer-checkout-items small{display:block;margin-top:7px;color:#64746b;line-height:1.5}.customer-order ul,.customer-checkout-items{list-style:none;padding:0;margin:18px 0}.customer-order li,.customer-checkout-items li{padding:10px 0;border-bottom:1px solid #f0f2ef;line-height:1.5}.customer-panel #customerMessage{color:#8b3e27;line-height:1.5}.customer-panel p{line-height:1.6}.customer-panel button:focus-visible,.customer-panel input:focus-visible,.customer-panel textarea:focus-visible{outline:2px solid #276857;outline-offset:3px}@media(max-width:600px){#customerAccount{min-width:40px;flex-shrink:0}.customer-panel{padding:6px 0}.customer-order summary{font-size:13px;gap:8px}}

/* Shared icon and caption rows keep the account action aligned with favorites and cart. */
header>.header-action{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;line-height:36px}
header>.header-action span{line-height:18px}
header>#customerAccount>svg{display:block;width:24px;height:36px;flex-shrink:0}
@media(max-width:650px){
 header{grid-template-columns:minmax(0,1fr) 60px 62px 48px;column-gap:12px}
 header>#customerAccount{grid-column:2;grid-row:1}
 header>#favorites{grid-column:3;grid-row:1}
 header>.header-action:last-child{grid-column:4;grid-row:1}
 header>.header-action{line-height:32px}
 header>.header-action span{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:14px}
 header>.header-action{align-self:start;min-height:60px}
 header>.logo{align-self:center}
 header>#customerAccount>svg{width:18px;height:32px}
}

/* Full-screen customer account */
#modal.customer-fullscreen{box-sizing:border-box;width:100%;max-width:none;height:100%;max-height:100%;margin:0;border:0;border-radius:0;padding:48px clamp(20px,5vw,80px);background:#fafbf8;overflow-y:auto}
#modal.customer-fullscreen .close{position:fixed;right:22px;top:14px;z-index:2;background:#fff;border:1px solid #d7d9d7;border-radius:50%;width:38px;height:38px}
.customer-fullscreen .customer-panel{width:100%;max-width:1280px;margin:auto;padding:0}
.customer-fullscreen .customer-panel h2{font-size:clamp(28px,4vw,42px)}
.customer-navigation{display:flex;gap:12px;flex-wrap:wrap;border-block:1px solid #dce3dc;padding:18px 0;margin:24px 0 32px}
.customer-navigation a{padding:10px 18px;border-radius:5px;background:var(--shop-tint,#eaf6f8);color:#217b8d;text-decoration:none;font-weight:600}
.customer-saved-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:22px 0 36px}
.customer-saved-card{min-width:0;border:1px solid #e0e5e1;border-radius:8px;background:white;overflow:hidden}
.customer-saved-card .product-image{width:100%;height:210px;object-fit:contain;background:white}
.customer-saved-info{padding:18px}.customer-saved-info h4{font-size:16px;line-height:1.5;margin:10px 0 16px}.customer-saved-info h4 a{color:#172622;text-decoration:none}.customer-saved-info small{color:#64746b}
.customer-saved-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.customer-saved-actions button{padding:10px 12px;cursor:pointer}.customer-saved-actions button:not(.dark){border:1px solid #d7d9d7;border-radius:4px;background:#fff;color:#173f36}
.customer-fullscreen .customer-profile .customer-form{max-width:650px}.customer-fullscreen #customerSaved,.customer-fullscreen #customerOrderSection,.customer-fullscreen #customerProfileSection{scroll-margin-top:28px}
.customer-fullscreen #customerSavedCount{font-size:16px;color:#64746b;font-weight:400}
@media(max-width:1050px){.customer-saved-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.customer-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#modal.customer-fullscreen{padding:60px 18px 28px}.customer-saved-grid{grid-template-columns:minmax(0,1fr)}.customer-navigation{gap:8px}.customer-navigation a{padding:10px;font-size:14px}}

body:has(#modal.customer-fullscreen[open]){overflow:hidden}
#favoritesCount[hidden]{display:none}

/* Equal dimensions keep both header counters circular regardless of header line-height. */
header>.header-action b{display:grid;place-items:center;box-sizing:border-box;width:26px;height:26px;min-width:26px;min-height:26px;aspect-ratio:1;padding:0;border-radius:50%;font-size:11px;line-height:1;font-variant-numeric:tabular-nums}
header>.header-action b[hidden]{display:none}

/* Customer account sidebar and separate content sections. */
.customer-account-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:40px;align-items:start;margin-top:28px}
.customer-sidebar{min-width:0;padding-right:24px;border-right:1px solid #dce3dc}
.customer-sidebar-login{display:block;padding:0 12px 18px;overflow-wrap:anywhere}
.customer-sidebar-menu{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0;border:0}
.customer-sidebar-menu button{padding:13px 16px;border:0;border-radius:5px;background:transparent;color:#35545b;font:inherit;text-align:left;cursor:pointer}
.customer-sidebar-menu button:hover{background:var(--shop-tint,#eaf6f8)}
.customer-sidebar-menu button[aria-current="page"]{background:var(--shop-tint,#eaf6f8);color:#217b8d;font-weight:600}
.customer-sidebar-menu #customerLogout{margin-top:20px;border-top:1px solid #dce3dc;border-radius:0;padding-top:22px}
.customer-account-content{min-width:0}.customer-account-content>section[hidden]{display:none}
.customer-account-content h3:first-child,.customer-account-content #customerProfileSection h3{margin-top:0}
.customer-account-content .customer-saved-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1050px){.customer-account-content .customer-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.customer-account-layout{grid-template-columns:150px minmax(0,1fr);gap:18px}.customer-sidebar{padding-right:12px}.customer-sidebar-menu button{padding:12px 8px;font-size:14px}.customer-account-content .customer-saved-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.customer-account-layout{grid-template-columns:minmax(0,1fr);gap:24px}.customer-sidebar{border-right:0;border-bottom:1px solid #dce3dc;padding:0 0 18px}.customer-sidebar-login{padding-left:8px}.customer-sidebar-menu #customerLogout{margin-top:6px;padding-top:14px}.customer-sidebar-menu button{font-size:16px}}

/* Keep profile fields compact within the full-screen account. */
.customer-fullscreen #customerProfilePane{width:100%;max-width:520px}
.customer-fullscreen #customerProfilePane .customer-form{gap:12px;margin-top:16px;max-width:520px}
.customer-fullscreen #customerProfilePane .customer-form label{gap:6px}
.customer-fullscreen #customerProfilePane .customer-form input{padding:9px 12px;min-height:42px}
.customer-fullscreen #customerProfilePane .customer-form button{justify-self:start;padding:10px 22px;min-height:42px}
.customer-fullscreen #customerProfilePane .customer-profile{margin:18px 0;padding:12px 0}

/* Draw a centered close mark independently of font glyph metrics. */
#modal.customer-fullscreen>.close{display:block;float:none;box-sizing:border-box;width:38px;height:38px;padding:0;min-width:0;min-height:0;font-size:0;line-height:1;color:var(--shop-accent,#31b5cf)}
#modal.customer-fullscreen>.close::before,#modal.customer-fullscreen>.close::after{content:"";position:absolute;left:50%;top:50%;width:15px;height:2px;background:currentColor;border-radius:1px;transform:translate(-50%,-50%) rotate(45deg)}
#modal.customer-fullscreen>.close::after{transform:translate(-50%,-50%) rotate(-45deg)}

/* Keep the cart count beside the icon, including on desktop. */
header>.header-action #cartCount{left:calc(50% + 14px);right:auto}
@media(max-width:650px){
 header>.header-action{font-size:18px;transform:translateX(8px)}
 header>.header-action b{top:-8px;right:-5px;width:18px;height:18px;min-width:18px;min-height:18px;font-size:9px}
 header>.header-action #cartCount{left:auto;right:-5px}
}

/* Equal icon rows and centered mobile captions. */
header>.header-action>.header-cart-icon{display:block;width:24px;height:36px;flex-shrink:0}
@media(max-width:650px){
 header>.header-action{display:grid;grid-template-rows:32px 28px;justify-items:center;align-items:start;line-height:32px}
 header>#customerAccount>svg,header>.header-action>.header-cart-icon{width:18px;height:32px}
 header>.header-action>span{grid-row:2;justify-self:center;width:max-content;max-width:none;white-space:nowrap;overflow-wrap:normal;text-align:center;font-size:10px;line-height:14px}
}

header>.header-action>.header-heart-icon{display:block;width:24px;height:36px;flex-shrink:0}
.product .favorite{display:grid;place-items:center;padding:0;font-size:0;line-height:1}
.product .favorite::before{content:"";display:block;width:22px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.84%204.61a5.5%205.5%200%200%200-7.78%200L12%205.67l-1.06-1.06a5.5%205.5%200%200%200-7.78%207.78l1.06%201.06L12%2021.23l7.78-7.78%201.06-1.06a5.5%205.5%200%200%200%200-7.78Z%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
.product .favorite.chosen::before{mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22black%22%3E%3Cpath%20d%3D%22M20.84%204.61a5.5%205.5%200%200%200-7.78%200L12%205.67l-1.06-1.06a5.5%205.5%200%200%200-7.78%207.78l1.06%201.06L12%2021.23l7.78-7.78%201.06-1.06a5.5%205.5%200%200%200%200-7.78Z%22%2F%3E%3C%2Fsvg%3E")}
@media(max-width:650px){header>.header-action>.header-heart-icon{width:18px;height:32px}.product .favorite::before{width:20px;height:20px}}

/* Align saved-product prices and actions across cards with different title lengths. */
.customer-saved-grid{align-items:stretch}
.customer-saved-card{display:flex;flex-direction:column}
.customer-saved-card>.product-image{flex:0 0 auto}
.customer-saved-info{display:flex;flex-direction:column;flex:1;min-width:0}
.customer-saved-info>strong{margin-top:auto}
.customer-saved-actions{align-items:stretch;margin-top:18px}
.customer-saved-actions>button{min-height:44px;line-height:1.4}


.customer-form .customer-remember{display:flex;align-items:center;gap:10px;flex-direction:row;font-weight:normal}.customer-form .customer-remember input{width:18px;height:18px;flex:0 0 auto}
