/* ============================================
   CSS Variables
   ============================================ */
:root {
  --wooecom-btn-color: #43A071;
  --wooecom-btn-text: #ffffff;
  --wooecom-focus-color: #4f46e5;
  --wooecom-form-bg: #fff;
  --wooecom-field-border: #d1d5db;
  --wooecom-summary-bg: #feecf5;
  --wooecom-summary-text: #b83375;
}

/* ============================================
   Toast Notifications (toastr override)
   ============================================ */
#toast-container.toast-top-right {
  top: 16px !important;
  right: 16px !important;
}
#toast-container > div {
  padding: 10px 14px 10px 46px !important;
  font-size: 13px !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: min(300px, calc(100vw - 32px)) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  opacity: 0.97 !important;
  background-position: 14px center !important;
  background-size: 18px 18px !important;
}
#toast-container > div .toast-message {
  font-size: 13px !important;
  line-height: 1.4 !important;
  display: block !important;
}
@media (max-width: 480px) {
  #toast-container.toast-top-right {
    top: 10px !important;
    right: 10px !important;
  }
}

.single-product form.cart {
  display: none !important;
}

.wooecom_instant_order {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.wooecom_instant_order *,
.wooecom_instant_order *::before,
.wooecom_instant_order *::after,
.wooecom_popup_modal *,
.wooecom_popup_modal *::before,
.wooecom_popup_modal *::after {
  box-sizing: border-box;
}

.wooecom_instant_order_form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px !important;
  margin-bottom: -1px;
  background: #fff;
  box-sizing: border-box !important;
}

/* ============================================
   Form Header (EasySell-style)
   ============================================ */
.wooecom_form_header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding-bottom: 2px;
}

.wooecom_form_header_left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wooecom_form_header_icon {
  font-size: 18px;
  color: #3b82f6;
  flex-shrink: 0;
}

.wooecom_form_header_text {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}

.wooecom_form_header_right {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wooecom_form_header_right > i {
  font-size: 22px;
  color: #6b7280;
}


/* ============================================
   Cart Items Section
   ============================================ */
.wooecom_cart_items_section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Header shown only when cart has extra items */
.wooecom_cart_section_header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f0fdf4;
  border-bottom: 1px solid #d1fae5;
  font-size: 12px;
  font-weight: 600;
  color: #065f46;
}

.wooecom_cart_section_header i {
  font-size: 13px;
}

.wooecom_cart_section_total {
  border-top: 1px solid var(--wooecom-field-border, #e5e7eb);
  margin-top: 8px;
  padding-top: 8px;
  font-size: 13px;
  color: #111827;
}

.wooecom_cart_section_shipping,
.wooecom_cart_section_total_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.wooecom_cart_section_total_row {
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}

.wooecom_cart_item_count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: #d1fae5;
  color: #065f46;
  padding: 1px 8px;
  border-radius: 20px;
}

.wooecom_cart_item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
  transition: background 0.15s ease;
}

.wooecom_cart_item:last-child {
  border-bottom: none;
}

/* Current product — subtle highlight */
.wooecom_cart_item_current {
  background: #fafffe;
}

/* Existing cart items — slightly muted */
.wooecom_cart_item_existing {
  background: #fff;
}

.wooecom_cart_item_thumb_wrap {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.wooecom_cart_item_thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  display: block;
}

.wooecom_cart_item_qty_badge {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--wooecom-btn-color, #43A071);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-sizing: border-box;
  border: 2px solid #fff;
}

.wooecom_cart_item_info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wooecom_cart_item_name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* Tag label under product name */
.wooecom_cart_item_tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--wooecom-btn-color, #43A071);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wooecom_cart_item_tag_existing {
  color: #6b7280;
}

.wooecom_cart_item_price {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  white-space: nowrap;
  flex-shrink: 0;
}

.wooecom_cart_item_remove {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  flex-shrink: 0;
  padding: 0;
}

.wooecom_cart_item_remove:hover {
  color: #dc2626;
}

