.tg-pack-options{border:1px solid #dce6d7;border-radius:12px;padding:16px;margin:12px 0 20px;min-width:0;flex-basis:100%;width:100%}.tg-pack-options legend{font-size:15px;font-weight:600;padding:0 8px}.tg-pack-options label{display:flex;align-items:center;flex-wrap:wrap;gap:10px;border:1px solid #e2e7df;border-radius:8px;padding:12px;margin:8px 0;cursor:pointer}.tg-pack-options label:has(input:checked){background:#edf6e6;border-color:#529357}.tg-pack-options input[type=radio]{margin:0}.tg-pack-options label small{display:block;flex-basis:100%;color:#367346}.tg-pack-options del{opacity:.55;margin-right:6px}.tg-quantity-label{font-size:12px;margin:8px 0 0!important}.tg-pack-dialog{border:0;border-radius:16px;padding:26px;max-width:520px;width:calc(100% - 32px);max-height:90vh;overflow:auto;box-shadow:0 20px 90px #0004}.tg-pack-dialog::backdrop{background:#0006}.tg-pack-dialog form>input{width:90px;margin-right:12px}.tg-dialog-close{float:right;background:transparent!important;color:#555!important;padding:4px 8px!important}.tg-cart-boxes{width:80px!important}.tg-cart-quantity small{display:block;font-size:11px}.wd-brands .wd-brand-item{min-height:94px;display:flex;align-items:center;justify-content:center}.wd-brands .wd-brand-item img{width:180px!important;height:72px!important;max-width:100%!important;object-fit:contain;object-position:center}.single-product form.cart:has(.tg-pack-options){flex-wrap:wrap}
.tg-pack-options,.tg-pack-options *,.tg-pack-dialog,.tg-pack-dialog *{box-sizing:border-box}.tg-pack-dialog button[type=submit]{background:#2e6449;color:#fff;border:0;border-radius:8px;padding:12px 22px;cursor:pointer;font-size:14px}.tg-pack-dialog form>input{border:1px solid #d5dfce;border-radius:8px;padding:10px;font-size:16px}.tg-pack-dialog h3{font-size:22px;margin:0 0 14px;overflow-wrap:anywhere}.tg-pack-dialog .tg-dialog-close{border:0;border-radius:6px;font-size:12px}
/* Product-card trigger: keep Woodmart's card behaviour, isolate its icon animation. */
a.tg-cart-button,
.wd-product .wd-add-btn > a.tg-cart-button {
  box-sizing: border-box;
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px !important;
  height: auto !important;
  padding: 10px 12px !important;
  border-radius: 6px !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: none !important;
  text-decoration: none;
  background-color: var(--btn-accented-bgcolor, #2e6449);
  color: var(--btn-accented-color, #fff);
}
a.tg-cart-button::before,
a.tg-cart-button::after {
  content: none !important;
  display: none !important;
}
a.tg-cart-button > .tg-pack-label {
  display: block !important;
  min-width: 0;
  min-height: 0 !important;
  height: auto;
  padding: 0;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: none !important;
  opacity: 1 !important;
  transition: none !important;
}
a.tg-cart-button > .tg-pack-cart-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  transform: none;
}
a.tg-cart-button:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.wd-product .wd-add-btn:has(> a.tg-cart-button) { padding: 6px; box-sizing: border-box; opacity: 1; }
.wd-product .wd-add-btn:has(> a.tg-cart-button) > .quantity { display: none !important; }

/* Shared actions occupy their own row; product pixels remain unobstructed. */
.wd-product .wd-add-btn:has(> a.tg-cart-button),
.wd-product .wd-add-btn.tg-card-actions{position:static!important;inset:auto!important;display:flex!important;align-items:center;justify-content:center;transform:none!important;opacity:1!important;visibility:visible!important;width:100%!important;height:auto!important;margin:8px 0 12px!important;padding:0!important;background:transparent!important;box-shadow:none!important}
.wd-product .wd-add-btn:has(> a.tg-cart-button)>.quantity{display:none!important}
.wd-product .wd-add-btn>a.tg-cart-button,a.tg-cart-button{min-height:44px!important;padding:8px 10px!important;font-size:13px!important;font-weight:500!important;line-height:1.3!important;border-radius:7px!important;box-shadow:none!important;flex:1 1 auto!important}
.wd-product .wd-add-btn>a.tg-cart-button>.tg-pack-label{font-size:inherit!important;font-weight:inherit!important;line-height:1.3!important}
.wd-product .wd-add-btn>a.tg-cart-button>.tg-pack-cart-icon{width:17px;height:17px;flex-basis:17px}
.tg-dialog-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}
.tg-pack-dialog .tg-dialog-heading h3{flex:1;min-width:0;margin:0;font-size:19px;line-height:1.4}
.tg-pack-dialog .tg-dialog-close{float:none!important;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;margin:0!important;padding:8px 12px!important;border:1px solid #f4b7b7!important;background:#fff0f0!important;color:#b91c1c!important;font-size:14px!important;font-weight:600;line-height:1.3!important;cursor:pointer;white-space:nowrap}
.tg-pack-dialog[open]{animation:tg-dialog-enter .16s ease-out;transition:opacity .15s ease,transform .15s ease}
.tg-pack-dialog::backdrop{transition:background .15s ease}
.tg-pack-dialog.tg-closing{opacity:0;transform:translateY(8px)}
.tg-pack-dialog.tg-closing::backdrop{background:transparent}
@keyframes tg-dialog-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.tg-pack-dialog{padding:18px;width:calc(100% - 24px)}.tg-pack-options{padding:10px}.tg-pack-options label{padding:10px;gap:7px}.wd-product .wd-add-btn>a.tg-cart-button{font-size:12px!important;gap:6px!important;padding:8px!important}.tg-pack-dialog .tg-dialog-heading h3{font-size:17px}}
@media(prefers-reduced-motion:reduce){.tg-pack-dialog[open]{animation:none;transition:none}.tg-pack-dialog::backdrop{transition:none}}
.woocommerce-mini-cart-item.tg-case-line .quantity{display:none!important}
.tg-case-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:10px 0;max-width:100%;font-size:13px;line-height:1.4}
/* Woodmart's .cart-item-link.wd-fill covers the row at z-index:1. Keep only
   the carton controls above that link; product image/title remain clickable. */
.woocommerce-mini-cart-item.tg-case-line .tg-case-controls{position:relative;z-index:2;pointer-events:auto}
.woocommerce-mini-cart-item.tg-managed-line .tg-case-controls{position:relative;z-index:2;pointer-events:auto}
.woocommerce-mini-cart-item.tg-managed-line div.quantity{display:none!important}
.tg-delivery-badge{display:flex;align-items:center;justify-content:center;gap:7px;margin:8px 0;color:#286047;font-size:11px;font-weight:700;line-height:1.4;letter-spacing:.25px;max-width:100%;white-space:normal}
.tg-delivery-icon{display:inline-flex;align-items:center;justify-content:center;border:1px solid #b8d3bc;background:#f0f7ed;border-radius:50%;width:30px;height:30px;flex:0 0 30px;font-size:21px}
.summary .tg-delivery-badge{justify-content:flex-start;font-size:12px}
.tg-delivery-notice,.tg-stock-help,.tg-delivery-warning{padding:12px 14px;margin:12px 0;background:#f1f7ed;border:1px solid #d6e3cc;border-radius:8px;font-size:13px;line-height:1.6;clear:both}
.tg-delivery-warning{background:#fff2ea;border-color:#edc4ac;color:#85321e}
.tg-stock-help{background:#fff9ec;border-color:#eadfc3;font-size:12px}
.tg-stock-help a,.tg-delivery-notice a,.tg-case-message a,.tg-stock-warning a{color:#8b291a!important;text-decoration:underline!important;font-weight:700;white-space:nowrap}
.tg-stock-warning{padding:10px;border:1px solid #e5b88c;border-radius:7px;background:#fff6eb;color:#723b14;font-size:13px;line-height:1.5}
@media(max-width:480px){.tg-delivery-badge{font-size:10px;gap:5px}.tg-delivery-icon{width:25px;height:25px;flex-basis:25px;font-size:18px}}
.tg-case-stepper{display:inline-flex;align-items:stretch;border:1px solid #dedede;border-radius:7px;overflow:hidden;background:#fff;max-width:100%}
.tg-case-controls .tg-case-stepper button{display:flex!important;align-items:center;justify-content:center;min-width:36px!important;width:36px!important;min-height:40px!important;height:40px!important;padding:0!important;border:0!important;border-radius:0!important;background:#f6f6f6!important;color:#333!important;box-shadow:none!important;font-size:18px!important;line-height:1!important;cursor:pointer}
.tg-case-controls .tg-case-count{box-sizing:border-box!important;width:48px!important;min-width:40px!important;max-width:56px!important;height:40px!important;padding:3px!important;margin:0!important;border:0!important;border-inline:1px solid #dedede!important;border-radius:0!important;background:#fff!important;color:#222!important;text-align:center!important;font-size:16px!important;appearance:textfield;-moz-appearance:textfield}
.tg-case-count::-webkit-inner-spin-button,.tg-case-count::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tg-case-unit{font-size:13px;font-weight:500}.tg-case-message{flex-basis:100%;font-size:12px;color:#a62424}.tg-case-message:empty{display:none}
.tg-case-line-price{display:block;clear:both;margin:6px 0 0;font-size:14px}.tg-case-line-price small{font-size:11px}
.tg-case-controls button:disabled,.tg-case-controls input:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){.tg-case-controls .tg-case-stepper button{min-width:40px!important;width:40px!important;min-height:44px!important;height:44px!important}.tg-case-controls .tg-case-count{height:44px!important}}
