/* Native controls remain usable if an option is unfamiliar or the enhancer cannot run. */
body.single-product .product form.variations_form .variations td.value select { display: block !important; position: static; opacity: 1; pointer-events: auto; clip-path: none; width: 100%; max-width: 100%; min-height: 44px; }
body.single-product .product form.variations_form .bt-swatches,
body.single-product .product form.variations_form .bt-swatches__chosen,
body.single-product .product form.variations_form.btpo-form .variations .btpo-row td.value select { display: none !important; }

body.single-product .product form.btpo-form {
  --btpo-ink: #172e41;
  --btpo-border: #b6c7d0;
  --btpo-accent: #1d5e83;
  min-width: 0;
}
body.single-product .product form.btpo-form .variations {
  display: block; width: 100%; margin: 0 0 14px; background: transparent; border: 0; border-collapse: collapse;
}
.btpo-form .variations tbody, .btpo-form .variations tr, .btpo-form .variations td { display: block; width: 100%; }
body.single-product .product form.btpo-form .variations tr { margin: 0 0 15px; }
body.single-product .product form.btpo-form .variations .label,
body.single-product .product form.btpo-form .variations .value {
  width: 100%; padding: 0; border: 0; background: transparent; text-align: left;
}
body.single-product .product form.btpo-form .variations .label {
  display: flex; align-items: center; flex-wrap: wrap; column-gap: 9px; min-height: 32px; margin: 0 0 4px; line-height: 1.3;
}
body.single-product .product form.btpo-form .variations .label label {
  margin: 0; color: var(--btpo-ink); font: inherit; font-size: 15px; font-weight: 720; letter-spacing: 0; text-transform: none;
}
.btpo-form .btpo-current { color: #435b69; font-size: 14px; font-weight: 450; letter-spacing: 0; text-transform: none; }
.btpo-form .btpo-choices { display: flex; flex-wrap: wrap; gap: 5px; }
.btpo-form button.btpo-choice {
  display: inline-flex; align-items: center; justify-content: center; position: relative; box-sizing: border-box;
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--btpo-border); border-radius: 5px;
  background: #fff; color: var(--btpo-ink); font: inherit; font-weight: 650; font-size: 14px; line-height: 1; cursor: pointer;
}
.btpo-form button.btpo-choice:enabled:hover, .btpo-form button.btpo-choice:focus-visible { border-color: var(--btpo-accent); }
.btpo-form button.btpo-choice[aria-pressed="true"] { border-color: var(--btpo-ink); background: var(--btpo-ink); color: #fff; }
.btpo-form button.btpo-choice:disabled { opacity: .43; cursor: not-allowed; text-decoration: line-through; }
.btpo-form .btpo-color button.btpo-choice:has(.btpo-dot) { border-radius: 50%; padding: 3px; border-color: transparent; background: transparent; }
.btpo-form .btpo-color button.btpo-choice[aria-pressed="true"]:has(.btpo-dot) { border: 2px solid var(--btpo-ink); }
.btpo-form .btpo-color button.btpo-choice:enabled:hover:has(.btpo-dot) { border-color: var(--btpo-accent); }
.btpo-form .btpo-dot { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22,45,59,.24); }
.btpo-form .btpo-color button:disabled .btpo-dot::after { content: ''; position: absolute; width: 34px; height: 2px; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-45deg); background: #3a5261; box-shadow: 0 1px #fff; }
.btpo-form :is(.btpo-choice,.btpo-step,[data-bt-open-sizeguide],.single_add_to_cart_button):focus-visible,
#bt-sticky-cart [data-bt-sticky-go]:focus-visible { outline: 3px solid #277cab; outline-offset: 2px; }
body.single-product .product form.btpo-form .variations .label .bt-sizeguide-btn {
  display: inline-flex; grid-template-columns: none; gap: 5px; align-items: center; justify-content: center;
  width: auto; min-height: 38px; margin: 0 0 0 auto; padding: 2px 0 2px 8px; border: 0; background: transparent;
}
.btpo-form .variations .bt-sizeguide-btn small { display: none; }
.btpo-form .variations .bt-sizeguide-btn span { color: var(--btpo-accent); font: inherit; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }
.btpo-form .variations .bt-sizeguide-btn svg { width: 16px; height: 16px; color: var(--btpo-accent); }
.btpo-form .variations .reset_variations { display: inline-block; font-size: 13px; line-height: 1.5; padding: 5px 0; color: var(--btpo-accent); text-underline-offset: 3px; }
body.single-product .product form.btpo-form .variations .label .reset_variations { width: auto; margin: 0 0 0 auto; }
body.single-product .product form.btpo-form .woocommerce-variation-add-to-cart-disabled { opacity: 1; }
body.single-product .product form.btpo-form .woocommerce-variation-add-to-cart,
body.single-product .product form.cart.btpo-form:not(.variations_form) {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
}
.btpo-form .woocommerce-variation-add-to-cart > [data-bt-open-sizeguide],
.btpo-form:not(.variations_form) > [data-bt-open-sizeguide] { flex-basis: 100%; }
body.single-product .product form.btpo-form .btpo-quantity {
  display: flex; flex: 0 0 auto; align-items: stretch; justify-content: center; height: 48px; margin: 0; padding: 0;
  border: 1px solid var(--btpo-border); border-radius: 5px; overflow: hidden; box-sizing: border-box; float: none;
}
.btpo-form .btpo-step {
  flex: 0 0 35px; min-height: 44px; padding: 0; border: 0; background: #fff; color: var(--btpo-ink);
  font: inherit; font-size: 20px; font-weight: 600; cursor: pointer;
}
.btpo-form .btpo-step:focus-visible { outline-offset: -3px; }
.btpo-form .btpo-step:disabled { color: #75848d; cursor: default; }
.btpo-form .btpo-no-step .btpo-step { display: none; }
body.single-product .product form.btpo-form .quantity input.qty {
  box-sizing: border-box; width: 36px; min-width: 0; height: 46px; margin: 0; padding: 0; border: 0;
  text-align: center; background: #fff; color: var(--btpo-ink); font-size: 16px; appearance: textfield; -moz-appearance: textfield;
}
.btpo-form input.qty::-webkit-inner-spin-button, .btpo-form input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.single-product .product form.btpo-form .single_add_to_cart_button {
  flex: 1 1 126px; width: auto; margin: 0; padding: 10px 12px; min-height: 48px;
  border: 1px solid var(--btpo-ink); border-radius: 5px; background: var(--btpo-ink); color: #fff;
  white-space: normal; font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: none; letter-spacing: 0;
}
body.single-product .product form.btpo-form .single_add_to_cart_button.disabled { background: #dce5ea; color: #415665; border-color: #bac9d2; opacity: 1; }
body.single-product .product form.btpo-form .single_add_to_cart_button:not(.disabled):hover { background: #225271; }

.btpo-form .btpo-preview { display: none; }
@media (max-width: 860px) {
  .btpo-form .btpo-row-color .label { row-gap: 0; }
  .btpo-form button.btpo-preview:not([hidden]) {
    display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 2px 3px; border: 0;
    background: transparent; color: var(--btpo-accent); font: inherit; font-size: 13px; font-weight: 650;
    line-height: 1.2; text-transform: none; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px;
  }
  .btpo-form .btpo-preview:focus-visible { outline: 3px solid #277cab; outline-offset: 1px; }
  #bt-sticky-cart { padding: 8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  #bt-sticky-cart[aria-hidden="true"] { visibility: hidden; pointer-events: none; }
  #bt-sticky-cart .bt-btn { min-height: 44px; padding: 9px 13px; border-radius: 5px; letter-spacing: 0; text-transform: none; line-height: 1.2; }
  body.single-product.btpo-sticky-visible { padding-bottom: max(68px,var(--btpo-sticky-height,68px)); }
}