.wooecom_information_title {
  width: 100%;
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.wooecom_instant_order_form > input,
.wooecom_instant_order_form > select,
.wooecom_instant_order_form > textarea {
  width: calc(50% - 5px) !important;
  border: 1px solid #d1d5db !important;
  outline: none !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  line-height: 1.5em !important;
  height: auto !important;
  font-size: 14px !important;
  color: #374151 !important;
  background: #fff !important;
  transition: border-color 0.15s ease !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.wooecom_field_input_row > input,
.wooecom_field_input_row > select,
.wooecom_field_input_row > textarea {
  width: 100% !important;
  flex: 1 !important;
  min-width: 0 !important;
  border: 1px solid #d1d5db !important;
  outline: none !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  line-height: 1.5em !important;
  height: auto !important;
  font-size: 14px !important;
  color: #374151 !important;
  background: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}

.wooecom_field_row.wooecom_field_has_icon .wooecom_field_input_row > input,
.wooecom_field_row.wooecom_field_has_icon .wooecom_field_input_row > select,
.wooecom_field_row.wooecom_field_has_icon .wooecom_field_input_row > textarea {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.wooecom_instant_order_form > input:focus,
.wooecom_instant_order_form > select:focus,
.wooecom_instant_order_form > textarea:focus,
.wooecom_field_input_row > input:focus,
.wooecom_field_input_row > select:focus,
.wooecom_field_input_row > textarea:focus {
  border-color: #4f46e5 !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15) !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wooecom_instant_order_form > input::placeholder,
.wooecom_instant_order_form > select::placeholder,
.wooecom_instant_order_form > textarea::placeholder,
.wooecom_field_input_row input::placeholder,
.wooecom_field_input_row textarea::placeholder {
  color: #9ca3af;
}

.wooecom_instant_order_form > textarea,
.wooecom_field_input_row > textarea {
  width: 100% !important;
  border-radius: 8px !important;
}

/* ============================================
   Field rows (EasySell-style labels + icons)
   ============================================ */
.wooecom_field_row {
  width: 100% !important;
  box-sizing: border-box;
}

/* Full-width field row — covers textarea and any explicitly full-width field.
   .wooecom_field_row_full is set in PHP (no :has() needed → works on all browsers) */
.wooecom_instant_order_form > .wooecom_field_row_full {
  width: 100% !important;
}
.wooecom_instant_order_form > .wooecom_field_row.wooecom_field_row_full {
  width: 100% !important;
}

.wooecom_field_label {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.wooecom_req {
  color: #dc2626;
  font-weight: 700;
}

.wooecom_field_input_row {
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* When icons are enabled, lock the row to a fixed height so icon and input always match */
.wooecom_field_has_icon .wooecom_field_input_row {
  height: 50px;
}

.wooecom_field_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  flex-shrink: 0;
  background: #e1e1e1;
  color: #212529;
  border: 1px solid #d1d5db;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Force input/select to fill the fixed-height row exactly */
.wooecom_field_has_icon .wooecom_field_input_row > input,
.wooecom_field_has_icon .wooecom_field_input_row > select {
  height: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.wooecom_consent_row {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin-top: 4px;
}

.wooecom_consent_label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.wooecom_consent_label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px !important;
  height: 18px;
  accent-color: #0d9488;
}

/* ============================================
   CTA Trigger Button (collapsible / popup)
   ============================================ */
.wooecom_cta_trigger_wrap {
  width: 100%;
  margin-bottom: 10px;
}

.wooecom_cta_trigger_btn {
  width: 100% !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.wooecom_cta_trigger_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wooecom_collapse_arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
  margin-left: 6px;
}

.wooecom_collapse_arrow.wooecom_arrow_up {
  transform: rotate(180deg);
}

.wooecom_collapsible_wrap {
  overflow: hidden;
  margin-top: 10px;
}

/* ============================================
   Quantity Offers Cards - Multi-template system
   ============================================ */
.wooecom_qty_offers {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.wooecom_qty_offer_card {
  position: relative;
  display: block;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  overflow: visible;
  color: var(--wooecom-btn-color, #43A071);
}

.wooecom_qty_offer_card:hover {
  border-color: #c7d2fe;
}

.wooecom_qty_offer_card.active {
  box-shadow: 0 0 0 1px currentColor;
}

.wooecom_qty_offer_card input[type="radio"] {
  display: none !important;
}

.wooecom_offer_badge {
  position: absolute;
  top: -11px;
  right: 14px;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.6;
}

.wooecom_offer_content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.wooecom_offer_left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.wooecom_offer_radio_dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: transparent;
}

.wooecom_qty_offer_card.active .wooecom_offer_radio_dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.wooecom_offer_image_wrap {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  display: inline-block !important;
  line-height: 0 !important;
}
#wooecom_qty_offers_wrap img.wooecom_offer_image,
.wooecom_offer_image_wrap img.wooecom_offer_image,
img.wooecom_offer_image {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  min-width: 50px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wooecom_offer_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wooecom_offer_label {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.wooecom_offer_discount {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  width: fit-content;
}

.wooecom_offer_right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.wooecom_offer_total {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}
.wooecom_offer_total .woocommerce-Price-amount { font-weight: 700; }

.wooecom_offer_original {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}
.wooecom_offer_original .woocommerce-Price-amount {
  text-decoration: line-through;
  color: #9ca3af;
}

/* Template: Classic */
.wooecom_tpl_classic .wooecom_offer_info { flex-direction: column; gap: 4px; }

/* Template: Modern */
.wooecom_tpl_modern .wooecom_qty_offer_card {
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.wooecom_tpl_modern .wooecom_offer_content { flex-wrap: wrap; }
.wooecom_tpl_modern .wooecom_offer_info { flex-direction: column; gap: 6px; }
.wooecom_tpl_modern .wooecom_offer_badge {
  position: static;
  display: inline-block;
  margin-bottom: 8px;
}

/* Template: Vertical */
.wooecom_tpl_vertical {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 10px;
}
.wooecom_tpl_vertical .wooecom_qty_offer_card {
  flex: 1 1 calc(50% - 5px);
  min-width: 140px;
}
.wooecom_tpl_vertical .wooecom_offer_content {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wooecom_tpl_vertical .wooecom_offer_left {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wooecom_tpl_vertical .wooecom_offer_right {
  align-items: flex-start;
  text-align: left;
}
.wooecom_tpl_vertical .wooecom_offer_image_wrap {
  width: 100% !important;
  max-width: 100% !important;
  height: 80px !important;
  border-radius: 8px !important;
}
.wooecom_tpl_vertical .wooecom_offer_image_wrap img.wooecom_offer_image {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: 80px !important;
  max-height: 80px !important;
}

/* ============================================
   Popup Overlay (form mode + qty offers)
   ============================================ */
.wooecom_popup_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.wooecom_popup_modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 24px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  -webkit-animation: wooecom_popup_in 0.25s ease;
  animation: wooecom_popup_in 0.25s ease;
}
@-webkit-keyframes wooecom_popup_in {
  from { -webkit-transform: translateY(30px); opacity: 0; }
  to   { -webkit-transform: translateY(0);    opacity: 1; }
}
@keyframes wooecom_popup_in {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.wooecom_popup_close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border-radius: 0;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: color 0.15s;
  line-height: 1;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
}
.wooecom_popup_close:hover {
  background: transparent;
  color: #374151;
}
.wooecom_popup_handle {
  display: none;
}
.wooecom_popup_form_container {
  padding-top: 0;
}
.wooecom_popup_form_container .wooecom_instant_order {
  border: none !important;
  box-shadow: none !important;
}
.wooecom_popup_form_container .wooecom_instant_order_form {
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 8px 0 !important;
  margin-top: 0;
}
.wooecom_popup_form_container .wooecom_order_summary {
  display: none !important;
}

/* ============================================
   Popup inline order details (below form fields)
   ============================================ */
.wooecom_popup_order_details {
  margin: 12px 0 4px;
  border-top: 1px solid var(--wooecom-field-border, #e5e7eb);
  padding-top: 10px;
}

.wooecom_popup_details_table {
  width: 100%;
  border-collapse: collapse;
}

.wooecom_popup_details_table tr + tr td {
  padding-top: 6px;
}

.wooecom_popup_details_table td {
  padding: 3px 0;
  font-size: 13px;
  vertical-align: middle;
}

.wooecom_popup_details_table .wooecom_pod_label {
  color: #6b7280;
  width: 50%;
}

.wooecom_popup_details_table .wooecom_pod_value {
  text-align: right;
  font-weight: 500;
  color: #111827;
}

.wooecom_popup_details_table .wooecom_row_total_price td {
  padding-top: 8px;
  border-top: 1px solid var(--wooecom-field-border, #e5e7eb);
  margin-top: 4px;
  font-size: 14px;
}

.wooecom_popup_details_table .wooecom_order_qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wooecom-btn-color, #43A071);
  color: var(--wooecom-btn-text, #fff);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 7px;
  margin-right: 4px;
  vertical-align: middle;
}

/* In popup: hide old top summary and qty selector above submit button */
.wooecom_popup_form_container .wooecom_popup_order_summary {
  display: none !important;
}
.wooecom_popup_form_container .wooecom_actions_primary .wooecom_quantity {
  display: none !important;
}

/* ============================================
   Popup Order Summary (product + qty + total)
   ============================================ */
.wooecom_popup_order_summary {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
  margin-bottom: 4px;
}

.wooecom_popup_order_thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  grid-row: 1 / 3; /* image spans both rows */
}

.wooecom_popup_order_info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wooecom_popup_order_name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wooecom_popup_order_total {
  font-size: 14px;
  font-weight: 700;
  color: var(--wooecom-btn-color, #43A071);
}

.wooecom_popup_qty {
  grid-column: 2 / 4; /* qty spans info + right columns on 2nd row */
  width: 160px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 36px;
  box-sizing: border-box;
  grid-template-rows: 1fr; /* fill 100% of inner area regardless of box-sizing */
  grid-template-columns: 36px 1fr 36px;
  align-content: stretch;
}

.wooecom_popup_qty.wooecom_quantity .wooecom_plus,
.wooecom_popup_qty.wooecom_quantity .wooecom_minus {
  height: 100%;
  font-size: 14px;
}

.wooecom_popup_qty.wooecom_quantity > input[type="number"] {
  height: 100% !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px;
}

/* Offer badge in popup summary — shows selected offer label + discount */
.wooecom_popup_offer_badge_wrap {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wooecom_popup_offer_qty_label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.wooecom_popup_offer_discount_label {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: #d1fae5;
  padding: 2px 8px;
  border-radius: 6px;
}

.wooecom_popup_change_offer_btn {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--wooecom-btn-color, #43A071);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.wooecom_popup_change_offer_icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.wooecom_popup_change_offer_icon.wooecom_rotate {
  transform: rotate(180deg);
}

.wooecom_popup_offers_drawer {
  width: 100%;
  grid-column: 1 / -1;
  padding-top: 4px;
}
.wooecom_popup_trigger_wrap {
  width: 100%;
  margin-top: 10px;
}

/* ============================================
   Actions Group (buttons container)
   ============================================ */
.wooecom_actions_group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wooecom_actions_primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.wooecom_actions_primary .wooecom_quantity {
  width: 100%;
}

.wooecom_actions_primary .wooecom_checkout {
  width: 100%;
}

.wooecom_bottom_actions_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.wooecom_bottom_actions_wrap .wooecom_quantity {
  flex: 0 0 auto;
  width: auto;
  min-width: 130px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wooecom_bottom_actions_wrap .wooecom_checkout {
  flex: 1;
  width: auto;
}

.wooecom_bottom_actions_wrap .wooecom_add_to_cart_btn,
.wooecom_bottom_actions_wrap .wooecom_whatsapp_order_btn {
  flex: 1 1 100%;
}

/* ============================================
   Checkout / Submit Button
   ============================================ */
#apply_coupon:hover {
  color: #0766e0 !important;
  background: #ffffff !important;
  border-color: #0766e0 !important;
}

#apply_coupon {
  color: #ffffff !important;
  background: var(--wooecom-btn-color, #43A071) !important;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-radius: 10px;
  padding: 18px;
  outline: none !important;
  position: relative;
}

.wooecom_checkout {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-radius: 12px;
  padding: 15px 20px;
  outline: none;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.wooecom_checkout:focus-visible {
  outline: 3px solid var(--wooecom-focus-color, #4f46e5);
  outline-offset: 2px;
}

.wooecom_checkout_ico {
  font-size: 18px;
  flex-shrink: 0;
}

.wooecom_checkout_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.25;
}

.wooecom_checkout_text {
  font-size: inherit;
  font-weight: inherit;
}

.wooecom_checkout_sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.wooecom_checkout:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wooecom_checkout.loading {
  pointer-events: none !important;
}

/* ============================================
   Add to Cart Button
   ============================================ */
.wooecom_add_to_cart_btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  background: #fff;
  color: #374151;
  text-decoration: none;
  line-height: 1.4;
}

.wooecom_add_to_cart_btn i {
  font-size: 17px;
  flex-shrink: 0;
}

.wooecom_add_to_cart_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   WhatsApp Order Button
   ============================================ */
.wooecom_whatsapp_order_btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  background: #25D366;
  color: #fff;
  border: 2px solid #25D366;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none !important;
  line-height: 1.4;
}

.wooecom_whatsapp_order_btn i {
  font-size: 20px;
  flex-shrink: 0;
}

.wooecom_whatsapp_order_btn:hover {
  background: #128C7E;
  border-color: #128C7E;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* ============================================
   Quantity Selector (Enhanced UX Design)
   ============================================ */
.wooecom_quantity {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: 44px; /* explicit row height — items resolve height correctly */
  width: auto;
  min-width: 130px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.wooecom_quantity:focus-within {
  border-color: var(--wooecom-focus-color, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wooecom_quantity > input[type="number"] {
  width: 100% !important;
  height: 44px !important; /* explicit — no dependency on 100% resolution */
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  line-height: 44px !important; /* center text vertically */
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease;
  user-select: text;
  vertical-align: top !important; /* reset browser inline baseline alignment */
}

.wooecom_quantity > input[type="number"]:focus {
  background: #f5f7fa !important;
}

#wooecom_fixed_shipping_fe {
  display: none;
}

.wooecom_quantity input::-webkit-outer-spin-button,
.wooecom_quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wooecom_quantity input[type="number"] {
  -moz-appearance: textfield;
}

.wooecom_plus,
.wooecom_minus {
  width: 100%;
  height: 44px; /* explicit — matches grid-template-rows */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--wooecom-btn-color, #43A071);
  background: #fafafa;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  vertical-align: top !important; /* reset browser inline baseline alignment */
}

.wooecom_plus:hover,
.wooecom_minus:hover {
  color: #fff;
  background: var(--wooecom-btn-color, #43A071);
}

.wooecom_plus:active,
.wooecom_minus:active {
  background: #37895e; /* Fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--wooecom-btn-color, #43A071) 85%, #000);
}

.wooecom_plus:focus-visible,
.wooecom_minus:focus-visible {
  outline: 2px solid var(--wooecom-focus-color, #4f46e5);
  outline-offset: -2px;
}

.wooecom_minus {
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.wooecom_plus {
  border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   Order Summary
   ============================================ */
.wooecom_order_summary {
  width: 100%;
}

.wooecom_order_summary_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: -1px;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wooecom_order_summary.active .wooecom_order_summary_head {
  border-radius: 12px 12px 0 0;
}

.wooecom_order_summary_head:hover {
  background: #f9fafb;
}

.wooecom_order_summary_head > i {
  transform: rotate(0);
  transition: all 0.3s ease;
  font-size: 14px;
}

.wooecom_order_summary.active .wooecom_order_summary_head > i {
  transform: rotate(180deg);
}

.wooecom_price_table {
  display: none;
  position: relative;
  /* Border/radius on wrapper so Firefox respects rounded corners */
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.wooecom_price_table table {
  margin-bottom: 0;
}

.wooecom_order_summary.active .wooecom_price_table {
  display: block;
}

.wooecom_price_table > table td:first-child {
  text-align: left;
  color: #6b7280;
  font-size: 14px;
}

.wooecom_price_table > table td:last-child {
  text-align: right;
  font-size: 14px;
}

.wooecom_price_table > table td {
  border: none;
  padding: 14px 18px;
}

.wooecom_price_table > table {
  border-collapse: collapse;
  border: none;
  border-radius: 0;
  overflow: visible;
  width: 100%;
}

.wooecom_price_table > table tr {
  border-bottom: 1px solid #f3f4f6;
}

.wooecom_price_table > table tr:last-child {
  border-bottom: none;
}

/* ============================================
   Loader
   ============================================ */
.wooecom_btn_loader {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  box-sizing: border-box;
  -webkit-animation: rotation 1s linear infinite;
  animation: rotation 1s linear infinite;
}

@-webkit-keyframes rotation {
  0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   Attributes (legacy)
   ============================================ */
.wooecom_attributes {
  width: 100%;
}

.wooecom_single_attr label input {
  display: none !important;
}

.wooecom_single_attr {
  margin: 10px 0 !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wooecom_single_attr label span {
  display: inline-block !important;
  border: 1px solid #e5e7eb !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  transition: all 0.15s ease;
}

.wooecom_single_attr label input:checked + span {
  background: transparent !important;
  color: #000 !important;
  border-color: #000 !important;
}

.wooecom_single_attr label {
  margin-bottom: 0 !important;
}

span.wooecom_attr_label {
  font-size: 15px !important;
  min-width: 50px !important;
  display: inline-block !important;
}

/* ============================================
   Sticky Footer
   ============================================ */
.wooecom_footer_icons {
  display: none;
  align-items: stretch;
  font-size: 18px;
  gap: 10px;
}

.wooecom_footer_icons a {
  display: inline-block;
  text-decoration: none !important;
}

.wooecom_footer_icons i {
  width: 46px;
  height: 46px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
}

.wooecom_footer_icons i:hover {
  background: #f9fafb;
}

.wooecom_footer_icons i.fa-phone {
  font-size: 18px;
}

.wooecom_sticky_footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  z-index: 999998;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  display: none;
  margin-bottom: 0 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.wooecom_buy_now {
  display: block;
  padding: 12px 35px;
  border-radius: 10px;
  text-decoration: none !important;
  text-align: center;
  width: 250px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

span.wooecom_order_qty {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 6px;
  line-height: 1em;
  font-size: 10px;
  position: relative;
  left: -2px;
  font-weight: 700;
  top: -6px;
}

.wooecom_order_loader {
  width: 20px;
  height: 20px;
  border: 2.5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.order_loader_container {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

ul.wooecom_shipping_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   Shipping Prices Container
   ============================================ */
.wooecom_shipping_prices_container {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  display: none;
  margin-top: 10px;
  margin-bottom: 5px;
  box-sizing: border-box;
}

.wooecom_shipping_prices_title {
  margin-top: 5px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #1e293b;
}

.wooecom_shipping_prices {
  width: 100%;
  box-sizing: border-box;
}

.wooecom_shipping_prices ul.wooecom_shipping_methods {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}

.wooecom_shipping_prices ul.wooecom_shipping_methods li {
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  background: #fff;
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}

.wooecom_shipping_prices ul.wooecom_shipping_methods li:last-child {
  margin-bottom: 0;
}

/* :has() with @supports fallback for Firefox < 121 */
.wooecom_shipping_methods li.wooecom_shipping_selected {
  background-color: #f8fafc;
}
@supports selector(:has(input)) {
  .wooecom_shipping_prices ul.wooecom_shipping_methods li:has(input[type="radio"]:checked) {
    background-color: #f8fafc;
  }
}
.wooecom_shipping_prices ul.wooecom_shipping_methods li.wooecom_shipping_selected {
  background-color: #f8fafc;
}

.wooecom_shipping_prices ul.wooecom_shipping_methods label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.wooecom_shipping_radio_title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #334155;
}

.wooecom_shipping_prices ul.wooecom_shipping_methods input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  accent-color: var(--wooecom-btn-color, #4f46e5);
  cursor: pointer;
}

.wooecom_shipping_cost_display,
.wooecom_shipping_cost_display .amount {
  font-weight: 700 !important;
  font-size: 16px;
}

.wooecom_free_shipping_badge {
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.wooecom_row_total_price > td {
  font-weight: 700 !important;
  color: #1f2937 !important;
  font-size: 16px !important;
}

.wooecom_order_summary_title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600 !important;
  text-transform: capitalize;
  font-size: 15px;
}

.wooecom_shipping_methods li label {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start;
}

span.wooecom_free_shipping {
  padding: 3px 10px !important;
  border-radius: 8px !important;
  display: inline-block !important;
  font-weight: 600;
  font-size: 13px;
}

.wooecom_single_attr label input:checked + span.wooecom_color_palette {
  position: relative;
}

.wooecom_single_attr label input:checked + span.wooecom_color_palette::before {
  content: "";
  position: absolute;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  border-radius: 5px;
  border: 1px solid #000;
  left: -3px;
  top: -3px;
}

/* ============================================
   RTL Support
   ============================================ */
.rtl .wooecom_shipping_methods li label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.rtl .wooecom_price_table > table td:first-child {
  text-align: right;
}

.rtl .wooecom_price_table > table td:last-child {
  text-align: left;
}

.rtl .wooecom_order_qty {
  left: 2px;
}

.rtl .wooecom_instant_order_form > input,
.rtl .wooecom_instant_order_form > select {
  text-align: right;
}

#wooecom_state {
  appearance: none !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px top 55% !important;
}

.rtl #wooecom_state {
  background-position: left 10px top 55% !important;
}

.wooecom_coupon_discount_row {
  display: none;
}

.toast-center-center {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.form-hide-for-desktop {
  display: none !important;
}

.disabled-btn {
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* ============================================
   Coupon inline row
   ============================================ */
.wooecom_coupon_row {
  width: 100% !important;
  margin-bottom: 12px;
}

.wooecom_coupon_inline {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  border: 1px solid var(--wooecom-field-border, #d1d5db);
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  padding: 0 !important;
  gap: 0 !important;
  box-sizing: border-box;
}

.wooecom_coupon_inline #coupon_code {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  border: none !important;
  outline: none !important;
  padding: 0 12px !important;
  font-size: 14px;
  height: 100% !important;
  line-height: normal !important;
  background: transparent !important;
  min-width: 0;
  box-shadow: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Firefox vertically centers placeholder via padding */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  vertical-align: middle;
}

.wooecom_coupon_inline #apply_coupon {
  -webkit-box-flex: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 9px 9px 0 !important;
  padding: 0 16px !important;
  font-size: 13px;
  font-weight: 600;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  white-space: nowrap;
  width: auto !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ============================================
   Inline qty selector inside cart items
   ============================================ */
.wooecom_cart_item_right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.wooecom_cart_item_right .wooecom_cart_item_price {
  text-align: right;
}

.wooecom_cart_item_controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
}

.wooecom_inline_qty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border: 1px solid var(--wooecom-field-border, #d1d5db);
  border-radius: 20px;
  overflow: hidden;
  height: 28px;
  box-sizing: border-box;
}

.wooecom_inline_qty button {
  background: none !important;
  border: none !important;
  width: 28px;
  height: 28px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 10px;
  padding: 0 !important;
  margin: 0 !important;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: none !important;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.wooecom_inline_qty button:hover {
  color: var(--wooecom-btn-color, #43A071);
}

.wooecom_inline_qty_val {
  font-size: 12px;
  font-weight: 600;
  min-width: 22px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  color: #111827;
  display: block;
}

.wooecom_disabled,
.ip_block,
.cookie_block {
  position: relative;
}

.wooecom_disabled::before,
.ip_block::before,
.cookie_block::before {
  content: "";
  left: 0;
  top: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  cursor: not-allowed;
  z-index: 1000;
  border-radius: 12px;
}

.wooecom_notice {
  margin: 0;
  width: 100%;
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 14px;
  position: relative;
  border-radius: 10px;
  border: 1px solid #fecaca;
  font-size: 14px;
}

.wooecom_notice::before {
  content: "\f05a";
  font: var(--fa-font-solid);
  margin-right: 10px;
}

.wooecom_notice.hidden {
  display: none;
}

/* ============================================
   Variations
   ============================================ */
.wooecom_instant_order_form .wooecom_variations,
.wooecom_variations {
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

/* Classic mode: each variation on its own row, full width */
.wooecom_variations > li {
  display: block;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2px 10px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transition: border-color 0.15s ease;
}

.wooecom_variations > li:has(input:checked),
.wooecom_variations > li.wooecom_var_selected {
  border-color: var(--wooecom-btn-color, #43A071);
  background: #f0fdf4;
}

.variation_title {
  display: flex;
  align-items: center;
  width: 100%;
}

.variation_title {
  position: relative;
}

.variation_title input {
  display: none;
}

.variation_title input + label {
  position: relative;
  padding-left: 36px;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  color: #374151;
}

.variation_title input + label::before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.15s ease;
}

.variation_title input + label::after {
  content: "";
  position: absolute;
  left: 6px;
  height: 12px;
  width: 12px;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.15s ease;
}

.variation_title input + label:hover::after {
  opacity: 0.4;
}

.variation_title input:checked + label::after {
  opacity: 1;
}

.wooecom_hidden {
  display: none !important;
}

/* Modern UI Styles */
ul.wooecom_variations.modern_ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

ul.wooecom_variations.modern_ui > li.attribute_modern_ui {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  gap: 10px;
}

.attribute_modern_ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attribute_modern_ui > h4 {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Options wrap horizontally on their own row */
.attribute_modern_ui .wooecom_attr_options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.attribute_inner > input {
  display: none;
}

.attribute_inner > label {
  border: 1.5px solid #e5e7eb;
  font-size: 13px;
  color: #374151;
  border-radius: 7px;
  padding: 4px 10px;
  line-height: 1.4;
  background: #fff;
  box-shadow: 0 0 0 0;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.attribute_inner > label:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.attribute_inner > input:checked + label {
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.8);
  border-color: #1f2937;
}

.attribute_inner.attr_color > label {
  border: 1.5px solid #e5e7eb;
  font-size: 0;
  color: transparent;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.attribute_inner.wooecom_image_swatch label {
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  overflow: hidden;
}

.wooecom_variations.modern_ui .variation_selection {
  display: none;
}

li.attribute_modern_ui .attribute_inner > label {
  line-height: 2.2em;
}

.variation_price {
  font-weight: 600;
}

.regular_price {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
}

/* RTL Variations */
.rtl .variation_title input + label {
  padding-left: 0;
  padding-right: 36px;
}

.rtl .variation_title input + label::before {
  left: unset;
  right: 0;
}

.rtl .variation_title input + label::after {
  left: unset;
  right: 6px;
}

.rtl ul.wooecom_shipping_methods {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rtl ul.wooecom_shipping_methods li > label {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.rtl .wooecom_notice::before {
  margin-right: 0;
  margin-left: 10px;
}

.wooecom_placeholder {
  display: block;
  width: 100%;
}

/* Out of stock */
li.out-of-stock {
  opacity: 0.5;
  pointer-events: none;
}

li.out-of-stock::after {
  content: "Out of stock";
  font-size: 11px;
  color: #ef4444;
  margin-left: 8px;
  font-weight: 500;
}

/* ============================================
   Responsive — Mobile (max 767px)
   ============================================ */
@media (max-width: 767px) {

  /* --- Form container --- */
  .wooecom_instant_order_form {
    padding: 20px !important;
    gap: 10px;
    border-radius: 10px;
  }

  /* --- Inputs: font-size 16px prevents iOS auto-zoom --- */
  .wooecom_instant_order_form > input,
  .wooecom_instant_order_form > select,
  .wooecom_field_input_row > input,
  .wooecom_field_input_row > select {
    padding: 13px 12px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    height: auto !important;
  }

  .wooecom_instant_order_form > textarea,
  .wooecom_field_input_row > textarea {
    padding: 11px 12px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  /* --- Field labels --- */
  .wooecom_field_label {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .wooecom_field_has_icon .wooecom_field_input_row {
    height: 52px;
  }

  .wooecom_field_icon {
    width: 42px;
    height: 100%;
    font-size: 14px;
    border-radius: 8px 0 0 8px;
  }

  .wooecom_field_row.wooecom_field_has_icon .wooecom_field_input_row > input,
  .wooecom_field_row.wooecom_field_has_icon .wooecom_field_input_row > select,
  .wooecom_field_row.wooecom_field_has_icon .wooecom_field_input_row > textarea {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }

  /* --- Form header --- */
  .wooecom_form_header {
    gap: 8px;
  }

  .wooecom_form_header_icon {
    font-size: 16px;
  }

  .wooecom_form_header_text {
    font-size: 12px;
  }

  .wooecom_form_header_right > i {
    font-size: 20px;
  }

  /* --- Cart items --- */
  .wooecom_cart_items_section {
    border-radius: 8px;
    margin-bottom: 0;
  }

  .wooecom_cart_item {
    padding: 8px 10px;
    gap: 8px;
  }

  .wooecom_cart_item_thumb_wrap {
    width: 36px;
    height: 36px;
  }

  .wooecom_cart_item_thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
  }

  .wooecom_cart_item_qty_badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    top: -4px;
    left: -4px;
  }

  .wooecom_cart_item_name {
    font-size: 12px;
  }

  .wooecom_cart_item_price {
    font-size: 12px;
  }

  .wooecom_cart_item_remove {
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  /* --- Actions: stacked on mobile (already default, just reinforce) --- */
  .wooecom_actions_primary .wooecom_quantity {
    grid-template-columns: 48px 1fr 48px;
    grid-template-rows: 52px;
    width: 100% !important;
    max-width: 100% !important;
    height: 52px;
    border-radius: 12px;
  }

  .wooecom_actions_primary .wooecom_quantity > input[type="number"] {
    height: 52px !important;
    line-height: 52px !important;
    font-size: 16px;
  }

  .wooecom_actions_primary .wooecom_quantity .wooecom_plus,
  .wooecom_actions_primary .wooecom_quantity .wooecom_minus {
    height: 52px;
    font-size: 18px;
  }

  .wooecom_actions_primary .wooecom_checkout {
    width: 100% !important;
  }

  .wooecom_checkout {
    width: 100% !important;
    padding: 14px 16px;
    font-size: 15px;
    border-radius: 10px;
    gap: 8px;
    min-height: 50px;
  }

  .wooecom_checkout_ico {
    font-size: 17px;
  }

  .wooecom_checkout_sub {
    font-size: 10px;
  }

  .wooecom_add_to_cart_btn {
    width: 100% !important;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 10px;
    gap: 8px;
    min-height: 48px;
  }

  .wooecom_add_to_cart_btn i {
    font-size: 16px;
  }

  .wooecom_whatsapp_order_btn {
    width: 100% !important;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 10px;
    gap: 8px;
    min-height: 48px;
  }

  .wooecom_whatsapp_order_btn i {
    font-size: 19px;
  }

  /* --- CTA trigger --- */
  .wooecom_cta_trigger_btn {
    padding: 15px 18px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 52px;
  }

  /* --- Bottom actions: same stacking --- */
  .wooecom_bottom_actions_wrap {
    flex-direction: column;
    padding: 12px 14px;
    gap: 8px;
    border-radius: 0 0 10px 10px;
  }

  .wooecom_bottom_actions_wrap .wooecom_quantity {
    width: auto !important;
    min-width: 130px;
    max-width: 160px;
    align-self: center;
    justify-content: center;
  }

  .wooecom_bottom_actions_wrap .wooecom_quantity .wooecom_plus,
  .wooecom_bottom_actions_wrap .wooecom_quantity .wooecom_minus {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .wooecom_bottom_actions_wrap .wooecom_quantity > input[type="number"] {
    flex: 1;
    width: auto;
    font-size: 16px;
  }

  .wooecom_bottom_actions_wrap .wooecom_checkout {
    width: 100% !important;
    flex: unset;
  }

  .wooecom_bottom_actions_wrap .wooecom_add_to_cart_btn,
  .wooecom_bottom_actions_wrap .wooecom_whatsapp_order_btn {
    width: 100% !important;
    flex: unset;
  }

  /* --- Qty offers --- */
  .wooecom_qty_offer_card {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .wooecom_offer_label {
    font-size: 13px;
  }

  .wooecom_offer_total {
    font-size: 14px;
  }

  .wooecom_offer_original {
    font-size: 12px;
  }

  .wooecom_offer_radio_dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  .wooecom_offer_image_wrap {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    border-radius: 6px !important;
  }
  #wooecom_qty_offers_wrap img.wooecom_offer_image,
  .wooecom_offer_image_wrap img.wooecom_offer_image,
  img.wooecom_offer_image {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    min-width: 40px !important;
  }

  .wooecom_offer_left {
    gap: 8px;
  }

  .wooecom_offer_content {
    gap: 8px;
  }

  /* --- Popup (bottom sheet) --- */
  .wooecom_popup_overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .wooecom_popup_modal {
    /* Own fixed positioning — independent of any parent context */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 14px 14px 0 0;
    max-height: 85vh;
    padding: 8px 16px 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    -webkit-animation: wooecom_popup_slide_up 0.25s ease;
    animation: wooecom_popup_slide_up 0.25s ease;
  }

  @-webkit-keyframes wooecom_popup_slide_up {
    from { -webkit-transform: translateY(100%); transform: translateY(100%); }
    to   { -webkit-transform: translateY(0);    transform: translateY(0); }
  }
  @keyframes wooecom_popup_slide_up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  .wooecom_popup_handle {
    display: block;
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: #d1d5db;
    margin: 0 auto 4px;
  }

  .wooecom_popup_close {
    font-size: 24px;
    margin-left: 4px;
  }

  /* Compact popup order summary on mobile */
  .wooecom_popup_order_summary {
    grid-template-columns: 40px 1fr auto;
    padding: 8px 10px;
    gap: 4px 8px;
    border-radius: 8px;
  }

  .wooecom_popup_order_thumb {
    width: 40px;
    height: 40px;
    border-radius: 5px;
  }

  .wooecom_popup_order_name {
    font-size: 12px;
  }

  .wooecom_popup_order_total {
    font-size: 12px;
  }

  .wooecom_popup_qty {
    height: 32px !important;
    box-sizing: border-box !important;
    grid-template-rows: 1fr !important;
    grid-template-columns: 32px 1fr 32px !important;
    width: 140px !important;
  }

  .wooecom_popup_qty.wooecom_quantity .wooecom_plus,
  .wooecom_popup_qty.wooecom_quantity .wooecom_minus {
    height: 100% !important;
    font-size: 13px;
  }

  .wooecom_popup_qty.wooecom_quantity > input[type="number"] {
    height: 100% !important;
    line-height: normal !important;
    font-size: 13px;
  }

  .wooecom_popup_form_container {
    padding-top: 0;
  }

  /* --- Compact form inside popup --- */
  .wooecom_popup_form_container .wooecom_instant_order_form {
    gap: 6px !important;
  }

  .wooecom_popup_form_container .wooecom_form_header {
    padding-bottom: 0;
    gap: 6px;
  }

  .wooecom_popup_form_container .wooecom_form_header_text {
    font-size: 11px;
  }

  .wooecom_popup_form_container .wooecom_form_header_icon {
    font-size: 14px;
  }

  .wooecom_popup_form_container .wooecom_form_header_right > i {
    font-size: 18px;
  }

  .wooecom_popup_form_container .wooecom_cart_item {
    padding: 6px 8px;
    gap: 6px;
  }

  .wooecom_popup_form_container .wooecom_cart_item_thumb_wrap {
    width: 30px;
    height: 30px;
  }

  .wooecom_popup_form_container .wooecom_cart_item_thumb {
    width: 30px;
    height: 30px;
    border-radius: 5px;
  }

  .wooecom_popup_form_container .wooecom_cart_item_name {
    font-size: 11px;
  }

  .wooecom_popup_form_container .wooecom_cart_item_price {
    font-size: 11px;
  }

  .wooecom_popup_form_container .wooecom_cart_item_qty_badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    top: -3px;
    left: -3px;
  }

  .wooecom_popup_form_container .wooecom_field_label {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .wooecom_popup_form_container .wooecom_field_input_row > input,
  .wooecom_popup_form_container .wooecom_field_input_row > select,
  .wooecom_popup_form_container .wooecom_instant_order_form > input,
  .wooecom_popup_form_container .wooecom_instant_order_form > select {
    padding: 10px 12px !important;
    font-size: 16px !important;
  }

  .wooecom_popup_form_container .wooecom_field_input_row > textarea,
  .wooecom_popup_form_container .wooecom_instant_order_form > textarea {
    padding: 8px 12px !important;
    font-size: 16px !important;
    min-height: 44px;
    max-height: 60px;
  }

  .wooecom_popup_form_container .wooecom_field_has_icon .wooecom_field_input_row {
    height: 48px;
  }

  .wooecom_popup_form_container .wooecom_field_icon {
    width: 36px;
    height: 100%;
    font-size: 13px;
  }

  .wooecom_popup_form_container .wooecom_consent_label {
    font-size: 11px;
    gap: 6px;
  }

  .wooecom_popup_form_container .wooecom_consent_label input[type="checkbox"] {
    width: 16px !important;
    height: 16px;
  }

  .wooecom_popup_form_container .wooecom_actions_group {
    gap: 6px;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    margin: 0 -24px;
    border-top: 1px solid #f3f4f6;
    z-index: 2;
    width: calc(100% + 48px);
    box-sizing: border-box;
  }

  .wooecom_popup_form_container .wooecom_checkout {
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
    min-height: 44px !important;
  }

  .wooecom_popup_form_container .wooecom_add_to_cart_btn,
  .wooecom_popup_form_container .wooecom_whatsapp_order_btn {
    padding: 10px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    min-height: 40px !important;
  }

  .wooecom_popup_form_container .wooecom_notice {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 6px;
  }

  .wooecom_popup_form_container .wooecom_placeholder {
    display: none;
  }

  /* --- Order summary --- */
  .wooecom_order_summary_head {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .wooecom_order_summary.active .wooecom_order_summary_head {
    border-radius: 10px 10px 0 0;
  }

  .wooecom_order_summary_title {
    font-size: 14px;
    gap: 8px;
  }

  .wooecom_price_table > table td {
    padding: 10px 14px;
    font-size: 13px !important;
  }

  .wooecom_row_total_price > td {
    font-size: 15px !important;
  }

  /* --- Sticky footer: full width button --- */
  .wooecom_footer_icons {
    display: flex;
    align-items: stretch;
    gap: 8px;
  }

  .wooecom_footer_icons i {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 8px;
  }

  .wooecom_sticky_footer {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .wooecom_buy_now {
    flex: 1 !important;
    width: auto !important;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* --- Consent --- */
  .wooecom_consent_label {
    font-size: 12px;
    gap: 8px;
  }

  .wooecom_consent_label input[type="checkbox"] {
    width: 18px !important;
    height: 18px;
  }

  /* --- Notice --- */
  .wooecom_notice {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  /* --- Collapsible --- */
  .wooecom_collapsible_wrap {
    margin-top: 8px;
  }

  /* --- Variations --- */
  .wooecom_variations {
    gap: 12px;
  }

  .attribute_modern_ui > h4 {
    font-size: 12px;
  }

  .attribute_inner > label {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
  }

  ul.wooecom_variations.modern_ui > li.attribute_modern_ui {
    padding: 8px 10px;
    gap: 6px;
  }

  .attribute_modern_ui .wooecom_attr_options {
    gap: 5px;
  }

  .variation_title input + label {
    font-size: 14px;
    padding-left: 32px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .variation_title input + label::before {
    width: 22px;
    height: 22px;
  }

  .variation_title input + label::after {
    width: 10px;
    height: 10px;
    left: 6px;
  }

  /* --- Shipping methods --- */
  .wooecom_shipping_prices_container p {
    font-size: 14px !important;
  }

  /* --- Hide empty placeholder on mobile --- */
  .wooecom_placeholder {
    display: none;
  }
}

/* ============================================
   Responsive — Small phones (max 400px)
   ============================================ */
@media (max-width: 400px) {

  .wooecom_instant_order_form {
    padding: 16px !important;
    gap: 8px;
  }

  .wooecom_form_header_text {
    font-size: 11px;
  }

  .wooecom_form_header_icon {
    font-size: 14px;
  }

  .wooecom_cart_item_thumb_wrap {
    width: 32px;
    height: 32px;
  }

  .wooecom_cart_item_thumb {
    width: 32px;
    height: 32px;
  }

  .wooecom_cart_item_name {
    font-size: 11px;
  }

  .wooecom_cart_item_price {
    font-size: 11px;
  }

  .wooecom_popup_modal {
    max-height: 80vh;
    padding: 8px 14px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .wooecom_checkout {
    padding: 13px 12px;
    font-size: 14px;
  }

  .wooecom_add_to_cart_btn,
  .wooecom_whatsapp_order_btn {
    padding: 12px 12px;
    font-size: 14px;
  }

  .wooecom_sticky_footer {
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .wooecom_buy_now {
    padding: 12px;
    font-size: 14px;
  }

  .wooecom_footer_icons i {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .wooecom_cta_trigger_btn {
    padding: 13px 14px;
    font-size: 14px;
  }

  .wooecom_offer_label {
    font-size: 12px;
  }

  .wooecom_offer_total {
    font-size: 13px;
  }

  .wooecom_qty_offer_card {
    padding: 10px 12px;
  }
}

/* ============================================
   Touch devices — disable hover lift effects
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .wooecom_checkout:hover,
  .wooecom_add_to_cart_btn:hover,
  .wooecom_whatsapp_order_btn:hover,
  .wooecom_cta_trigger_btn:hover,
  .wooecom_buy_now:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .wooecom_checkout:active,
  .wooecom_add_to_cart_btn:active,
  .wooecom_whatsapp_order_btn:active,
  .wooecom_cta_trigger_btn:active,
  .wooecom_buy_now:active {
    transform: scale(0.98) !important;
    opacity: 0.9;
  }

  .wooecom_popup_modal {
    -webkit-overflow-scrolling: touch;
  }

  .wooecom_qty_offer_card:hover {
    border-color: #e5e7eb;
  }

  .wooecom_field_input_row > input,
  .wooecom_field_input_row > select,
  .wooecom_field_input_row > textarea,
  .wooecom_instant_order_form > input,
  .wooecom_instant_order_form > select,
  .wooecom_instant_order_form > textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .wooecom_qty_offer_card:active {
    transform: scale(0.99);
    opacity: 0.9;
  }
}

@keyframes wooecom_btn_pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
.wooecom_btn_success {
  animation: wooecom_btn_pulse 0.5s ease !important;
  background: #059669 !important;
  color: #fff !important;
  transition: background 0.3s ease !important;
}

/* ============================================
   Accessibility — Reduce Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wooecom_popup_modal {
    -webkit-animation: none !important;
    animation: none !important;
  }
}

/* ============================================
   Desktop Breakpoint (>= 1024px) — visual polish only, always 1 column
   ============================================ */
@media (min-width: 1024px) {

  .wooecom_instant_order_form {
    padding: 24px 28px !important;
    gap: 12px;
    border-radius: 16px;
  }

  /* Inline mode: form sits below product, full-width — always single column */
  .wooecom_instant_order {
    max-width: 760px;
    margin: 24px auto 0;
  }

  /* All fields full width — single column regardless of form width */
  .wooecom_instant_order_form > .wooecom_field_row {
    width: 100% !important;
  }

  /* Popup overrides (popup is always inside the column) */
  .wooecom_popup_form_container .wooecom_instant_order {
    max-width: none;
    margin: 0;
  }

  /* Popup desktop: 2-column field layout */
  .wooecom_popup_form_container .wooecom_instant_order_form {
    gap: 10px 12px;
  }
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_field_row {
    width: calc(50% - 6px) !important;
  }
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_field_row_full,
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_consent_row,
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_notice,
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_shipping_prices_container,
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_actions_group,
  .wooecom_popup_form_container .wooecom_instant_order_form > .wooecom_form_header,
  .wooecom_popup_form_container .wooecom_popup_order_summary {
    width: 100% !important;
  }

  /* Actions: quantity + button side by side on desktop (760px form is wide enough) */
  .wooecom_actions_primary {
    flex-direction: row;
    align-items: stretch;
  }

  .wooecom_actions_primary .wooecom_quantity {
    flex: 0 0 140px;
    max-width: 140px;
    width: 140px;
  }

  .wooecom_actions_primary .wooecom_checkout {
    flex: 1;
    width: auto;
  }
}

/* ============================================
   Tablet Breakpoint (768px to 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .wooecom_popup_modal {
    max-width: 95%;
    max-height: 90vh;
  }

  .wooecom_tpl_vertical .wooecom_qty_offer_card {
    flex: 1 1 calc(50% - 5px);
  }
}

/* ============================================
   Extra Small Phone (< 380px)
   ============================================ */
@media (max-width: 380px) {
  .wooecom_tpl_vertical .wooecom_qty_offer_card {
    flex: 1 1 100%;
  }

  .wooecom_qty_offer_card {
    padding: 10px 12px;
  }

  .wooecom_offer_label {
    font-size: 12px;
  }

  .wooecom_offer_total {
    font-size: 12px;
  }
}