/* Adapt only the native WooCommerce surfaces; leave payment provider controls functional. */
.dm154-native{padding-block:48px;min-height:45vh}.dm154-native h1{font-size:clamp(28px,4vw,48px);font-weight:500;line-height:1.15}.dm154-native a{color:inherit}.dm154-native input:not([type=radio]):not([type=checkbox]),.dm154-native select,.dm154-native textarea{border:1px solid #dedbd5;border-radius:4px;padding:12px;background:#fff;max-width:100%;font:inherit}.dm154-native .button,.dm154-native button.button{background:#171717!important;color:#fff!important;border-radius:0;padding:14px 22px;font-weight:500}.dm154-native table{border-collapse:collapse;width:100%}.dm154-native th,.dm154-native td{padding:14px;border-bottom:1px solid #dedbd5}.dm154-native .woocommerce-notices-wrapper{margin-bottom:24px}.dm154-native div.product div.images img{object-fit:contain;background:#f3f1ed}.dm154-native div.product .price{color:#171717!important;font-size:24px}.dm154-native div.product .summary{padding:20px}.dm154-native .woocommerce-MyAccount-navigation li{padding:10px;border-bottom:1px solid #dedbd5}.dm154-feedback{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#171717;color:#fff;padding:15px 24px;z-index:99999;max-width:90vw}.dm154-feedback:empty{display:none}.dm154 .quick[aria-busy=true]{opacity:.4;pointer-events:none}.dm154 .product-card .heart{cursor:pointer}.dm154-native .woocommerce{width:100%}@media(max-width:600px){.dm154-native{padding-block:24px}.dm154-native div.product .summary{padding:0}.dm154-native th,.dm154-native td{padding:8px}}
.dm154 .dm154-single .product-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px}.dm154 .dm154-single .summary,.dm154 .dm154-single div.images{width:100%!important;float:none!important;margin:0}.dm154 .dm154-single .detail-copy{padding:0}.dm154 .dm154-single .woocommerce-product-gallery img{aspect-ratio:1;object-fit:contain}.dm154 .dm154-single .woocommerce-tabs{margin-top:60px}.dm154 .dm154-single .related{margin-top:50px}@media(max-width:760px){.dm154 .dm154-single .product-detail{grid-template-columns:1fr;gap:24px}}

