/* One size per action family. Form/drawer actions fill their shared columns. */
:root{--duke-action-width:288px;--duke-action-height:48px}
body .button,body .hero__actions .button,body .listing-toolbar .button,body .discovery-secondary{
 width:var(--duke-action-width);max-width:100%;height:var(--duke-action-height);min-height:var(--duke-action-height);box-sizing:border-box;
 padding:9px 18px;font-size:15px;line-height:1.3;white-space:nowrap;justify-content:center;align-items:center;gap:16px;
}
body .button:has(.button__arrow){justify-content:space-between}
body .button .button__label,body .hero__actions .button .button__label{font-size:15px}
body .button .button__label-mask{min-width:0;flex:0 1 auto}
#search-dialog .search-actions .button,#search-dialog .search-actions .discovery-secondary{width:var(--duke-action-width);height:48px;min-height:48px;font-size:15px;justify-content:center}
#filter-dialog .filter-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#filter-dialog .filter-actions a,#filter-dialog .filter-actions .button{width:100%;height:48px;min-height:48px;font-size:15px;white-space:nowrap}
body .account-content .button,body .pdp-form .single_add_to_cart_button,body .duke-cart-cta,#wishlist-dialog .wishlist-footer .button,body .woocommerce-checkout #place_order{width:100%;height:48px;min-height:48px;font-size:15px}
body .outfit-v2-buy{width:100%}

/* Interior pages use the same floating sticky masthead as the homepage. */
body .site-header.is-scrolled,body.duke-interior .site-header.is-scrolled,body.duke-interior .site-header.is-scrolled .header-inner{background:transparent!important;color:#171717}
body .site-header.is-scrolled .brand,body .site-header.is-scrolled .desktop-nav,body .site-header.is-scrolled .header-tools,body .site-header.is-scrolled .mobile-menu-toggle{background:#fff!important;color:#171717!important}
body .site-header.is-scrolled .brand{width:60px;border-radius:999px}
body .site-header.is-scrolled .brand__isologo{filter:invert(1)!important;opacity:1;left:10px;transform:translateY(-50%) scale(1)}
body .site-header.is-scrolled .brand__wordmark{opacity:0}
body .site-header.is-scrolled .bag-count,body .site-header.is-scrolled .favorite-count{background:#171717;color:#fff}
body .site-header:has([data-menu][aria-expanded=true]),body .site-header:has(.mobile-menu-toggle[aria-expanded=true]),
body .site-header:has([data-menu][aria-expanded=true]) .header-inner,body .site-header:has(.mobile-menu-toggle[aria-expanded=true]) .header-inner{background:#fff!important;color:#171717!important}
body .site-header:has([aria-expanded=true]) .brand{width:60px;background:#fff!important;border-radius:999px}
body .site-header:has([aria-expanded=true]) .brand__wordmark{opacity:0}
body .site-header:has([aria-expanded=true]) .brand__isologo{opacity:1!important;filter:invert(1)!important;left:10px;transform:translateY(-50%) scale(1)}
body .site-header:has([aria-expanded=true]) :is(.desktop-nav,.header-tools,.mobile-menu-toggle){background:#fff!important;color:#171717!important}
body .site-header:has([aria-expanded=true]) :is(.bag-count,.favorite-count){background:#171717;color:#fff}

/* Favorites: bounded rows, vertical scrolling only, and a reversible confirmation. */
#wishlist-dialog .wishlist-content{overflow-x:hidden;overflow-y:auto;padding-right:0;min-width:0}
#wishlist-dialog .wishlist-row{grid-template-columns:72px minmax(0,1fr) 40px;gap:12px;padding:16px 0;min-width:0;width:100%;align-items:start}
#wishlist-dialog .wishlist-row>a{width:72px;height:96px;background:#f4f4f2;border-radius:6px;overflow:hidden}
#wishlist-dialog .wishlist-row img{width:72px;height:96px;object-fit:contain;mix-blend-mode:multiply}
#wishlist-dialog .wishlist-row--cutout img{mix-blend-mode:normal}
#wishlist-dialog .wishlist-row>div{min-width:0}
#wishlist-dialog .wishlist-row h3{font-size:15px;line-height:1.3;overflow-wrap:anywhere;padding-top:0}
#wishlist-dialog .wishlist-row p{margin-top:6px}
#wishlist-dialog .wishlist-row>.icon-button{width:40px;height:40px;min-height:40px;margin:-5px 0 0;justify-self:end}
#wishlist-dialog .wishlist-product-cta{width:144px;max-width:100%;height:40px;min-height:40px;box-sizing:border-box;justify-content:space-between;margin-top:10px;font-size:14px;padding:8px 12px;gap:8px;white-space:nowrap}
#wishlist-dialog .wishlist-notice{flex:none;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#wishlist-dialog .wishlist-notice button{display:inline;min-height:32px;padding:0;margin-left:8px;text-decoration:underline;text-underline-offset:4px;font-size:14px}
#wishlist-dialog .wishlist-notice[hidden]{display:none}
#wishlist-dialog .wishlist-footer{gap:8px;padding-top:16px;padding-bottom:24px}
#wishlist-dialog:has(agentation-toolbar) .wishlist-footer{padding-bottom:60px}
.duke-load-more.is-complete{display:none}
.listing-grid>.product-card[data-listing-arrival=pending]{opacity:0}

@media(max-width:767px){
 body .hero__actions{display:grid;grid-template-columns:minmax(0,1fr);width:min(var(--duke-action-width),100%);gap:10px}
 body .hero__actions .button{width:100%}
 #search-dialog .search-actions .button,#search-dialog .search-actions .discovery-secondary{width:100%}
 #wishlist-dialog .wishlist-row{grid-template-columns:64px minmax(0,1fr) 36px;gap:10px;padding:14px 0}
 #wishlist-dialog .wishlist-row>a,#wishlist-dialog .wishlist-row img{width:64px;height:86px}
 #wishlist-dialog .wishlist-row>.icon-button{width:36px;height:40px;min-height:40px}
 #wishlist-dialog .wishlist-row h3{font-size:14px}
 #wishlist-dialog .wishlist-product-cta{width:144px;font-size:14px}
}
@media(max-width:360px){#filter-dialog .filter-actions{grid-template-columns:minmax(0,1fr)}#filter-dialog .filter-actions a,#filter-dialog .filter-actions .button{width:100%}}

/* Keep the local feedback tool clear of actions on the narrowest preview. */
@media(max-width:360px){
 body:has(agentation-toolbar) .hero__content{bottom:calc(96px + max(0px,620px - 100svh))}
 body:has(agentation-toolbar) #mobile-menu{max-height:calc(100svh - 148px)!important;width:calc(100% - 24px);left:12px;right:12px}
 #search-dialog:has(agentation-toolbar){padding-bottom:88px}
}
