/* DecorEdge variation swatches */
.de-swatch-native{display:none!important}

/* Woo's variations table -> clean stacked layout */
.de-atc .variations,.de-atc .variations tbody,.de-atc .variations tr,.de-atc .variations th,.de-atc .variations td{display:block;width:100%;border:none!important;padding:0;margin:0;text-align:left;background:none}
.de-atc .variations tr{margin-bottom:20px}
.de-atc .variations th.label label,.de-atc .variations label{display:block;margin:0 0 8px;font-size:13.5px;font-weight:700;color:#5C3620}

.de-swatches{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;margin-top:2px}
.de-swatches .de-swatch{cursor:pointer;background:#fff;border:1.5px solid #ece2d8;border-radius:10px;padding:12px 18px;font-family:var(--e-global-typography-primary-font-family),Sans-serif;line-height:1.2;transition:.15s;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px;box-shadow:none}
.de-swatches .de-swatch:hover{border-color:#E17A3A}
.de-swatches .de-swatch.selected{border-color:#E17A3A;background:#fff4ec}

/* Text (Size) buttons */
.de-swatches .de-swatch--btn b{display:block;font-size:13.5px;font-weight:700;color:#5C3620}
.de-swatches .de-swatch--btn small{display:block;margin-top:2px;font-size:11px;font-weight:600;color:#7c6a5d}
.de-swatches .de-swatch--btn.selected b{color:#C9622A}

/* Colour squares */
.de-swatches .de-swatch--color{padding:0;width:42px;height:42px;min-width:0;border-radius:10px;border:2px solid #ece2d8;overflow:hidden;position:relative}
.de-swatches .de-swatch--color > span{display:block!important;width:100%!important;height:100%!important;border-radius:8px;background-clip:padding-box}
.de-swatches .de-swatch--color.selected{border-color:#5C3620;box-shadow:0 0 0 2px #fff,0 0 0 4px #E17A3A}
.de-swatch-name{display:none;font-style:normal}

/* Non-renderable colour (e.g. "Multicolor") -> rainbow + written name */
.de-swatches .de-swatch--multi{width:auto!important;height:auto!important;min-width:64px;padding:9px 12px;overflow:visible;gap:6px}
.de-swatches .de-swatch--multi .de-rainbow{display:block!important;width:26px!important;height:26px!important;border-radius:6px;background:conic-gradient(#ff3b30,#ff9500,#ffcc00,#34c759,#00c7ff,#5b6cff,#c04cff,#ff3b30)}
.de-swatches .de-swatch--multi .de-swatch-name{display:block;font-size:11px;font-weight:700;color:#5C3620}

/* Unavailable combos */
.de-swatches .de-swatch.disabled{opacity:.35;cursor:not-allowed;position:relative}
.de-swatches .de-swatch.disabled::after{content:"";position:absolute;left:8%;right:8%;top:50%;height:2px;background:#c0392b;transform:rotate(-12deg)}

.de-atc .reset_variations{display:inline-block;margin-top:4px;font-size:12px;color:#7c6a5d}
.de-atc .woocommerce-variation-price{margin:10px 0}

/* Quantity stepper (− 1 +) */
.de-atc .quantity{display:inline-flex!important;align-items:center;border:1.5px solid #ece2d8;border-radius:10px;background:#fff;overflow:hidden;margin-right:10px}
.de-atc .quantity input.qty{border:0;background:transparent;width:48px;text-align:center;font-weight:700;padding:12px 2px;-moz-appearance:textfield;box-shadow:none;outline:none}
.de-atc .quantity input.qty::-webkit-outer-spin-button,.de-atc .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.de-atc .quantity .de-qty-btn{border:0;outline:none;box-shadow:none;background:#fff;cursor:pointer;width:40px;height:44px;padding:0;font-size:19px;line-height:1;color:#5C3620;font-family:var(--e-global-typography-primary-font-family),Sans-serif;border-radius:0;-webkit-appearance:none;appearance:none}
.de-atc .quantity .de-qty-btn:hover{background:#fff4ec;color:#C9622A}

.de-atc .single_add_to_cart_button{background:#E17A3A;color:#fff;border:none;border-radius:10px;padding:14px 24px;font-weight:700;cursor:pointer;transition:.18s}
.de-atc .single_add_to_cart_button:hover{background:#C9622A}
.de-atc .single_add_to_cart_button.disabled{opacity:.5;cursor:not-allowed}

/* Buy Now (direct checkout) */
.de-atc .de-buy-now{display:block;flex:1 0 100%;width:100%;margin-top:10px;background:#5C3620;color:#fff;border:0;border-radius:10px;padding:14px 24px;font-weight:700;font-size:15px;cursor:pointer;text-align:center;transition:.18s;font-family:var(--e-global-typography-primary-font-family),Sans-serif}
.de-atc .de-buy-now:hover{background:#4a2b19}
.de-atc .de-buy-now:disabled,.de-atc .de-buy-now.disabled{opacity:.5;cursor:not-allowed}

/* Keep the action buttons stacked: qty + Add to Cart on one row, the rest below */
.de-atc .de-buy-now,.de-atc .decoredge-wa-btn{flex:1 0 100%!important;width:100%!important}
.de-atc .woocommerce-variation-add-to-cart,.de-atc form.cart:not(.variations_form){flex-wrap:wrap}

/* Inherit theme font on the whole add-to-cart form (buttons/inputs/selects/tables reset it otherwise) */
.de-atc,.de-atc *,.de-swatches,.de-swatches *,.de-atc button,.de-atc input,.de-atc select,.de-atc textarea{font-family:var(--e-global-typography-primary-font-family),Sans-serif}

.de-atc,.de-swatches{font-family:var(--e-global-typography-primary-font-family),Sans-serif}
