/* Xemry Product Choice v3.9.28 — works on native WooCommerce AND XLP routes.
 * This intentionally has no dependency on the native-only xm-commerce-tail handle.
 * Only product forms are affected; real WooCommerce selects/IDs remain untouched.
 */
body.xm-product-responsive {--xm-seat-green:#e1f1e5;--xm-seat-cream:#fff9ef;
  --xm-seat-amber:#bc7b2e;--xm-seat-ink:#122d31;--xm-seat-selected:#071d28;
  --xm-seat-focus:#2495e0;--xm-seat-cart:#8d1436;--xm-seat-gold:#f2be78;}

/* Product form card and instruction label: apply to both inherited and XLP routes. */
body.xm-product-responsive form.variations_form.xm-choice-ready {
  width:100%!important; min-width:0!important; max-width:100%!important;
  box-sizing:border-box!important; padding:14px!important; margin:14px 0!important;
  border:1px solid #cfe4d5!important; border-radius:15px!important;
  background:var(--xm-seat-green)!important;
}
body.xm-product-responsive form.variations_form .xm-choice-guide {
  display:flex!important; flex-direction:column!important; gap:3px!important;
  width:100%!important; margin:0 0 16px!important;
  padding:14px 13px!important; box-sizing:border-box!important;
  background:#fff8e9!important; border:0!important;
  border-radius:9px!important; color:#905018!important; text-align:start!important;
}
body.xm-product-responsive form.variations_form .xm-choice-guide strong,
body.xm-product-responsive form.variations_form .xm-choice-guide span {
  display:inline!important; font:750 13px/1.55 system-ui,Arial,sans-serif!important;
  color:#8d4c14!important; letter-spacing:0!important;
}
body.xm-product-responsive form.variations_form .xm-choice-guide span[aria-hidden="true"] {font-size:17px!important;}
body.xm-product-responsive form.variations_form table.variations,
body.xm-product-responsive form.variations_form table.variations tbody,
body.xm-product-responsive form.variations_form table.variations tr,
body.xm-product-responsive form.variations_form table.variations th,
body.xm-product-responsive form.variations_form table.variations td {
  width:100%!important; max-width:100%!important; min-width:0!important;
  box-sizing:border-box!important; border:0!important; background:transparent!important;
}
body.xm-product-responsive form.variations_form table.variations,
body.xm-product-responsive form.variations_form table.variations tbody,
body.xm-product-responsive form.variations_form table.variations tr {display:block!important;}
body.xm-product-responsive form.variations_form table.variations th,
body.xm-product-responsive form.variations_form table.variations td {display:block!important; padding:0!important;}
body.xm-product-responsive form.variations_form table.variations tr {margin:0 0 17px!important;}
body.xm-product-responsive form.variations_form table.variations .label {
  display:flex!important; flex-wrap:wrap!important; align-items:center!important;
  gap:8px!important; padding:0 0 9px!important;
}
body.xm-product-responsive form.variations_form table.variations .label label,
body.xm-product-responsive form.variations_form table.variations .xm-seat-heading {
  color:#577b7c!important; font:800 12px/1.5 system-ui,Arial,sans-serif!important;
  letter-spacing:.05em!important; text-transform:uppercase!important;
}
/* Visually rename *only* seat/sofa rows; retain the actual <label> for screen readers. */
body.xm-product-responsive form.variations_form .xm-seat-row .label label.xm-source-label {
  position:absolute!important; height:1px!important; width:1px!important;
  margin:-1px!important; padding:0!important; overflow:hidden!important;
  clip-path:inset(50%)!important; white-space:nowrap!important;
}
body.xm-product-responsive form.variations_form .xm-seat-heading {display:inline-flex!important;}
body.xm-product-responsive form.variations_form .xm-seat-row .luania-option-current {
  display:none!important; /* Current choice is already shown in the selected card. */
}
body.xm-product-responsive form.variations_form .luania-option-buttons,
body.xm-product-responsive form.variations_form .luania-option-buttons.is-color,
body.xm-product-responsive form.variations_form .xm-native-seat-grid {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important; width:100%!important; min-width:0!important;
  max-width:100%!important; height:auto!important; padding:0!important;
  margin:3px 0 5px!important; align-items:stretch!important; flex-flow:initial!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons[hidden]{display:none!important;}
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button,
body.xm-product-responsive form.variations_form .luania-option-buttons.is-color .luania-option-button {
  appearance:none!important; position:relative!important; display:flex!important;
  justify-content:center!important; align-items:center!important; flex:initial!important;
  width:100%!important; min-width:0!important; max-width:100%!important;
  height:auto!important; min-height:55px!important; aspect-ratio:auto!important;
  box-sizing:border-box!important; margin:0!important; padding:10px 9px!important;
  border:2px solid var(--xm-seat-amber)!important; border-radius:8px!important;
  background:var(--xm-seat-cream)!important; color:var(--xm-seat-ink)!important;
  box-shadow:0 3px 8px rgb(85 78 56 / 9%)!important; opacity:1!important;
  font:800 clamp(12px,1.65vw,14px)/1.35 system-ui,Arial,sans-serif!important;
  text-align:center!important; letter-spacing:-.01em!important;
  text-decoration:none!important; overflow-wrap:anywhere!important;
  white-space:normal!important; cursor:pointer!important;
  transition:background .16s,border-color .16s,color .16s,transform .16s!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button span {
  display:inline!important; position:static!important; visibility:visible!important;
  clip:auto!important; clip-path:none!important; opacity:1!important;
  width:auto!important; height:auto!important; overflow:visible!important;
  color:inherit!important; font:inherit!important; white-space:normal!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons.is-color .luania-option-button::before,
body.xm-product-responsive form.variations_form .luania-option-buttons.is-color .luania-option-button::after,
body.xm-product-responsive form.variations_form .luania-option-buttons.is-color .luania-option-button span::before,
body.xm-product-responsive form.variations_form .luania-option-buttons.is-color .luania-option-button span::after {
  content:none!important; display:none!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button:hover:not(:disabled) {
  border-color:#15694e!important; background:#f6fff6!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button.is-selected,
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button[aria-pressed="true"] {
  color:#fff!important; background:var(--xm-seat-selected)!important;
  border-color:var(--xm-seat-focus)!important;
  box-shadow:0 0 0 1px var(--xm-seat-focus),0 4px 9px rgb(0 0 0 / 15%)!important;
  font-weight:850!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button.is-selected:hover,
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button[aria-pressed="true"]:hover {
  background:#0b2936!important; color:white!important;
}
body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button:disabled {
  opacity:.42!important; cursor:not-allowed!important; text-decoration:line-through!important;
}
body.xm-product-responsive form.variations_form .reset_variations {
  display:inline-block!important; margin:8px 0 0!important; padding:3px 0!important;
  color:#a34e36!important; font:750 11px/1.4 system-ui,Arial,sans-serif!important;
  letter-spacing:.04em!important; text-underline-offset:2px!important;
}
body.xm-product-responsive form.variations_form .single_variation_wrap,
body.xm-product-responsive form.variations_form .single_variation,
body.xm-product-responsive form.variations_form .woocommerce-variation-price {
  min-width:0!important; max-width:100%!important; box-sizing:border-box!important;
}
body.xm-product-responsive form.variations_form .woocommerce-variation-price .price {
  color:#123a31!important; font:850 clamp(22px,5vw,28px)/1.3 system-ui,Arial,sans-serif!important;
}
body.xm-product-responsive form.variations_form .luania-variation-status {
  color:#527468!important; font:650 11px/1.55 system-ui,Arial,sans-serif!important;
}
/* Checkout controls: real submit names, prices and variation IDs are unchanged. */
body.xm-product-responsive form.cart .woocommerce-variation-add-to-cart,
body.xm-product-responsive form.cart:not(.variations_form):not(.grouped_form) {
  display:grid!important; grid-template-columns:minmax(75px,88px) minmax(0,1fr)!important;
  gap:9px!important; align-items:stretch!important; width:100%!important;
  min-width:0!important; max-width:100%!important; margin:16px 0 0!important;
}
body.xm-product-responsive form.cart .woocommerce-variation-add-to-cart:before,
body.xm-product-responsive form.cart:not(.variations_form):not(.grouped_form):before {
  content:none!important; display:none!important;
}
body.xm-product-responsive form.cart .quantity:not(.hidden) {
  display:flex!important; align-items:center!important; justify-content:center!important;
  min-width:0!important; max-width:100%!important; width:100%!important;
  margin:0!important; border:1px solid #e6b476!important;
  border-radius:12px!important; background:#fff8e9!important; overflow:hidden!important;
}
body.xm-product-responsive form.cart .quantity:not(.hidden) input.qty {
  appearance:textfield!important; display:block!important; width:100%!important;
  min-width:0!important; max-width:100%!important; height:52px!important;
  min-height:52px!important; padding:0!important; border:0!important;
  box-shadow:none!important; background:transparent!important; color:#861738!important;
  font:850 14px/1 system-ui,Arial,sans-serif!important; text-align:center!important;
}
body.xm-product-responsive form.cart .quantity:not(.hidden) .luania-qty-btn {
  flex:0 0 25px!important; width:25px!important; min-width:25px!important;
  border:0!important; box-shadow:none!important; padding:0!important;
  background:transparent!important; color:#861738!important;
  font:850 18px/1 system-ui,Arial,sans-serif!important;
}
body.xm-product-responsive form.cart .single_add_to_cart_button {
  grid-column:auto!important; width:100%!important; min-width:0!important;
  min-height:54px!important; height:auto!important; margin:0!important;
  padding:13px 8px!important; border:0!important; border-radius:12px!important;
  box-shadow:0 5px 11px rgb(95 24 50 / 12%)!important;
  background:var(--xm-seat-cart)!important; color:#fff!important;
  font:850 13px/1.35 system-ui,Arial,sans-serif!important;
  text-align:center!important; text-transform:uppercase!important; letter-spacing:.02em!important;
  cursor:pointer!important;
}
body.xm-product-responsive form.cart .single_add_to_cart_button:hover:not(:disabled):not(.disabled) {
  background:#a31a43!important; color:#fff!important;
}
body.xm-product-responsive form.cart :is(.luania-buy-now,.xlp-buy-now,button[name="luania_buy_now"]) {
  display:block!important; grid-column:1/-1!important; width:100%!important;
  min-width:0!important; height:auto!important; min-height:55px!important;
  margin:4px 0 0!important; padding:13px 14px!important;
  border:1px solid #e7aa60!important; border-radius:12px!important;
  box-shadow:0 5px 11px rgb(145 99 35 / 10%)!important;
  background:linear-gradient(105deg,#ffdfa9,#f0be7c)!important; color:#612e33!important;
  font:850 14px/1.35 system-ui,Arial,sans-serif!important;
  text-transform:uppercase!important; text-align:center!important; letter-spacing:.04em!important;
  cursor:pointer!important;
}
body.xm-product-responsive form.cart :is(.luania-buy-now,.xlp-buy-now,button[name="luania_buy_now"]):hover:not(:disabled) {
  background:linear-gradient(105deg,#ffdf9c,#eeb469)!important;
}
body.xm-product-responsive form.cart .quantity.hidden{display:none!important;}
body.xm-product-responsive form.cart:has(.quantity.hidden) .single_add_to_cart_button{grid-column:1/-1!important;}
body.xm-product-responsive form.cart .single_add_to_cart_button:is(:disabled,.disabled),
body.xm-product-responsive form.cart .luania-buy-now:disabled{
  opacity:.6!important;cursor:not-allowed!important;
}
body.xm-product-responsive form.cart :is(.luania-option-button,.single_add_to_cart_button,.luania-buy-now,.luania-qty-btn):focus-visible{
  outline:3px solid var(--xm-seat-focus)!important;outline-offset:2px!important;
}
/* Some XLP templates output their *own* named variation button rows instead. */
body.xm-product-responsive .xlp-variations .xlp-variation-options,
body.xm-product-responsive .xlp-variations .xlp-swatches,
body.xm-product-responsive .xlp-product-page form.cart .variable-items-wrapper{
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important; align-items:stretch!important; min-width:0!important;
  max-width:100%!important;
}
body.xm-product-responsive .xlp-variations .xlp-variation-options :is(button,.xlp-option,.xlp-variation-option),
body.xm-product-responsive .xlp-variations .xlp-swatches :is(button,.xlp-swatch),
body.xm-product-responsive .xlp-product-page form.cart .variable-items-wrapper .variable-item{
  width:100%!important; height:auto!important; min-height:50px!important;
  padding:10px!important; border:2px solid var(--xm-seat-amber)!important;
  border-radius:8px!important; background:var(--xm-seat-cream)!important;
  color:var(--xm-seat-ink)!important; font-weight:750!important;
}
body.xm-product-responsive .xlp-variations .xlp-variation-options :is(button.selected,button.is-selected,.xlp-option.selected,.xlp-variation-option.selected,[aria-pressed="true"]),
body.xm-product-responsive .xlp-variations .xlp-swatches :is(button.selected,button.is-selected,.xlp-swatch.selected,[aria-pressed="true"]),
body.xm-product-responsive .xlp-product-page form.cart .variable-items-wrapper :is(.selected,.selected .variable-item){
  border-color:var(--xm-seat-focus)!important; background:var(--xm-seat-selected)!important;
  color:#fff!important; box-shadow:0 0 0 1px var(--xm-seat-focus)!important;
}
@media(max-width:480px){
  body.xm-product-responsive form.variations_form.xm-choice-ready{padding:11px!important;}
  body.xm-product-responsive form.variations_form .xm-choice-guide{padding:12px!important;}
  body.xm-product-responsive form.variations_form .luania-option-buttons{gap:8px!important;}
  body.xm-product-responsive form.variations_form .luania-option-buttons .luania-option-button {
    min-height:55px!important; padding:10px 6px!important; font-size:clamp(12px,3.35vw,13.5px)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.xm-product-responsive form.variations_form .luania-option-button{transition:none!important;}
}
