/* Shared action shapes and directional icons across the storefront and account pages. */
:root{--action-radius:28px 0 24px 0;--control-radius:16px 0 16px 0}
html body :is(.button,.primary,.secondary,.danger,.upload-button,.receipt-download,.detail-overlay>span){border-radius:var(--action-radius);font-weight:600;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}
html body :is(.button,.primary,.secondary,.danger,.receipt-download){min-height:46px}
html body :is(.primary,.button.dark){background:#182f38;color:#fff}
html body :is(.primary,.button.dark):hover:not(:disabled){background:#294650}
html body :is(.secondary,.receipt-download){color:#182f38;border:1px solid #c5cdc9;background:transparent}
html body :is(.secondary,.receipt-download):hover:not(:disabled){background:#e9ede9}
html body :is(.text-link,.edit-button,.text-button,.remove-item){border-radius:var(--control-radius);font-weight:600;padding:10px 14px;min-height:44px;text-decoration:none;border:1px solid currentColor;display:inline-flex;align-items:center;gap:12px}
html body :is(.photo-actions button,.category-edit-row button,.password-field button){border-radius:12px 0 12px 0;font-weight:600}
html body :is(.close-button,.icon-button,.image-prev,.image-next,.gallery-nav button,.category-scroll,.photo-viewer button,.cart-remove){border-radius:var(--control-radius);display:inline-grid;place-items:center;flex-shrink:0}
html body .cart-remove{width:44px;height:44px;background:#fbefeb}
html body .category-scroll{background:#182f38;color:white}
html body :is(.image-prev,.image-next,.gallery-nav button){background:#182f38;color:#fff;border-color:#ffffff70}
html body .viewer-zoom [data-zoom=reset]{border-radius:var(--control-radius)}
.ui-arrow{display:inline-block;width:22px;height:22px;flex:0 0 22px;vertical-align:middle;background:currentColor;mask:url('/icons/ui/arrow.svg') center/contain no-repeat;-webkit-mask:url('/icons/ui/arrow.svg') center/contain no-repeat;pointer-events:none;transition:transform .2s}
.ui-arrow-left{rotate:180deg}.ui-arrow-up{rotate:-90deg}.ui-arrow-down{rotate:90deg}
:is(a,button):hover:not(:disabled) .ui-arrow,:is(a,button):focus-visible .ui-arrow{transform:translateX(3px)}
.category-scroll .ui-arrow{width:20px;height:20px;flex-basis:20px}
@media(min-width:761px){
 html body .category-strip .category-scroll{display:none}
 .storefront-header .header-categories>a{flex:1 1 0;grid-template-rows:56px minmax(44px,auto);padding-inline:5px;overflow-wrap:anywhere}
}
@media(max-width:760px){
 .storefront-header .category-strip{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;padding:6px 6px 4px}
 html body .category-strip .category-scroll{display:grid;width:44px;height:44px;grid-row:1;margin:0;padding:0}
 .category-strip .category-scroll.previous{grid-column:1}
 .category-strip .category-scroll.next{grid-column:3}
 .storefront-header .category-strip .header-categories{grid-column:2;grid-row:1;order:0;width:100%;min-width:0}
 .category-strip .category-scroll>span{display:grid;place-items:center;font-size:0;line-height:1;transform:none}
 .category-strip .category-scroll .ui-arrow{transform:none}
}
@media(min-width:761px){
 .storefront-header :is(.header-links a,#account-link){display:inline-flex;align-items:center;gap:8px}
 .storefront-header :is(.header-links a,#account-link,.selection-button)::before{content:"";display:block;flex:0 0 24px;width:24px;height:24px;background:currentColor;mask:var(--header-icon) center/contain no-repeat;-webkit-mask:var(--header-icon) center/contain no-repeat}
 .storefront-header .header-links a[href="/#workshop"]{--header-icon:url('/icons/ui/workshop.svg')}
 .storefront-header .header-links a[href="/#ordering"]{--header-icon:url('/icons/ui/ordering.svg')}
 .storefront-header #account-link{--header-icon:url('/icons/ui/account.svg')}
 .storefront-header .selection-button{--header-icon:url('/icons/ui/cart.svg')}
 .storefront-header .selection-button .bag-icon{display:none}
}
html body :is(.back-link,.receipt-back,footer>a:last-of-type){line-height:1.5}
html body :is(button,.button,.primary,.secondary,.danger):disabled{cursor:default;opacity:.55}
@media(prefers-reduced-motion:reduce){html body :is(button,a,.button,.primary,.secondary,.danger,.upload-button,.receipt-download,.detail-overlay>span,.ui-arrow){transition:none}.ui-arrow{transform:none!important}}
