/* 1.1.2: badge, notice and centralized palette. */
.d2st-body .d2st-bestseller{background:#222;color:#ffd36a;border:1px solid #d4af37;border-radius:6px;box-shadow:0 2px 5px #0003;padding:4px 8px;gap:5px;line-height:1.25;font-size:13px;white-space:nowrap}
.d2st-body .d2st-bestseller svg{width:16px;height:16px;flex:none}.d2st-body .d2st-bestseller span{color:inherit;text-decoration:none}.d2st-body .d2st-related-grid .d2st-bestseller{font-size:10px;padding:3px 5px;gap:3px}.d2st-body .d2st-related-grid .d2st-bestseller svg{width:12px;height:12px}
/* Reserve width for long points counts but anchor at the icon's actual right edge. */
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text){grid-template-columns:minmax(0,auto);grid-template-rows:var(--d2st-badge-size,16px) auto auto;position:relative;overflow:visible}
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-badge-slot{display:flex;justify-content:flex-start;position:relative;width:max-content;min-width:var(--is,26px);padding:0;transform:none;justify-self:center;grid-column:1;grid-row:1;z-index:3;align-self:end;pointer-events:none}
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-badge-slot :is(.d2st-member-badge,.d2st-cart-count){position:relative!important;inset:auto!important;left:calc(var(--is,26px)/2 + 3px)!important;transform:translateY(5px);margin-left:0!important;box-shadow:0 0 0 1.5px #fff;flex:none}
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-icon-picture{justify-self:center}
/* Make badge anchor independent of badge text width: slot width is label/icon only; extra room on Rewards. */
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-badge-slot{width:var(--is,26px);min-width:var(--is,26px);height:var(--d2st-badge-size,16px)}
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-badge-slot :is(.d2st-member-badge,.d2st-cart-count){left:calc(var(--is,26px) - 5px)!important}

.d2st-responsive .d2st-header-icon.d2st-icon-icon{grid-template-rows:var(--d2st-badge-size,16px) auto}
/* Notices: keep a dedicated gutter even when the cart module supplies !important padding. */
body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){position:relative!important;box-sizing:border-box;padding:15px 20px 15px 52px!important;min-height:52px;overflow-wrap:anywhere;list-style-position:outside}
body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info)::before{position:absolute!important;left:20px!important;top:16px!important;right:auto!important;transform:none!important;display:block;width:20px;height:20px;line-height:20px;font-size:18px;text-align:center;margin:0!important}
body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) a:not(.button){color:var(--d2st112-text)!important;text-decoration:none!important}body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) a:not(.button):hover{color:var(--d2st112-primary)!important}
body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info) li{margin:0;list-style:none}
body.d2st-body a:not(#wpadminbar a):not(.button):not(.d2st-atc):not(.d2st-cta):not(.d2rv-write):not(.d2st111-mini-buttons a):not(.d2st-header-icon):not(.d2st-bestseller){color:var(--d2st112-text);text-decoration:none}body.d2st-body a:not(#wpadminbar a):not(.button):not(.d2st-atc):not(.d2st-cta):not(.d2rv-write):not(.d2st111-mini-buttons a):not(.d2st-header-icon):hover{color:var(--d2st112-primary)}
body.d2st-body :is(a.woocommerce-review-link,a.woocommerce-remove-coupon,a.restore-item,.product_meta a,.woocommerce-MyAccount-content a:not(.button),.woocommerce-cart-form a:not(.button)){color:var(--d2st112-text)!important;text-decoration:none!important}body.d2st-body :is(a.woocommerce-review-link,a.woocommerce-remove-coupon,a.restore-item,.product_meta a,.woocommerce-MyAccount-content a:not(.button),.woocommerce-cart-form a:not(.button)):hover{color:var(--d2st112-primary)!important}
body.d2st-body :is(input[type=checkbox],input[type=radio]){accent-color:var(--d2st112-primary)}body.d2st-body :is(input,textarea,select,button,a):focus-visible{outline-color:var(--d2st112-primary)}
body.d2st-body .d2st111-stars>span,body.d2st-body .d2rv-stars,body.d2st-body .d2rv-rate label.on,body.d2st-body .woocommerce .star-rating span,body.d2st-body .woocommerce .star-rating span:before,body.d2st-body .woocommerce p.stars:hover a:before,body.d2st-body .woocommerce p.stars.selected a.active:before,body.d2st-body .woocommerce p.stars.selected a:not(.active):before{color:var(--d2st112-stars)!important}
body.d2st-body.d2st112-simple-colors{background:var(--d2st112-surface);color:var(--d2st112-text)}.d2st112-simple-colors :is(.d2st-header-row,.d2st-footer,.d2st111-mini-content,.d2st111-mini-foot){background:var(--d2st112-surface)!important;color:var(--d2st112-text)}
.d2st112-simple-colors .d2st-atc[data-state=normal],.d2st112-simple-colors .single_add_to_cart_button,.d2st112-simple-colors .d2rv-write,.d2st112-simple-colors .d2st111-mini-buttons a:last-child,.d2st112-simple-colors .woocommerce a.checkout-button,.d2st112-simple-colors #place_order{background:var(--d2st112-button)!important;color:var(--d2st112-button-fg)!important;border-color:var(--d2st112-button)!important}
.d2st112-simple-colors .d2st-atc[data-state=added]{background:var(--d2st112-cart)!important;color:var(--d2st112-cart-fg)!important;border-color:var(--d2st112-cart)!important}.d2st112-simple-colors .d2st-atc[data-state=added] svg{color:var(--d2st112-cart-fg)!important}
.d2st112-simple-colors .d2st-atc[data-state=normal]:hover,.d2st112-simple-colors .single_add_to_cart_button:hover,.d2st112-simple-colors .d2rv-write:hover,.d2st112-simple-colors .d2st111-mini-buttons a:hover,.d2st112-simple-colors .woocommerce a.checkout-button:hover,.d2st112-simple-colors #place_order:hover{background:var(--d2st112-primary)!important;color:var(--d2st112-primary-fg)!important;border-color:var(--d2st112-primary)!important}
.d2st112-simple-colors .d2st-atc[data-state=normal]:hover svg{color:var(--d2st112-primary-fg)!important}.d2st112-simple-colors :is(.d2st111-mini-price,.d2st111-mini-saving,.d2st-price .woocommerce-Price-amount,.d2st-unified-price .d2st-current-price){color:var(--d2st112-price)}
@media(max-width:480px){body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){padding:12px 12px 12px 44px!important}body.d2st-body.d2st-body.d2st-body :is(.woocommerce-message,.woocommerce-error,.woocommerce-info)::before{left:13px!important;top:13px!important}}
.d2st112-simple-colors :is(.d2st111-mini-buttons a:first-child,.d2st111-mini-remove,.d2st-body a.remove){color:var(--d2st112-text)}
.d2st112-simple-colors .d2st111-mini-buttons a:first-child{border-color:var(--d2st112-button)!important;color:var(--d2st112-text)!important}.d2st112-simple-colors .d2st111-mini-buttons a:first-child:hover{color:var(--d2st112-primary-fg)!important}
.d2st112-simple-colors .woocommerce :is(.button,.woocommerce-MyAccount-downloads-file):not(.remove):not(.checkout-button):not(.single_add_to_cart_button){background:var(--d2st112-button)!important;color:var(--d2st112-button-fg)!important;border-color:var(--d2st112-button)!important}
.d2st112-simple-colors .woocommerce :is(.button,.woocommerce-MyAccount-downloads-file):not(.remove):not(.checkout-button):not(.single_add_to_cart_button):hover{background:var(--d2st112-primary)!important;color:var(--d2st112-primary-fg)!important;border-color:var(--d2st112-primary)!important}
/* The actual rendered icon shrinks on small displays. Match that width precisely. */
.d2st-responsive .d2st-header-icon{--d2st112-actual-icon:clamp(12px,3.5vw,var(--is,26px))}
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-badge-slot{width:var(--d2st112-actual-icon);min-width:var(--d2st112-actual-icon)}
.d2st-responsive .d2st-header-icon:not(.d2st-icon-text) .d2st-badge-slot :is(.d2st-member-badge,.d2st-cart-count){left:calc(var(--d2st112-actual-icon) - 5px)!important}

