/* ===== Pro-level unified button + responsive panel (400px–1280px) ===== */

/* Brand colors */
:root{
  --arw-blue: #007BFF;
  --arw-orange: #FF6600;
  --arw-purple: #6F42C1;
  --arw-white: #ffffff;
}

/* Target both Select options & Add to cart (same element states) + Custom Order */
a.button.product_type_variable,
.add_to_cart_button.product_type_variable,
.arw-custom-order{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  font-weight:600;
  text-decoration:none;
  border-radius:10px;
  padding: clamp(10px, 1.3vw, 14px) clamp(16px, 2vw, 22px);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background-color .12s ease;
  min-width: clamp(130px, 20vw, 180px);
  box-sizing:border-box;
  background: var(--arw-blue);
  color: var(--arw-white) !important;
  border: none;
}

/* Remove icons completely inside the button */
a.button.product_type_variable i,
a.button.product_type_variable svg,
a.button.product_type_variable .dashicons,
.add_to_cart_button.product_type_variable i,
.add_to_cart_button.product_type_variable svg,
.add_to_cart_button.product_type_variable .dashicons,
.arw-custom-order i,
.arw-custom-order svg,
.arw-custom-order .dashicons{ display:none !important; }
a.button.product_type_variable::before,
.add_to_cart_button.product_type_variable::before,
.arw-custom-order::before{ content:none !important; }

/* Hover/active colors per requirement */
a.button.product_type_variable:hover,
.add_to_cart_button.product_type_variable:hover,
.arw-custom-order:hover{
  background: var(--arw-orange);
  color: var(--arw-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
a.button.product_type_variable:active,
.add_to_cart_button.product_type_variable:active,
.arw-custom-order:active{
  background: var(--arw-purple);
  color: var(--arw-white) !important;
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

/* When panel open, hide the original CTA */
a.button.product_type_variable.arw-vqf-hidden,
button.product_type_variable.arw-vqf-hidden,
.add_to_cart_button.product_type_variable.arw-vqf-hidden{ display:none !important; }

/* Subtle emphasis when a valid variation is found */
a.button.product_type_variable.arw-vqf-ready,
.add_to_cart_button.product_type_variable.arw-vqf-ready{
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

/* ===== Variation Panel ===== */
.arw-vqf-panel{
  margin-top: .85rem;
  padding: clamp(10px, 1.8vw, 16px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.arw-vqf-panel .variations td,
.arw-vqf-panel .variations th{ padding:.35rem .45rem; }
.arw-vqf-panel select{
  width:100%;
  padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.4vw, 14px);
  border-radius:10px;
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  outline:none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.arw-vqf-panel select:focus{
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 0 0 3px rgba(30,144,255,.12);
}
.arw-vqf-panel .single_variation_wrap{ display:block; margin-top:.5rem; }
.arw-vqf-panel .woocommerce-variation-price{ margin-bottom:.5rem; font-weight:600; }

/* ===== Responsive: 400px–1280px ===== */
@media (max-width: 399px){
  .arw-vqf-panel{ padding:12px; border-radius:10px; }
  a.button.product_type_variable, .add_to_cart_button.product_type_variable, .arw-custom-order{ min-width:120px; }
}
@media (min-width: 400px) and (max-width: 768px){
  .arw-vqf-panel{ padding: clamp(12px, 3.5vw, 16px); }
}
@media (min-width: 769px) and (max-width: 1280px){
  .arw-vqf-panel{ padding: clamp(14px, 2.2vw, 18px); }
}

/* Sold-out as disabled button */
.arw-vqf-soldout{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: clamp(10px, 1.3vw, 14px) clamp(16px, 2vw, 22px);
  border-radius:10px;
  background:#e9ecef;
  color:#6c757d;
  font-weight:700;
  min-width: clamp(130px, 20vw, 180px);
  cursor:not-allowed;
  user-select:none;
}

/* Hide ARW custom order button when out of stock */
.product.outofstock .arw-custom-order{ display:none !important; }