/* V1.5.4 cart summary, retaining WooCommerce's totals and controls. */
.dm154.woocommerce-cart .dm154-native .cart_totals{background:var(--ink,#111);color:#fff;border-radius:36px;padding:32px}
.dm154.woocommerce-cart .dm154-native .cart_totals h2{margin:0 0 24px;font-size:clamp(1.8rem,3vw,2.2rem);font-weight:400;line-height:1.1}
.dm154.woocommerce-cart .dm154-native .cart_totals table{background:transparent;border:0;color:inherit}
.dm154.woocommerce-cart .dm154-native .cart_totals th,.dm154.woocommerce-cart .dm154-native .cart_totals td{background:transparent;border-color:#393939;padding:16px 0}
.dm154.woocommerce-cart .dm154-native .cart_totals .checkout-button{display:block;background:#fff!important;color:#111!important;border-radius:999px;text-align:center;margin:12px 0 0;line-height:1.4}
.dm154.woocommerce-cart .dm154-native .cart_totals .wc-proceed-to-checkout{padding:12px 0 0}
.dm154.woocommerce-cart .dm154-native .cart_totals select,.dm154.woocommerce-cart .dm154-native .cart_totals input{color:#111}
@media(max-width:600px){.dm154.woocommerce-cart .dm154-native .cart_totals{padding:24px;border-radius:28px}.dm154.woocommerce-cart .dm154-native .cart_totals tr:nth-child(2n) td{background:transparent}}

/* WooCommerce uses .summary for product details; the prototype uses it for cart totals. */
.dm154 .dm154-single .summary.entry-summary{background:transparent;color:var(--ink,#111);border-radius:0;padding:0}
.dm154 .dm154-single .summary.entry-summary .product_title{font-size:clamp(2rem,3vw,3rem);line-height:1.12;overflow-wrap:break-word;word-break:normal;margin:12px 0 24px}
.dm154 .dm154-single .summary.entry-summary .detail-actions .btn{background:transparent;color:var(--ink,#111);margin-top:0;border-color:var(--ink,#111)}
.dm154 .dm154-single .summary.entry-summary form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.dm154 .dm154-single .summary.entry-summary form.cart .quantity{margin:0}
.dm154 .dm154-single .summary.entry-summary form.cart .qty{color:#111;min-width:70px;border-radius:999px;min-height:48px}
.dm154 .dm154-single .summary.entry-summary .single_add_to_cart_button{border-radius:999px;min-height:48px}
.dm154 .dm154-single .summary.entry-summary form.variations_form{display:block}
.dm154 .dm154-single .dm154-gallery{min-width:0;border-radius:42px;overflow:hidden;background:linear-gradient(145deg,#f7f6f4,#e5e1da)}
.dm154 .dm154-single .product_meta{font-size:.85rem;color:var(--muted,#666);margin:24px 0}
.dm154.single-product main.page-section{padding-block:36px}
.dm154.single-product .dm154-native{padding-block:0}
/* Keep checkout extensions and validation in the native form. */
.dm154.woocommerce-checkout .dm154-native #customer_details{background:#fff;border-radius:32px;padding:28px;margin-bottom:32px}
.dm154.woocommerce-checkout .dm154-native #customer_details .col-1,
.dm154.woocommerce-checkout .dm154-native #customer_details .col-2{float:none;width:100%}
.dm154.woocommerce-checkout .dm154-native .woocommerce-billing-fields h3,
.dm154.woocommerce-checkout .dm154-native #order_review_heading{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:400;letter-spacing:-.04em}
.dm154.woocommerce-checkout .dm154-native .form-row label{font-size:.85rem;margin-bottom:7px}
.dm154.woocommerce-checkout .dm154-native .form-row input.input-text,
.dm154.woocommerce-checkout .dm154-native .form-row textarea{border-radius:14px;min-height:48px;color:#111}
.dm154.woocommerce-checkout .dm154-native #order_review{background:#fff;border-radius:32px;padding:28px}
.dm154.woocommerce-checkout .dm154-native #payment{background:#f4f1eb;border-radius:24px}
.dm154.woocommerce-checkout .dm154-native #place_order{border-radius:999px;width:100%;min-height:50px}
@media(max-width:600px){.dm154.woocommerce-checkout .dm154-native #customer_details,.dm154.woocommerce-checkout .dm154-native #order_review{padding:20px}.dm154.woocommerce-checkout .dm154-native .form-row-first,.dm154.woocommerce-checkout .dm154-native .form-row-last{float:none;width:100%}}

/* The native product wrapper contains our two-column detail grid.
   Do not apply the legacy two-column grid a second time to its parent. */
.dm154 .woocommerce div.product.dm154-single{display:block;width:100%;min-width:0}
.dm154 .dm154-single .product-detail{width:100%;align-items:start}
.dm154 .dm154-single .summary.entry-summary{min-width:0;max-width:none}
@media(max-width:900px){.dm154 .dm154-single .product-detail{grid-template-columns:1fr;gap:24px}}
/* Native product forms replace the prototype's mobile purchase controls. */
@media(max-width:700px){
 .dm154.single-product .dm154-single .summary.entry-summary>p.price{position:static;width:auto;height:auto;display:block;white-space:normal;margin:16px 0;color:#111!important}
 .dm154.single-product .dm154-single .summary.entry-summary>p.price:after{content:none}
 .dm154.single-product .sticky-benefit-bar{display:none}
 .dm154.single-product:has(.product-type-simple form.cart) .sticky-benefit-bar{display:block}
 .dm154.single-product .product-type-simple:has(form.cart) .summary.entry-summary>p.price{position:fixed;z-index:77;left:14px;bottom:0;width:112px;height:64px;display:flex;align-items:center;margin:0;color:#fff!important;font-size:1.08rem!important}
 .dm154.single-product .product-type-simple form.cart .single_add_to_cart_button{position:fixed;z-index:78;left:138px;right:12px;bottom:8px;width:calc(100% - 150px);min-height:48px;margin:0;background:#fff!important;color:#111!important;padding:12px!important}
 .dm154 .dm154-single .dm154-gallery{border-radius:24px}
}
/* Match the reference's form + order-summary composition without replacing Woo hooks. */
@media(min-width:901px){
 .dm154.woocommerce-cart .dm154-native>.woocommerce{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);gap:32px;align-items:start}
 .dm154.woocommerce-cart .dm154-native>.woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1;margin:0}
 .dm154.woocommerce-cart .cart-collaterals,.dm154.woocommerce-cart .cart-collaterals .cart_totals{width:100%;float:none}
 .dm154.woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);column-gap:32px;align-items:start}
 .dm154.woocommerce-checkout form.checkout #customer_details{grid-column:1;grid-row:1/4;width:100%}
 .dm154.woocommerce-checkout form.checkout #order_review_heading{grid-column:2;grid-row:1;margin:0;padding:28px 28px 12px;background:#111;color:#fff;border-radius:32px 32px 0 0}
 .dm154.woocommerce-checkout form.checkout #order_review{grid-column:2;grid-row:2;border-radius:0 0 32px 32px}
 .dm154.woocommerce-checkout form.checkout>.woocommerce-NoticeGroup{grid-column:1/-1}
}
.dm154.woocommerce-checkout .dm154-native #order_review{background:#111;color:#fff}
.dm154.woocommerce-checkout #order_review table.shop_table{background:transparent;color:inherit;border-radius:0!important}
.dm154.woocommerce-checkout #order_review table.shop_table th,.dm154.woocommerce-checkout #order_review table.shop_table td{border-color:#393939;padding:14px 4px!important}
.dm154.woocommerce-checkout .dm154-native #payment{background:#242424;color:#fff}
.dm154.woocommerce-checkout .dm154-native #payment .payment_box{background:#fff;color:#111}
.dm154.woocommerce-checkout .dm154-native #place_order{background:#fff!important;color:#111!important}
.dm154.woocommerce-checkout #order_review a{text-decoration:underline}
.dm154 .dm154-native .woocommerce-info{border-top-color:var(--brown,#786037);background:#f4f1eb;color:#111;border-radius:14px}
.dm154 .dm154-native .woocommerce-info:before{color:var(--brown,#786037)}
/* Keep the gallery and spacing at the original compact product scale. */
.dm154 .dm154-single .product-detail{gap:clamp(24px,3vw,44px)}
.dm154.single-product main.page-section{padding-top:24px;padding-bottom:32px}
.dm154 .dm154-single .dm154-gallery{border-radius:30px}
.dm154 .dm154-single .woocommerce-product-gallery__image img{height:clamp(330px,43vh,445px);width:100%;max-height:445px;object-fit:contain}
.dm154 .dm154-single .flex-control-thumbs img{padding:6px;border-radius:13px;max-height:72px}
@media(max-width:600px){.dm154.single-product main.page-section{padding-top:12px}.dm154 .dm154-single .woocommerce-product-gallery__image img{height:280px;max-height:280px}.dm154 .dm154-single .dm154-gallery{border-radius:24px}}

/* Editorial pages reuse the reference layout with native WordPress data. */
.dm154-article{max-width:860px}.dm154-article img{max-width:100%;height:auto}.dm154-article .info-card{overflow-wrap:anywhere}.dm154-tracking .woocommerce{width:100%}.dm154-tracking form.track_order{padding:0;border:0;margin:0}.dm154-tracking .form-row{float:none;width:100%;padding:0;margin:16px 0}.dm154-tracking label{display:block;margin-bottom:8px}.dm154-tracking input.input-text{width:100%;max-width:100%;padding:14px;border:1px solid #dedbd5;border-radius:12px;font:inherit}.dm154-tracking button.button{background:#111;color:white;padding:14px 26px;border-radius:999px}
.dm154.woocommerce-checkout .dm154-native .form-row select{width:100%;min-height:48px;border:1px solid #dedbd5;border-radius:14px;padding:12px;background:#fff;color:#111;font:inherit}
.dm154.woocommerce-checkout .select2-container .select2-selection--single{height:48px;border:1px solid #dedbd5;border-radius:14px}
.dm154.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:46px;padding-left:12px;color:#111}
.dm154.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow{height:46px}

/* Cart uses one checkout action; PayPal remains available at checkout. */
body.woocommerce-cart #ppc-button-ppcp-gateway,
body.single-product #ppc-button-ppcp-gateway { display: none !important; }

/* Product purchase bar follows the prototype's black/white purchase treatment. */
body.single-product.dm154{padding-bottom:88px}
.dm154.single-product .sticky-benefit-bar{display:none!important}
.dm154-purchase-bar{position:fixed;z-index:79;left:0;right:0;bottom:0;background:#111;color:#fff;padding:12px 20px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 28px #0002}
.dm154-purchase-inner{max-width:1240px;margin:auto;display:flex;align-items:center;gap:24px}
.dm154-purchase-name{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.85rem}
.dm154-purchase-price{font-size:1.2rem;font-weight:650;white-space:nowrap}
.dm154-purchase-price del{font-size:.75rem;color:#aaa;margin-right:5px}
.dm154-purchase-price ins{text-decoration:none}
.dm154-purchase-button{border:0;border-radius:999px;background:#fff;color:#111;padding:14px 32px;min-height:48px;font-weight:650;cursor:pointer}
.dm154-purchase-button:disabled{opacity:.6;cursor:default}
.dm154-purchase-button:focus-visible{outline:2px solid #bca577;outline-offset:3px}
@media(max-width:700px){
 .dm154-purchase-bar{padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
 .dm154-purchase-inner{gap:12px}
 .dm154-purchase-name{display:none}
 .dm154-purchase-price{font-size:1.08rem;white-space:normal;max-width:42%}
 .dm154-purchase-button{flex:1;padding:12px;font-size:.85rem}
 .dm154.single-product .product-type-simple:has(form.cart) .summary.entry-summary>p.price{position:static;width:auto;height:auto;display:block;margin:16px 0;color:#111!important;font-size:24px!important}
 .dm154.single-product .product-type-simple form.cart .single_add_to_cart_button{position:static;width:auto;background:#171717!important;color:#fff!important}
}
.dm154-purchase-quantity{display:flex;align-items:center;border:1px solid #777;border-radius:999px;overflow:hidden;flex-shrink:0;height:46px}
.dm154-purchase-quantity[hidden]{display:none}
.dm154-purchase-quantity button{border:0;background:transparent;color:#fff;width:38px;height:44px;font-size:22px;cursor:pointer}
.dm154-purchase-quantity button:disabled{opacity:.35;cursor:default}
.dm154-purchase-quantity input{appearance:textfield;-moz-appearance:textfield;width:38px;padding:0;border:0;background:transparent;color:#fff;text-align:center}
.dm154-purchase-quantity input::-webkit-inner-spin-button,.dm154-purchase-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(max-width:700px){
 .dm154-purchase-inner{flex-wrap:wrap;justify-content:space-between;gap:8px}
 .dm154-purchase-price{max-width:calc(100% - 130px)}
 .dm154-purchase-button{flex-basis:100%;width:100%}
 body.single-product.dm154{padding-bottom:130px}
}

/* Keep native WooCommerce input styles from masking the purchase quantity. */
body.dm154.single-product .dm154-purchase-bar .dm154-purchase-quantity input[type="number"]{
 background:#111!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 width:42px!important;min-width:0!important;max-width:42px!important;
 height:44px!important;min-height:0!important;margin:0!important;padding:0!important;
 text-align:center!important;font-size:16px!important;font-weight:600;line-height:44px;
 opacity:1;appearance:textfield;-moz-appearance:textfield;
}
body.dm154.single-product .dm154-purchase-bar .dm154-purchase-quantity input:focus-visible{outline:2px solid #bca577;outline-offset:-3px}

/* Only cart thumbnails, quantity controls, removal icon and coupon disclosure. */
.dm154.woocommerce-cart .dm154-cart-enhanced .product-thumbnail{display:table-cell!important;width:100px!important;min-width:80px}
.dm154.woocommerce-cart .dm154-cart-enhanced .product-thumbnail img{width:80px!important;max-width:none!important;height:96px!important;object-fit:contain}
.dm154.woocommerce-cart .dm154-cart-enhanced a.remove{display:flex;align-items:center;justify-content:center;background:transparent!important;color:#777!important;width:28px;height:32px}
.dm154.woocommerce-cart .dm154-cart-enhanced a.remove:hover{color:#a52b24!important}
.dm154-cart-quantity{display:flex;align-items:center;border:1px solid #dedbd5;border-radius:999px;height:42px;width:104px;overflow:hidden}
.dm154-cart-quantity button{width:32px;height:40px;padding:0;border:0;background:transparent;color:#111;cursor:pointer;flex-shrink:0}
.dm154.woocommerce-cart .dm154-cart-enhanced .dm154-cart-quantity input.qty{width:40px!important;min-width:0!important;max-width:40px;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;color:#111!important;-webkit-text-fill-color:#111;text-align:center;appearance:textfield;-moz-appearance:textfield;height:40px}
.dm154-cart-quantity input::-webkit-inner-spin-button,.dm154-cart-quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.dm154-cart-coupon{float:left;max-width:100%;text-align:left}
.dm154-cart-coupon summary{cursor:pointer;display:flex;align-items:center;gap:20px;font-size:.95rem;list-style:none;min-height:44px}
.dm154-cart-coupon summary::-webkit-details-marker{display:none}
.dm154-cart-coupon summary:after{content:'+';font-size:22px}
.dm154-cart-coupon[open] summary:after{content:'−'}
.dm154-cart-enhanced .coupon{float:none!important;display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.dm154.woocommerce-cart .dm154-cart-enhanced .coupon #coupon_code{width:200px!important;max-width:100%;min-height:44px;padding:10px 14px}
@media(max-width:768px){
 .dm154.woocommerce-cart .dm154-cart-enhanced .product-thumbnail{display:block!important;width:auto!important}
 .dm154-cart-enhanced .product-thumbnail:before{display:none!important}
 .dm154-cart-enhanced .product-thumbnail img{margin:auto}
 .dm154-cart-enhanced .product-quantity .quantity{display:inline-block}
 .dm154-cart-coupon{float:none;margin-bottom:12px}
}

/* Auto-update keeps the native submit control available to the script only. */
.dm154.woocommerce-cart .dm154-cart-enhanced button[name="update_cart"],
.dm154.woocommerce-cart .dm154-cart-enhanced input[name="update_cart"]{display:none!important}

/* Description follows the original layout, with the existing theme typography. */
.dm154 .dm154-single .dm154-product-intro{color:var(--muted,#666);font-size:1rem;line-height:1.7;margin:0 0 24px}
.dm154 .dm154-single .dm154-product-intro p{margin:0 0 12px}
.dm154 .dm154-single .dm154-product-description{clear:both;padding:0;margin-top:48px}
.dm154 .dm154-single .dm154-product-description .info-card{background:#fff;border-radius:32px;padding:36px}
.dm154 .dm154-single .dm154-product-description h2.eyebrow{font-family:var(--font);font-size:.75rem;font-weight:650;letter-spacing:.12em;text-transform:uppercase;color:var(--brown,#745c31);margin:0 0 18px}
.dm154-description-content{font-family:inherit;line-height:1.75;overflow-wrap:break-word}
.dm154-description-content>:first-child{margin-top:0}
.dm154-description-content>:last-child{margin-bottom:0}
.dm154-description-content img,.dm154-description-content video{max-width:100%;height:auto}
@media(max-width:700px){.dm154 .dm154-single .dm154-product-description{margin-top:28px}.dm154 .dm154-single .dm154-product-description .info-card{padding:24px;border-radius:24px}}

/* Direct checkout uses the same native product form and quantity. */
.dm154 .dm154-single form.cart .dm154-buy-now{border:1px solid var(--brown,#745c31);background:var(--brown,#745c31);color:#fff;border-radius:999px;padding:14px 24px;font:inherit;cursor:pointer;margin:8px 0 8px 10px}
.dm154-purchase-bar .dm154-buy-now-bar{background:var(--brown,#745c31);color:#fff;border:1px solid var(--brown,#745c31)}
.dm154-purchase-inner{flex-wrap:wrap}
@media(max-width:700px){.dm154-purchase-bar .dm154-purchase-button{font-size:12px;padding:12px 14px;flex:1;min-width:0}.dm154 .dm154-single form.cart .dm154-buy-now{margin-left:0}}
