/* Shared commercial sheet; WooCommerce owns form, variation and cart state. */
.terminal.mater-product-dialog{width:min(860px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;overflow-y:auto;overscroll-behavior:contain}
.mater-product-dialog .terminal-body{padding:0 26px 24px}
.mater-product-dialog .window-bar{position:sticky;top:0;z-index:3;background:#282e25;padding:12px 0;min-height:48px}
.mater-product-dialog .close-button{width:40px;height:40px;font-size:25px}
.mater-product-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:30px;align-items:start;padding-top:20px}
.mater-packshot{margin:0;position:sticky;top:76px;min-width:0}
.mater-packshot a{display:block;background:#eeeee7;border-radius:2px;padding:18px}
.mater-product-dialog .mater-packshot img{display:block;width:100%;height:360px;max-height:48dvh;object-fit:contain;margin:0}
.mater-packshot figcaption{font:10px/1.6 var(--mono);color:#bfc5b5;margin-top:10px}
.mater-image-status{position:absolute;top:80px;left:20px;right:20px;text-align:center;font:11px/1.7 var(--mono);color:#50564b;pointer-events:none}.mater-image-status[hidden]{display:none}
.mater-product-copy{min-width:0}.mater-product-dialog .product-intro{padding-top:0}
.mater-product-dialog .product-intro h2{font:400 34px/1.1 var(--serif);margin:8px 0 12px}
.mater-product-dialog .eyebrow{font-size:10px;letter-spacing:.04em}.mater-product-dialog .mater-axis{font:11px/1.6 var(--mono);color:#e6e9dd;margin:0 0 12px}
.mater-product-dialog .product-description,.mater-product-dialog .product-description p{font-size:13px;line-height:1.7}
.mater-product-dialog .mater-format{font-size:11px;margin:18px 0 8px}.mater-product-dialog .mater-single-price{font-size:22px}.mater-availability{font-size:11px;margin:8px 0 14px}
.mater-product-dialog .mater-native-form{margin:18px 0 22px}
.mater-product-dialog table.variations,.mater-product-dialog table.variations tbody,.mater-product-dialog table.variations tr,.mater-product-dialog table.variations th,.mater-product-dialog table.variations td{display:block;width:100%;text-align:left;padding:0;border:0}
.mater-product-dialog .variations label{display:block;font-size:11px;margin-bottom:8px}
.mater-product-dialog .woocommerce-variation-description p{font-size:12px;line-height:1.65;margin:10px 0}
.mater-product-dialog .woocommerce-variation-price{font-size:22px;margin:10px 0}.mater-product-dialog .woocommerce-variation-availability{font-size:11px;margin:10px 0 14px}
.mater-product-dialog .cart .quantity{flex:0 0 65px;margin:0}.mater-product-dialog .quantity input{width:65px;min-height:46px;text-align:center;padding:0 4px}.mater-product-dialog .single_add_to_cart_button{margin:0}
.mater-product-dialog .mater-info{border-color:#ffffff26;font-size:12px}.mater-product-dialog .mater-info summary{font-size:11px}.mater-product-dialog .mater-info p{font-size:12px;line-height:1.75}
.mater-product-dialog .inline-link{font-size:10px}
body:has(.mater-product-dialog[open]){overflow:hidden}
@media(max-width:600px){
 .terminal.mater-product-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 .mater-product-dialog .terminal-body{padding:0 18px 20px}.mater-product-layout{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:12px}
 .mater-packshot{position:static}.mater-packshot a{padding:12px}.mater-product-dialog .mater-packshot img{height:210px;max-height:30dvh}
 .mater-packshot figcaption{font-size:9px;margin-top:6px}.mater-product-dialog .product-intro h2{font-size:30px}
 .mater-product-dialog .product-description p{font-size:12px}.mater-product-dialog .mater-native-form{margin:16px 0}
}

.mater-botanical-pending{display:flex;align-items:center;justify-content:center;height:100%;font:14px/1.8 var(--mono);color:var(--muted);text-align:center}
.mater-product-dialog .woocommerce form select{background:#f5f5f1;color:#20211e;border-color:#c9cac1;min-height:46px;font-size:16px;color-scheme:light}
.mater-product-dialog .mater-native-form>.mater-illustrative{display:none}
.herbarium [data-open]:focus:not(:focus-visible),.herbarium [data-open].pointer-activated:focus{outline:none;box-shadow:none}
.herbarium [data-open]{-webkit-tap-highlight-color:transparent}
@media(prefers-reduced-motion:reduce){.mater-product-dialog[open],.mater-product-dialog[open] .terminal-body{animation:none}}

.mater-sheet-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}
.mater-sheet-navigation{display:flex;align-items:center;gap:4px}.mater-sheet-navigation[hidden]{display:none}
.mater-sheet-navigation button{width:40px;height:44px;padding:0;font:24px/1 Arial,sans-serif}
.mater-sheet-navigation button:hover{background:#ffffff12}.mater-sheet-count{font:10px/1.4 var(--mono);min-width:34px;text-align:center;white-space:nowrap}
.mater-product-dialog .window-bar>span{min-width:0;font-size:10px;overflow-wrap:anywhere}
.mater-cart-feedback{font:12px/1.7 var(--mono);padding:12px 0;border-top:1px solid #ffffff26;margin-bottom:12px}
.mater-cart-feedback[hidden]{display:none}.mater-cart-feedback p{margin:0 0 8px;color:inherit}
.mater-cart-feedback a,.mater-cart-feedback button{display:inline-flex;min-height:44px;align-items:center;margin-right:18px;text-decoration:underline;text-underline-offset:4px;font:inherit;padding:0}
.mater-product-dialog form[aria-busy="true"] .single_add_to_cart_button{opacity:.6;cursor:wait}
@media(max-width:400px){.mater-sheet-controls{gap:6px}.mater-sheet-navigation button{width:34px}.mater-product-dialog .window-bar{gap:8px}}

/* Information spans the sheet; packshots retain their entire source image. */
.mater-product-information{grid-column:1 / -1;min-width:0}
.mater-product-information .product-details{margin-top:0}
.mater-product-dialog .mater-packshot{position:static}
.mater-product-dialog .mater-packshot a{background:transparent;padding:0;overflow:visible}
.mater-product-dialog .mater-packshot img{object-fit:contain;object-position:center;width:100%;height:390px;max-height:50dvh}
.mater-product-dialog .product-intro h2:focus{outline:none}
.mater-sheet-navigation button:focus:not(:focus-visible){outline:none;box-shadow:none}
@media(max-width:600px){.mater-product-dialog .mater-packshot img{height:250px;max-height:34dvh}.mater-product-information{grid-column:auto}}

/* A single format selector can change directly between variants. Keep WooCommerce's
   reset element in the DOM for its native logic; retain the control for multi-attribute products. */
.mater-product-dialog.mater-single-attribute .reset_variations{display:none!important}
