/* Approved commerce controls: override WooCommerce defaults without changing the design. */
:is(.cart-page,.checkout-page,.account-page) .woocommerce :is(a.button,button.button,input.button),
dialog.drawer :is(a.button,button.button){display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:13px 22px;background:var(--accent);color:var(--ink);border:2px solid var(--ink);border-radius:999px;box-shadow:3px 3px 0 var(--ink);font-family:inherit;font-size:15px;font-weight:700;line-height:1.35;text-decoration:none;white-space:normal;transition:background .2s,color .2s,transform .2s}
:is(.cart-page,.checkout-page,.account-page) .woocommerce :is(a.button,button.button,input.button):hover,
dialog.drawer :is(a.button,button.button):hover{background:var(--primary);color:var(--bg)}
:is(.cart-page,.checkout-page,.account-page) .woocommerce .button.button-cream{background:var(--bg);color:var(--ink)}
:is(.cart-page,.checkout-page,.account-page) .woocommerce :is(button.button,input.button):disabled{opacity:.55;cursor:not-allowed}
:is(.cart-page,.checkout-page,.account-page) .woocommerce .button svg,dialog.drawer .button svg{width:20px;height:20px;flex-shrink:0}
dialog.drawer .drawer-body .view-full-cart{min-height:48px;padding:12px 18px;border:2px solid var(--ink);border-radius:999px;box-shadow:3px 3px 0 var(--ink);text-decoration:none;font-size:14px;margin-block:20px 14px}
dialog.drawer .drawer-body .cart-checkout{width:100%;justify-content:space-between}
dialog.drawer .cart-item>div{min-width:0}
dialog.drawer .cart-item h3{overflow-wrap:anywhere;font-size:16px;line-height:1.35}
dialog.drawer .cart-summary strong{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px;font-size:clamp(22px,3vw,28px);line-height:1.25}
dialog.drawer .cart-summary .amount{white-space:nowrap}
.account-page .account-panel-container{min-width:0}
.account-page .woocommerce .woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:100%;margin-top:24px}
.account-page .woocommerce .woocommerce-Addresses::before,.account-page .woocommerce .woocommerce-Addresses::after{display:none}
.account-page .woocommerce .woocommerce-Addresses .woocommerce-Address{float:none;width:100%;min-width:0;margin:0;padding:24px;border:2px solid var(--ink);border-radius:20px;background:var(--bg);box-shadow:3px 3px 0 var(--ink)}
.account-page .woocommerce .woocommerce-Address-title{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.account-page .woocommerce .woocommerce-Address-title h3{float:none;font-size:20px;line-height:1.2;margin:0}
.account-page .woocommerce .woocommerce-Address-title .edit{float:none;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;border:1.5px solid var(--ink);border-radius:999px;background:var(--soft);color:var(--ink);font-size:14px;font-weight:700;text-decoration:none}
.account-page .woocommerce .woocommerce-Address address{font-size:15px;line-height:1.75;font-style:normal;overflow-wrap:anywhere}
.account-page .wishlist-card{display:flex;flex-direction:column;min-width:0;border:2px solid var(--ink);border-radius:22px;background:var(--bg);box-shadow:3px 3px 0 var(--ink);overflow:hidden}
.account-page .wishlist-card-media{display:block;position:relative;aspect-ratio:1;isolation:isolate;background:var(--soft);padding:20px}
.account-page .wishlist-card-media::before{content:'';position:absolute;inset:15%;border-radius:50%;background:var(--accent);z-index:-1}
.account-page .wishlist-card-media .product-art,.account-page .wishlist-card-media .catalog-photo,.account-page .wishlist-card-media img{display:block;width:100%;height:100%;object-fit:contain}
.account-page .wishlist-card-body{display:flex;flex-direction:column;gap:12px;padding:20px;border-top:1px solid var(--ink);flex:1}
.account-page .wishlist-brand{font-size:12px;font-weight:700;color:var(--primary)}
.account-page .wishlist-title{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.account-page .wishlist-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;font-size:22px;font-weight:700}
.account-page .wishlist-price del{font-size:14px;color:var(--muted);font-weight:400}
.account-page .wishlist-price ins{background:none;text-decoration:none}
.account-page .wishlist-actions{display:flex;align-items:center;gap:12px;margin-top:auto}
.account-page .wishlist-actions .button{flex:1}
.account-page .wishlist-remove-btn{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1.5px solid var(--ink);border-radius:50%;background:var(--bg)}
.account-page .wishlist-remove-btn svg{width:20px;height:20px}
.account-page .wishlist-price .screen-reader-text{display:none}
.account-page .woocommerce :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){background:var(--soft);color:var(--ink);border:1.5px solid var(--ink);border-radius:18px;font-size:15px;line-height:1.6;padding:20px 24px 20px 48px;margin-bottom:24px;box-shadow:3px 3px 0 var(--ink)}
.account-page .woocommerce .woocommerce-info::before{color:var(--primary);left:20px;top:22px}
.account-page .woocommerce .woocommerce-info .button{margin:0 0 8px 16px}
@media(max-width:600px){.account-page .woocommerce .woocommerce-Addresses{grid-template-columns:minmax(0,1fr);gap:20px}.account-page .woocommerce .woocommerce-Addresses .woocommerce-Address{padding:20px}.account-page .wishlist-grid{grid-template-columns:minmax(0,1fr)}.account-page .woocommerce .woocommerce-info .button{float:none;margin:12px 0 0;width:100%}.cart-empty-actions{flex-wrap:wrap}.account-page .wishlist-title{font-size:22px}dialog.drawer .drawer-body .cart-item{grid-template-columns:75px minmax(0,1fr);gap:12px}dialog.drawer .drawer-body .remove-item{grid-column:2;justify-self:start;padding:0;min-height:32px}dialog.drawer .cart-summary{gap:12px}}
.account-page .woocommerce .woocommerce-Address-title::before,.account-page .woocommerce .woocommerce-Address-title::after{display:none}
.checkout-page .woocommerce #place_order{background:var(--accent);color:var(--ink);border:2px solid var(--ink);border-radius:999px;box-shadow:3px 3px 0 var(--ink);font-family:inherit;font-size:15px;line-height:1.35;min-height:50px;padding:13px 22px}
.checkout-page .woocommerce #place_order:hover{background:var(--primary);color:var(--bg)}

/* Thank you / order confirmation layout */
.thankyou-content-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,400px);gap:36px;align-items:start}
.thankyou-metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:36px}
.thankyou-item-row h4,.thankyou-item-row a,.thankyou-item-row strong,.thankyou-layout address,.thankyou-layout p{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:900px){.thankyou-content-grid{grid-template-columns:minmax(0,1fr);gap:28px}.thankyou-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:540px){.thankyou-metrics-grid{grid-template-columns:minmax(0,1fr)}.thankyou-item-row{flex-direction:column;align-items:flex-start!important;gap:12px!important}}
