/* LaVie Checkout Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;600&display=swap');
/* Variables */
:root { 
  --lavie-primary:#1882B1; 
  --lavie-primary-dark:#0E78A7; 
  --lavie-text:#063043; 
  --lavie-muted:rgba(6,48,67,0.6); 
  --lavie-bg:#F6F9FF; 
  --lavie-border:#C9E1EB; 
}
body.woocommerce-checkout .lavie-login-pill svg {
  display: inline-block !important;
  flex: 0 0 auto;
}

/* Reset helpers */
body.woocommerce-checkout * { box-sizing: border-box; }
body.woocommerce-checkout a { text-decoration: none; }

/* Prevent horizontal scroll */
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100vw !important;
}
body.woocommerce-checkout {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
}

/* Page wrap */
body.woocommerce-checkout .lavie-checkout-wrap { 
  width: 100%; 
  max-width: 100vw;
  padding: 48px 80px 80px; 
  box-sizing: border-box;
  overflow-x: hidden;
}
body.woocommerce-checkout .lavie-co-container { 
  max-width: 1280px; 
  width: 100%;
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 24px; 
  box-sizing: border-box;
}

/* Title */
body.woocommerce-checkout .lavie-co-title { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 48px; 
  line-height: 1; 
  color: var(--lavie-muted); 
  text-align: center; 
}
body.woocommerce-checkout .lavie-title-accent {
  color: var(--lavie-text);
}

/* Two columns */
body.woocommerce-checkout .lavie-co-inner { 
  width: 100%; 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px); 
  gap: 48px; 
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Left */
body.woocommerce-checkout .lavie-co-left { 
  padding: 0 64px;
  min-width: 0;
  box-sizing: border-box;
}

/* Login pill */
body.woocommerce-checkout .lavie-login-pill { 
  display: flex; 
  align-items: center; 
  justify-content: center;
  flex-wrap: nowrap;
  gap: 16px; 
  padding: 32px 40px; 
  background: var(--lavie-bg); 
  border: 1px solid #D7E8EF; 
  border-radius: 70px; 
  color: var(--lavie-primary-dark); 
  width: 100%;
  max-width: 652px;
  min-height: 88px;
  margin: 0 auto 24px; 
}
body.woocommerce-checkout .lavie-login-pill .lavie-login-text { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 24px; 
  line-height: 24px; 
  color: var(--lavie-primary-dark); 
  white-space: normal;
  word-wrap: break-word;
}
body.woocommerce-checkout .lavie-login-pill .showlogin { 
  color: var(--lavie-primary-dark); 
}

/* Section heading */
body.woocommerce-checkout .lavie-section-title { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 40px; 
  line-height: 1; 
  color: var(--lavie-text); 
  margin: 24px 0; 
}

/* Inputs */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce-account-fields .form-row,
body.woocommerce-checkout .woocommerce-additional-fields .form-row { 
  margin: 0 0 20px 0; 
}

/* Fallback: force spacing regardless of other theme/plugin rules */
body.woocommerce-checkout .form-row,
body.woocommerce-checkout p.form-row,
body.woocommerce-checkout p.form-row-first,
body.woocommerce-checkout p.form-row-last {
  margin-bottom: 20px !important;
}
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper label,
body.woocommerce-checkout form.checkout .form-row label { 
  display: block; 
  padding: 0 24px; 
  font-family: Nunito, sans-serif !important; 
  font-weight: 600 !important; 
  font-size: 20px !important; 
  line-height: 20px !important; 
  color: var(--lavie-text) !important; 
  margin-bottom: 8px; 
}
body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-container .select2-selection--single,
body.woocommerce-checkout form.checkout .form-row .woocommerce-input-wrapper .input-text,
body.woocommerce-checkout form.checkout .form-row select,
body.woocommerce-checkout form.checkout .country_to_state { 
  width: 100% !important; 
  height: 64px !important; 
  min-height: 64px !important; 
  padding: 20px 24px !important; 
  background: var(--lavie-bg) !important; 
  border: 1px solid var(--lavie-border) !important; 
  border-radius: 70px !important; 
  font-family: Nunito, sans-serif !important; 
  font-weight: 600 !important; 
  font-size: 20px !important; 
  color: var(--lavie-muted) !important; 
}
body.woocommerce-checkout textarea { 
  width: 100%; 
  min-height: 140px; 
  padding: 20px 24px; 
  background: var(--lavie-bg); 
  border: 1px solid var(--lavie-border); 
  border-radius: 20px; 
  font-family: Nunito, sans-serif; 
  font-weight: 600; 
  font-size: 20px; 
  color: var(--lavie-muted); 
}
/* Select2 harmonization */
body.woocommerce-checkout .select2-container--default .select2-selection--single { 
  height: 64px !important; 
  border: 1px solid var(--lavie-border) !important; 
  border-radius: 70px !important; 
  background: var(--lavie-bg) !important; 
  padding: 0 48px 0 24px !important; 
  display: flex !important; 
  align-items: center !important; 
  position: relative;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { 
  display: block; 
  line-height: 0.5rem !important; 
  padding: 0.5rem !important; 
  margin: 0; 
  font-family: Nunito, sans-serif; 
  font-weight: 600; 
  font-size: 20px; 
  color: var(--lavie-text); 
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
  line-height: 20px !important;
  font-size: 20px;
  white-space: nowrap;
}
/* Reinforce against global Select2 defaults loading late */
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0.5rem !important;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { 
  position: absolute; 
  right: 16px; 
  top: 50%; 
  transform: translateY(-50%); 
  height: 24px; 
  width: 24px; 
}

/* Right panel */
body.woocommerce-checkout .lavie-co-right { 
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}
body.woocommerce-checkout .lavie-co-summary { 
  background: linear-gradient(81.46deg, #DBE9F1 0%, rgba(219,233,241,0.2) 100%); 
  border-radius: 32px; 
  overflow: hidden; 
  padding-bottom: 16px; 
}
/* Remove any blue borders/outline from summary card and inner content */
body.woocommerce-checkout .lavie-co-summary,
body.woocommerce-checkout .lavie-co-summary #order_review,
body.woocommerce-checkout .lavie-co-summary .shop_table {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Force remove Elementor/Theme border on order review container */
body.woocommerce-checkout form.checkout #order_review,
body.woocommerce-checkout form.woocommerce-checkout #order_review,
form #order_review {
  border: 0 !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}
body.woocommerce-checkout #order_review_heading { 
  margin: 0; 
  padding: 24px; 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 24px; 
  line-height: 1; 
  color: var(--lavie-text); 
}

/* Your order card */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table { 
  width: calc(100% - 48px); 
  margin: 0 24px 16px; 
  border: 0; 
  background: #fff; 
  border-radius: 24px; 
  padding: 24px; 
  display: block; 
}
/* Order review items as flex rows */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 10px; 
  padding: 0; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item + tr.cart_item { 
  border-top: 1px solid var(--lavie-border); 
  padding-top: 12px; 
}
/* Product cell */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
/* Remove extra details to keep single line */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name .wc-item-meta,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name > span { 
  display: none !important; 
}
/* Quantity keeps weight */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name .product-quantity { 
  font-weight: 700; 
}
/* Price cell */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-total { 
  text-align: right; 
  white-space: nowrap; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-total .amount { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-muted); 
}
/* Footer (subtotal) */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  border-top: 1px solid var(--lavie-border); 
  padding-top: 12px; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 10px; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td { 
  padding: 0; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal th { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal td .amount { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
/* Hide total row, shipping row and tax note in table (CTA shows total, shipping shown separately) */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .order-total,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-totals,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .includes_tax { 
  display: none !important; 
}
/* Order review items as flex rows */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 10px; 
  padding: 0; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tbody tr.cart_item + tr.cart_item { 
  border-top: 1px solid var(--lavie-border); 
  padding-top: 12px; 
}
/* Product cell */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
/* Remove extra details to keep single line */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name dl.variation,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name .wc-item-meta,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name > span { 
  display: none !important; 
}
/* Quantity keeps weight */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name .product-quantity { 
  font-weight: 700; 
}
/* Price cell */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-total { 
  text-align: right; 
  white-space: nowrap; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-total .amount { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-muted); 
}
/* Footer (subtotal) */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  border-top: 1px solid var(--lavie-border); 
  padding-top: 12px; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot tr { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 10px; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td { 
  padding: 0; 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal th { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .cart-subtotal td .amount { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
/* Hide total row, shipping row and tax note in table (CTA shows total, shipping shown separately) */
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .order-total,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .woocommerce-shipping-totals,
body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot .includes_tax { 
  display: none !important; 
}
body.woocommerce-checkout .shop_table thead { display: none; }
body.woocommerce-checkout .shop_table td, 
body.woocommerce-checkout .shop_table th { 
  border: 0; 
  padding: 8px 0; 
}
body.woocommerce-checkout .lavie-order-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 10px; 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 16px; 
  line-height: 1; 
  color: var(--lavie-text); 
}
body.woocommerce-checkout .lavie-divider { 
  height: 1px; 
  background: var(--lavie-border); 
  margin: 12px 0; 
}
body.woocommerce-checkout .lavie-order-subtotal { 
  color: var(--lavie-text); 
}
body.woocommerce-checkout .lavie-order-price-muted { 
  color: var(--lavie-muted); 
}

/* Shipping methods - moved after order table */
body.woocommerce-checkout ul.woocommerce-shipping-methods { 
  position: relative; 
  list-style: none; 
  width: 100%;
  margin: 24px 0 16px; 
  padding: 0 24px; 
  box-sizing: border-box;
}

body.woocommerce-checkout ul#shipping_method,
body.woocommerce-checkout #shipping_method {
  position: relative;
  list-style: none;
  width: 100%;
  margin: 24px 0 16px;
  padding: 0 24px;
  box-sizing: border-box;
}
body.woocommerce-checkout ul.woocommerce-shipping-methods:before { 
  content: "Options de livraison"; 
  display: block; 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 24px; 
  line-height: 1; 
  color: var(--lavie-text); 
  margin: 0 0 20px 0; 
}
body.woocommerce-checkout ul.woocommerce-shipping-methods li { 
  display: flex !important; 
  flex-wrap: wrap !important;
  align-items: flex-start; 
  justify-content: flex-start; 
  gap: 12px; 
  background: transparent; 
  border-radius: 0; 
  padding: 16px 0; 
  margin-bottom: 0; 
  border-bottom: 1px solid rgba(201, 225, 235, 0.3);
}

body.woocommerce-checkout ul#shipping_method li,
body.woocommerce-checkout #shipping_method li {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px;
  width: 100% !important;
}

body.woocommerce-checkout ul.woocommerce-shipping-methods li .sc-delivery-method-mount-point {
  width: 100% !important;
  margin-top: 15px !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 15px !important;
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-shipping-option,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-shipping-option,
body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker,
body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker-overlay,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker-overlay,
body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-list-container,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-list-container,
body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-map-container,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-map-container {
  width: 100% !important;
  max-width: 100% !important;
}

body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-list-container,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-list-container {
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 24px !important;
}

body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-shipping-option,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-shipping-option,
body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker-overlay,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker-overlay {
  border-radius: 24px !important;
}

body.woocommerce-checkout ul#shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker-overlay,
body.woocommerce-checkout #shipping_method li .sc-delivery-method-mount-point .sc-service-point-picker-overlay {
  overflow: hidden !important;
}

body.woocommerce-checkout .sc-service-point-map-button,
body.woocommerce-checkout .sc-service-point-map-button .sc-globe-icon,
body.woocommerce-checkout .sc-service-point-map-button svg,
body.woocommerce-checkout .sc-service-point-map-button svg path {
  color: var(--lavie-text) !important;
  fill: currentColor !important;
}

body.woocommerce-checkout .sc-button,
body.woocommerce-checkout .sc-button--secondary,
body.woocommerce-checkout .sc-select-service-point-button {
  background: #fff !important;
  border: 1px solid var(--lavie-border) !important;
  color: var(--lavie-text) !important;
  border-radius: 20px !important;
  padding: 12px 20px !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

body.woocommerce-checkout .sc-button:hover,
body.woocommerce-checkout .sc-button--secondary:hover,
body.woocommerce-checkout .sc-select-service-point-button:hover {
  background: var(--lavie-bg) !important;
  border-color: var(--lavie-border) !important;
}

body.woocommerce-checkout .sc-button svg,
body.woocommerce-checkout .sc-button--secondary svg,
body.woocommerce-checkout .sc-select-service-point-button svg {
  color: var(--lavie-text) !important;
  fill: currentColor !important;
}

body.woocommerce-checkout .sc-button .sc-icon,
body.woocommerce-checkout .sc-button--secondary .sc-icon,
body.woocommerce-checkout .sc-select-service-point-button .sc-icon {
  color: var(--lavie-text) !important;
}

body.woocommerce-checkout .sc-button__label,
body.woocommerce-checkout .sc-select-service-point-button__label {
  color: var(--lavie-text) !important;
}

body.woocommerce-checkout ul.woocommerce-shipping-methods li:last-child {
  border-bottom: none;
}
body.woocommerce-checkout ul.woocommerce-shipping-methods input[type="radio"] { 
  width: 24px; 
  height: 24px; 
  accent-color: var(--lavie-primary);
  flex-shrink: 0;
  margin: 2px 0 0 0;
}
body.woocommerce-checkout ul.woocommerce-shipping-methods label { 
  font-family: Nunito, sans-serif; 
  font-weight: 700; 
  font-size: 18px; 
  line-height: 1.4; 
  color: var(--lavie-text); 
  display: block; 
  flex: 1 !important;
  min-width: 0 !important;
  margin: 0; 
  padding: 0; 
  cursor: pointer; 
}
/* Hide shipping method descriptions */
body.woocommerce-checkout ul.woocommerce-shipping-methods .woocommerce-shipping-method-description,
body.woocommerce-checkout ul.woocommerce-shipping-methods .sc-delivery-method-description,
body.woocommerce-checkout ul.woocommerce-shipping-methods label .description {
  display: none !important;
}

/* Payment section */
body.woocommerce-checkout #payment.woocommerce-checkout-payment { 
  background: transparent; 
  border-radius: 24px; 
  padding: 24px; 
  margin: 0 24px 8px; 
}
body.woocommerce-checkout .lavie-pay-title { 
  font-family: Nunito, sans-serif; font-weight: 700; font-size: 24px; color: var(--lavie-text); margin-bottom: 16px; 
}
body.woocommerce-checkout ul.wc_payment_methods { 
  padding: 0; margin: 0 0 16px; list-style: none; display: flex; flex-direction: column; gap: 8px; 
}
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method { 
  background: #fff; border-radius: 24px; padding: 16px 24px; 
}
body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method .payment_box { 
  padding: 8px 0 0 40px; 
  font-family: Nunito, sans-serif; font-weight: 700; font-size: 14px; color: var(--lavie-text); 
}
body.woocommerce-checkout ul.wc_payment_methods input.input-radio { width: 24px; height: 24px; accent-color: var(--lavie-primary); }
body.woocommerce-checkout ul.wc_payment_methods label { font-family: Nunito, sans-serif; font-weight: 700; font-size: 20px; color: var(--lavie-text); }

/* CTA - Exact styles from Figma, no hover */
body.woocommerce-checkout .lavie-co-cta {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 23px 40px;
  gap: 16px;
  background: #1882B1;
  border-radius: 70px;
  cursor: pointer;
  width: 100%;
}
/* Price block - from Figma */
body.woocommerce-checkout .lavie-cta-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 4px;
  width: 126px;
  flex: none;
  order: 0;
  flex-grow: 0;
  pointer-events: none;
}
body.woocommerce-checkout .lavie-cta-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  color: #FFFFFF;
  flex: none;
  order: 0;
  flex-grow: 0;
}
body.woocommerce-checkout .lavie-cta-tva {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  color: rgba(255, 255, 255, 0.6);
  flex: none;
  order: 1;
  flex-grow: 0;
}
/* Button - from Figma: flex: 1, text-align: center, no hover */
body.woocommerce-checkout .lavie-co-cta #place_order.button,
body.woocommerce-checkout .lavie-co-cta #place_order.button.alt {
  flex: 1 !important;
  order: 2 !important;
  flex-grow: 1 !important;
  width: 230px !important;
  height: 24px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Nunito', sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 24px !important;
  text-align: center !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
  /* Move text up to align with price */
  transform: translateY(-1px) !important;
}
body.woocommerce-checkout .lavie-co-cta #place_order.button:hover {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
}
/* Price block - from Figma */
body.woocommerce-checkout .lavie-cta-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  gap: 4px;
  width: 126px;
  flex: none;
  order: 0;
  flex-grow: 0;
  pointer-events: none;
}
body.woocommerce-checkout .lavie-cta-price {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  color: #FFFFFF;
  flex: none;
  order: 0;
  flex-grow: 0;
}
body.woocommerce-checkout .lavie-cta-tva {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  color: rgba(255, 255, 255, 0.6);
  flex: none;
  order: 1;
  flex-grow: 0;
}
/* Button - from Figma: flex: 1, text-align: center */
body.woocommerce-checkout .lavie-co-cta #place_order.button,
body.woocommerce-checkout .lavie-co-cta #place_order.button.alt {
  flex: 1 !important;
  order: 2 !important;
  flex-grow: 1 !important;
  width: 230px !important;
  height: 24px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Nunito', sans-serif !important;
  font-style: normal !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 24px !important;
  text-align: center !important;
  color: #FFFFFF !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: auto !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
}
body.woocommerce-checkout .lavie-co-cta #place_order.button:hover {
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
}

/* Стиль для кнопки оформления заказа вне sticky footer */
body.woocommerce-checkout .place-order #place_order.button,
body.woocommerce-checkout #payment #place_order.button,
.woocommerce-checkout #place_order.button.alt {
  background: var(--lavie-primary, #1882B1) !important;
  border: 2px solid var(--lavie-primary, #1882B1) !important;
  color: #fff !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  min-height: 56px !important;
  padding: 12px 32px 16px !important;
  border-radius: 70px !important;
  width: 100% !important;
  max-width: 400px !important;
  margin: 16px auto 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 12px rgba(24, 130, 177, 0.3) !important;
  cursor: pointer !important;
  transition: none !important;
}
/* No hover effect */
body.woocommerce-checkout .place-order #place_order.button:hover,
body.woocommerce-checkout #payment #place_order.button:hover,
.woocommerce-checkout #place_order.button.alt:hover {
  background: var(--lavie-primary, #1882B1) !important;
  border-color: var(--lavie-primary, #1882B1) !important;
  box-shadow: 0 4px 12px rgba(24, 130, 177, 0.3) !important;
  opacity: 1 !important;
  transform: none !important;
}
body.woocommerce-checkout .place-order #place_order.button:disabled,
body.woocommerce-checkout #payment #place_order.button:disabled,
.woocommerce-checkout #place_order.button.alt:disabled {
  background: #ccc !important;
  border-color: #ccc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
body.woocommerce-checkout .place-order { margin: 0; }

/* Terms and privacy note */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-top: 8px;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text {
  font-family: Nunito, sans-serif; font-weight: 700; font-size: 14px; color: var(--lavie-muted);
}

/* TERMS CHECKBOX FIX - Force visible circle checkbox */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row.validate-required {
  position: relative;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  position: relative !important;
}
/* Hide native checkbox but keep it clickable */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper #terms {
  position: absolute !important;
  opacity: 0 !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  left: 0 !important;
  top: 0 !important;
}
/* Create custom visible checkbox */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper #terms + .woocommerce-terms-and-conditions-checkbox-text::before,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox + span::before {
  content: '' !important;
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  background: #FFFFFF !important;
  border: 2px solid #C9E1EB !important;
  border-radius: 50% !important;
  margin-right: 12px !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
  top: -2px !important;
}
/* Checked state */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper #terms:checked + .woocommerce-terms-and-conditions-checkbox-text::before,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox:checked + span::before {
  background: #1882B1 !important;
  border-color: #1882B1 !important;
}
/* Checkmark */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper #terms:checked + .woocommerce-terms-and-conditions-checkbox-text::after,
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox:checked + span::after {
  content: '' !important;
  position: absolute !important;
  left: 7px !important;
  top: 7px !important;
  width: 10px !important;
  height: 7px !important;
  border-left: 2px solid white !important;
  border-bottom: 2px solid white !important;
  transform: rotate(-45deg) !important;
  box-sizing: border-box !important;
}
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
  position: relative !important;
}

/* Remove duplicated native heading inside billing section */
body.woocommerce-checkout .woocommerce-billing-fields > h3 { display: none; }

/* Divider below login pill */
body.woocommerce-checkout .lavie-co-divider {
  width: 100%;
  max-width: 652px;
  height: 0;
  border-top: 1px solid var(--lavie-border);
  margin: 0 auto 24px;
}

/* Responsive */
@media (max-width: 1280px) {
  body.woocommerce-checkout .lavie-checkout-wrap { 
    padding: 48px 40px 80px; 
  }
  body.woocommerce-checkout .lavie-co-left { 
    padding: 0 32px; 
  }
}
@media (max-width: 1100px) {
  body.woocommerce-checkout .lavie-co-inner { grid-template-columns: 1fr; gap: 32px; }
  body.woocommerce-checkout .lavie-co-left { padding: 0; }
}
@media (max-width: 720px) {
  /* Prevent horizontal scroll on mobile */
  html,
  body,
  body.woocommerce-checkout,
  body.woocommerce-checkout .woocommerce,
  body.woocommerce-checkout .lavie-checkout-wrap,
  body.woocommerce-checkout .lavie-co-container,
  body.woocommerce-checkout .lavie-co-inner,
  body.woocommerce-checkout .lavie-co-left,
  body.woocommerce-checkout .lavie-co-right,
  body.woocommerce-checkout .lavie-co-summary {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Remove problematic left padding */
  body.woocommerce-checkout .lavie-co-left {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Force all fixed-width elements to be responsive */
  body.woocommerce-checkout .lavie-login-pill,
  body.woocommerce-checkout #ship-to-different-address,
  body.woocommerce-checkout .woocommerce-account-fields,
  body.woocommerce-checkout #order_comments,
  body.woocommerce-checkout .lavie-co-divider {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Ensure form rows don't overflow */
  body.woocommerce-checkout .form-row,
  body.woocommerce-checkout .woocommerce-input-wrapper,
  body.woocommerce-checkout .input-text,
  body.woocommerce-checkout select,
  body.woocommerce-checkout textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix dividers width on mobile */
  body.woocommerce-checkout #ship-to-different-address::before,
  body.woocommerce-checkout #ship-to-different-address::after {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  body.woocommerce-checkout .lavie-checkout-wrap { 
    padding: 32px 0 40px !important; 
    width: 100% !important;
    max-width: 100vw !important;
  }
  body.woocommerce-checkout .lavie-co-title { 
    font-size: 36px; 
    padding: 0 16px;
  }
  body.woocommerce-checkout .lavie-section-title { 
    font-size: 28px;
    padding: 0 16px;
  }
  body.woocommerce-checkout .lavie-co-container {
    padding: 0 16px;
  }
  body.woocommerce-checkout .lavie-login-pill { 
    padding: 16px 20px; 
    margin: 0 16px 24px;
    min-height: auto;
  }
  body.woocommerce-checkout .lavie-login-pill .lavie-login-text { 
    font-size: 16px; 
    white-space: normal;
    line-height: 1.4;
  }
  body.woocommerce-checkout .lavie-login-pill svg {
    width: 20px;
    height: 20px;
  }
  body.woocommerce-checkout .input-text, body.woocommerce-checkout select, body.woocommerce-checkout .select2-container .select2-selection--single { height: 56px; min-height: 56px; border-radius: 999px; font-size: 18px; }
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row,
  body.woocommerce-checkout .woocommerce-account-fields .form-row,
  body.woocommerce-checkout .woocommerce-additional-fields .form-row { 
    margin-bottom: 20px; 
  }
  body.woocommerce-checkout .form-row,
  body.woocommerce-checkout p.form-row,
  body.woocommerce-checkout p.form-row-first,
  body.woocommerce-checkout p.form-row-last { margin-bottom: 20px !important; }
  body.woocommerce-checkout .select2-container--default .select2-selection--single { height: 56px; }
  body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 20px !important; font-size: 18px; }
  body.woocommerce-checkout #order_review_heading { 
    padding: 20px 16px; 
    font-size: 20px;
  }
  body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    padding: 16px;
    border-radius: 16px;
  }
  body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-name,
  body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot th,
  body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table td.product-total .amount,
  body.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table tfoot td .amount {
    font-size: 14px;
  }
  body.woocommerce-checkout .lavie-order-card { margin: 0 16px 12px; padding: 16px; }
  body.woocommerce-checkout ul.woocommerce-shipping-methods { 
    width: 100%; 
    margin: 20px 0 16px; 
    padding: 0 16px; 
  }
  body.woocommerce-checkout ul.woocommerce-shipping-methods:before {
    font-size: 20px;
    margin-bottom: 16px;
  }
  body.woocommerce-checkout ul.woocommerce-shipping-methods label {
    font-size: 16px;
  }
  body.woocommerce-checkout ul.woocommerce-shipping-methods input[type="radio"] {
    width: 20px;
    height: 20px;
  }
  body.woocommerce-checkout #payment.woocommerce-checkout-payment { 
    margin: 0 16px 16px;
    padding: 16px;
  }
  body.woocommerce-checkout ul.wc_payment_methods li.wc_payment_method {
    padding: 16px;
    border-radius: 16px;
  }
  body.woocommerce-checkout ul.wc_payment_methods label {
    font-size: 16px;
  }
  body.woocommerce-checkout ul.wc_payment_methods input.input-radio {
    width: 20px;
    height: 20px;
  }
  body.woocommerce-checkout .lavie-co-cta {
    padding: 4px 4px 4px 12px !important;
    margin: 0 12px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 4px !important;
    border-radius: 40px !important;
    min-height: auto !important;
    width: calc(100% - 16px) !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }
  body.woocommerce-checkout .lavie-cta-total {
    min-width: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    max-width: 45% !important;
  }
  body.woocommerce-checkout .lavie-cta-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-checkout .lavie-cta-tva {
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  body.woocommerce-checkout .lavie-co-cta #place_order.button,
  body.woocommerce-checkout .lavie-co-cta #place_order.button.alt,
  body.woocommerce-checkout .lavie-co-cta button#place_order {
    font-size: 10px !important;
    padding: 8px 16px 10px !important;
    height: auto !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    text-align: center !important;
    max-width: 50% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper label,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper label,
  body.woocommerce-checkout form.checkout .form-row label {
    font-size: 16px !important;
    padding: 0 16px;
  }
  body.woocommerce-checkout #ship-to-different-address { 
    padding-left: 16px;
    padding-right: 16px;
    margin: 20px 16px;
  }
  body.woocommerce-checkout .woocommerce-account-fields { 
    padding-left: 16px;
    padding-right: 16px;
    margin: 20px 16px;
  }
  body.woocommerce-checkout #ship-to-different-address label,
  body.woocommerce-checkout .woocommerce-account-fields label { 
    font-size: 16px;
  }
  body.woocommerce-checkout input[type="checkbox"],
  body.woocommerce-checkout .woocommerce-form__input-checkbox,
  body.woocommerce-checkout #terms,
  body.woocommerce-checkout .input-checkbox {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    background: #FFFFFF !important;
    border: 1px solid #C9E1EB !important;
  }
  body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper label[for="order_comments"] { 
    font-size: 16px; 
    padding: 0 16px; 
  }
  body.woocommerce-checkout #order_comments { 
    font-size: 16px; 
    padding: 16px; 
    max-width: 100%;
    margin: 0 16px;
  }
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    padding: 0 16px;
  }
  /* Mobile terms checkbox fix */
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper #terms + .woocommerce-terms-and-conditions-checkbox-text::before,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox + span::before {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin-right: 10px !important;
    top: -1px !important;
  }
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper #terms:checked + .woocommerce-terms-and-conditions-checkbox-text::after,
  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .woocommerce-form__input-checkbox:checked + span::after {
    left: 5px !important;
    top: 6px !important;
    width: 8px !important;
    height: 5px !important;
  }
  body.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 12px;
    padding: 0 16px;
  }
}
@media (max-width: 480px) {
  body.woocommerce-checkout .lavie-co-title { font-size: 28px; }
  body.woocommerce-checkout .lavie-section-title { font-size: 24px; }
  body.woocommerce-checkout .lavie-co-cta {
    padding: 5px 5px 5px 10px;
    margin: 0 10px;
    border-radius: 36px;
    gap: 6px;
    width: calc(100% - 20px);
  }
  body.woocommerce-checkout .lavie-cta-price {
    font-size: 12px;
  }
  body.woocommerce-checkout .lavie-cta-tva {
    font-size: 8px;
  }
  body.woocommerce-checkout .lavie-co-cta #place_order.button,
  body.woocommerce-checkout .lavie-co-cta #place_order.button.alt {
    font-size: 10px !important;
    padding: 8px 12px 10px !important;
    max-width: 55%;
  }
}
@media (max-width: 360px) {
  body.woocommerce-checkout .lavie-co-cta {
    padding: 4px 4px 4px 8px;
    margin: 0 8px;
    border-radius: 30px;
    gap: 4px;
    width: calc(100% - 16px);
  }
  body.woocommerce-checkout .lavie-cta-price {
    font-size: 11px;
  }
  body.woocommerce-checkout .lavie-cta-tva {
    font-size: 7px;
  }
  body.woocommerce-checkout .lavie-co-cta #place_order.button,
  body.woocommerce-checkout .lavie-co-cta #place_order.button.alt {
    font-size: 9px !important;
    padding: 6px 10px 8px !important;
    max-width: 60%;
  }
}

/* Select2 dropdown styling */
.select2-container--open .select2-dropdown,
span.select2-dropdown,
body.woocommerce-checkout .select2-dropdown,
body.woocommerce-checkout span.select2-dropdown,
body.woocommerce-checkout .select2-container--open .select2-dropdown {
  background: #fff !important;
  border: 1px solid var(--lavie-border) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}
body.woocommerce-checkout .select2-dropdown.select2-dropdown--below { margin-top: 8px; }
body.woocommerce-checkout .select2-dropdown.select2-dropdown--above { margin-bottom: 8px; }
body.woocommerce-checkout .select2-results > .select2-results__options {
  max-height: 320px !important;
  overflow-y: auto !important;
  padding: 8px !important;
}
body.woocommerce-checkout .select2-results__option {
  padding: 14px 20px !important;
  border-radius: 16px !important;
  margin: 4px 0 !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--lavie-text) !important;
}
body.woocommerce-checkout .select2-results__option--selectable.select2-results__option--highlighted[aria-selected] {
  background: var(--lavie-bg) !important;
  color: var(--lavie-text) !important;
}
body.woocommerce-checkout .select2-results__option[aria-selected="true"] {
  background: var(--lavie-bg) !important;
  color: var(--lavie-primary-dark) !important;
}
body.woocommerce-checkout .select2-results__option[aria-disabled="true"] {
  color: var(--lavie-muted) !important;
}
body.woocommerce-checkout .select2-search--dropdown { padding: 12px !important; }
body.woocommerce-checkout .select2-search--dropdown .select2-search__field {
  width: 100% !important;
  height: 56px !important;
  padding: 16px 20px !important;
  background: var(--lavie-bg) !important;
  border: 1px solid var(--lavie-border) !important;
  border-radius: 9999px !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--lavie-text) !important;
  outline: none !important;
}
@media (max-width: 720px) {
  body.woocommerce-checkout .select2-search--dropdown .select2-search__field { height: 48px !important; font-size: 16px !important; padding: 12px 16px !important; }
  body.woocommerce-checkout .select2-results__option { font-size: 16px !important; padding: 12px 16px !important; }
}

/* Custom checkboxes - FORCE VISIBLE */
body.woocommerce-checkout input[type="checkbox"],
body.woocommerce-checkout .woocommerce-form__input-checkbox,
body.woocommerce-checkout #terms,
body.woocommerce-checkout .input-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  background: #FFFFFF !important;
  border: 1px solid #C9E1EB !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  z-index: 1 !important;
}

/* Hide default Woo login/coupon info toggles on checkout */
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none !important;
}
body.woocommerce-checkout input[type="checkbox"]:checked,
body.woocommerce-checkout .woocommerce-form__input-checkbox:checked,
body.woocommerce-checkout #terms:checked,
body.woocommerce-checkout .input-checkbox:checked {
  background: #1882B1 !important;
  border: 1px solid #1882B1 !important;
}
body.woocommerce-checkout input[type="checkbox"]:checked::after,
body.woocommerce-checkout .woocommerce-form__input-checkbox:checked::after,
body.woocommerce-checkout #terms:checked::after,
body.woocommerce-checkout .input-checkbox:checked::after {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 12px !important;
  height: 9px !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L4.5 8L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Ship to different address checkbox */
body.woocommerce-checkout #ship-to-different-address {
  margin: 24px auto;
  padding-left: 24px;
  max-width: 652px;
  position: relative;
}
body.woocommerce-checkout #ship-to-different-address::before,
body.woocommerce-checkout #ship-to-different-address::after {
  content: "";
  display: block;
  width: 100%;
  height: 0;
  border-top: 1px solid #C9E1EB;
}
body.woocommerce-checkout #ship-to-different-address::before { margin-bottom: 16px; }
body.woocommerce-checkout #ship-to-different-address::after { margin-top: 16px; }
body.woocommerce-checkout #ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Nunito, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  color: var(--lavie-text);
  cursor: pointer;
  padding: 0;
  margin: 0;
  white-space: normal;
  word-wrap: break-word;
}
body.woocommerce-checkout #ship-to-different-address label input[type="checkbox"] {
  margin: 0;
}

/* Hide shipping address fields by default (keep heading visible) */
body.woocommerce-checkout .woocommerce-shipping-fields .shipping_address {
  display: none;
}
body.woocommerce-checkout .woocommerce-shipping-fields .shipping_address.active {
  display: block;
}

/* Create account checkbox */
body.woocommerce-checkout .woocommerce-account-fields {
  margin: 24px auto;
  padding-left: 24px;
  max-width: 652px;
  margin-left: auto;
  margin-right: auto;
}
body.woocommerce-checkout .woocommerce-account-fields label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Nunito, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  color: var(--lavie-text);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* Notes de commande label */
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper label[for="order_comments"] {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 20px;
  font-family: Nunito, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  color: #063043;
  padding: 0 24px;
  margin-bottom: 8px;
  white-space: normal;
  word-wrap: break-word;
}
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper label[for="order_comments"],
body.woocommerce-checkout #ship-to-different-address label {
  white-space: normal;
  word-wrap: break-word;
}

/* Notes de commande textarea */
body.woocommerce-checkout #order_comments {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 24px;
  width: 100%;
  max-width: 652px;
  height: 140px;
  min-height: 64px;
  background: #F6F9FF;
  border: 1px solid #C9E1EB !important;
  border-radius: 20px !important;
  font-family: Nunito, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  color: rgba(6, 48, 67, 0.6);
  resize: vertical;
  overflow-y: auto;
}
/* Hide scrollbar for Chrome, Safari and Opera */
body.woocommerce-checkout #order_comments::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
body.woocommerce-checkout #order_comments {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide default Woo login/coupon info toggles on checkout */
body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
  display: none !important;
}

/* Hard override against late Select2 defaults */
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 0.5rem !important;
  padding: 0.5rem !important;
}
body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 0.5rem !important;
}

/* Select2 dropdown styling (global with strong specificity) */
.select2-container--open .select2-dropdown,
span.select2-dropdown,
body.woocommerce-checkout .select2-dropdown,
body.woocommerce-checkout span.select2-dropdown,
body.woocommerce-checkout .select2-container--open .select2-dropdown {
  background: #fff !important;
  border: 1px solid var(--lavie-border) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}
.select2-dropdown.select2-dropdown--below { margin-top: 8px !important; }
.select2-dropdown.select2-dropdown--above { margin-bottom: 8px !important; }
.select2-results > .select2-results__options {
  max-height: 320px !important;
  overflow-y: auto !important;
  padding: 8px !important;
}
.select2-results__option {
  padding: 14px 20px !important;
  border-radius: 16px !important;
  margin: 4px 0 !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--lavie-text) !important;
}
.select2-results__option--selectable.select2-results__option--highlighted[aria-selected] {
  background: var(--lavie-bg) !important;
  color: var(--lavie-text) !important;
}
.select2-results__option[aria-selected="true"] {
  background: var(--lavie-bg) !important;
  color: var(--lavie-primary-dark) !important;
}
.select2-results__option[aria-disabled="true"] {
  color: var(--lavie-muted) !important;
}
.select2-search--dropdown { padding: 12px !important; }
.select2-search--dropdown .select2-search__field {
  width: 100% !important;
  height: 56px !important;
  padding: 16px 20px !important;
  background: var(--lavie-bg) !important;
  border: 1px solid var(--lavie-border) !important;
  border-radius: 9999px !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--lavie-text) !important;
  outline: none !important;
}
@media (max-width: 720px) {
  .select2-search--dropdown .select2-search__field { height: 48px !important; font-size: 16px !important; padding: 12px 16px !important; }
  .select2-results__option { font-size: 16px !important; padding: 12px 16px !important; }
}

/* Transparent backgrounds for zebra rows and hover */
table tbody>tr:nth-child(odd)>td,
table tbody>tr:nth-child(odd)>th {
  background-color: hsl(0deg 0% 100% / 0%) !important;
}
table tbody>tr:hover>td,
table tbody>tr:hover>th,
table tbody>tr:nth-child(odd):hover>td,
table tbody>tr:nth-child(odd):hover>th {
  background-color: hsl(0deg 0% 100% / 0%) !important;
}

/* Remove default tfoot border top in Woo tables */
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
  font-weight: 700 !important;
  border-top: 1px solid rgb(0 0 0 / 0%) !important;
}

/* Force transparent rows in Woo tables (override zebra + hover) */
.woocommerce table.shop_table tbody tr > td,
.woocommerce table.shop_table tbody tr > th,
.woocommerce-checkout table.shop_table tbody tr > td,
.woocommerce-checkout table.shop_table tbody tr > th {
  background: transparent !important;
  background-color: transparent !important;
}
.woocommerce table.shop_table tbody tr:nth-child(odd) > td,
.woocommerce table.shop_table tbody tr:nth-child(odd) > th,
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd) > td,
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd) > th {
  background: transparent !important;
  background-color: transparent !important;
}
.woocommerce table.shop_table tbody tr:hover > td,
.woocommerce table.shop_table tbody tr:hover > th,
.woocommerce-checkout table.shop_table tbody tr:hover > td,
.woocommerce-checkout table.shop_table tbody tr:hover > th {
  background: transparent !important;
  background-color: transparent !important;
}

/* Also clear row backgrounds on TR (Woo may set background on tr) */
.woocommerce table.shop_table tbody tr,
.woocommerce-checkout table.shop_table tbody tr,
.woocommerce table.shop_table tbody tr:nth-child(odd),
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd),
.woocommerce table.shop_table tbody tr:hover,
.woocommerce-checkout table.shop_table tbody tr:hover,
.woocommerce table.shop_table tbody tr:nth-child(odd):hover,
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd):hover {
  background: transparent !important;
  background-color: transparent !important;
}

/* Force transparent rows in Woo tables (override zebra + hover) */
.woocommerce table.shop_table tbody tr > td,
.woocommerce table.shop_table tbody tr > th,
.woocommerce-checkout table.shop_table tbody tr > td,
.woocommerce-checkout table.shop_table tbody tr > th {
  background: transparent !important;
  background-color: transparent !important;
}
.woocommerce table.shop_table tbody tr:nth-child(odd) > td,
.woocommerce table.shop_table tbody tr:nth-child(odd) > th,
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd) > td,
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd) > th {
  background: transparent !important;
  background-color: transparent !important;
}
.woocommerce table.shop_table tbody tr:hover > td,
.woocommerce table.shop_table tbody tr:hover > th,
.woocommerce-checkout table.shop_table tbody tr:hover > td,
.woocommerce-checkout table.shop_table tbody tr:hover > th {
  background: transparent !important;
  background-color: transparent !important;
}

/* Also clear row backgrounds on TR (Woo may set background on tr) */
.woocommerce table.shop_table tbody tr,
.woocommerce-checkout table.shop_table tbody tr,
.woocommerce table.shop_table tbody tr:nth-child(odd),
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd),
.woocommerce table.shop_table tbody tr:hover,
.woocommerce-checkout table.shop_table tbody tr:hover,
.woocommerce table.shop_table tbody tr:nth-child(odd):hover,
.woocommerce-checkout table.shop_table tbody tr:nth-child(odd):hover {
  background: transparent !important;
  background-color: transparent !important;
}

/* Transparent backgrounds for zebra rows and hover */
table tbody>tr:nth-child(odd)>td,
table tbody>tr:nth-child(odd)>th {
  background-color: hsl(0deg 0% 100% / 0%) !important;
}
table tbody>tr:hover>td,
table tbody>tr:hover>th,
table tbody>tr:nth-child(odd):hover>td,
table tbody>tr:nth-child(odd):hover>th {
  background-color: hsl(0deg 0% 100% / 0%) !important;
}

/* Remove default tfoot border top in Woo tables */
.woocommerce table.shop_table tfoot th {
  border-top: 0px solid rgba(0, 0, 0, .1) !important;
}

/* Stronger override: tfoot cells typography and transparent top border */
.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
  font-weight: 700 !important;
  border-top: 1px solid rgb(0 0 0 / 0%) !important;
}

/* Comment translated to English. */
body.woocommerce-checkout #lavie-wallet-payment-container {
  width: 100%;
  margin: 0 0 16px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 24px;
  display: block;
  box-sizing: border-box;
}

body.woocommerce-checkout #lavie-wallet-payment-container .lws-wvw-cart-wallet {
  margin: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: none !important;
}

/* Comment translated to English. */
body.woocommerce-checkout #lavie-wallet-payment-container h4:first-child {
  display: none;
}

/* Comment translated to English. */
@media (max-width: 720px) {
  body.woocommerce-checkout #lavie-wallet-payment-container {
    width: 100%;
    margin: 0 0 12px;
    padding: 0 16px;
    border-radius: 0;
  }
}

body.woocommerce-checkout #lavie-wallet-payment-container {
  box-sizing: border-box;
}

/* Comment translated to English. */
body.woocommerce-checkout #lavie-wallet-payment-container .lws_wvw_user_contribution,
body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-balance,
body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-input,
body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-buttons {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-balance {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--lavie-border) !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-balance-label {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--lavie-text);
  width: auto !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-balance-value {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--lavie-text);
  width: auto !important;
  text-align: right !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-use-label {
  display: block !important;
  font-family: Nunito, sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--lavie-muted);
  margin-bottom: 6px !important;
  width: 100% !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-line-input {
  width: 100% !important;
  display: block !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-input-amount {
  width: 100% !important;
  height: 48px !important;
  padding: 12px 16px !important;
  background: var(--lavie-bg) !important;
  border: 1px solid var(--lavie-border) !important;
  border-radius: 16px !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  color: var(--lavie-text) !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-max,
body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-apply {
  display: block !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  background: var(--lavie-primary) !important;
  border: 0 !important;
  border-radius: 20px !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-max {
  background: transparent !important;
  border: 2px solid var(--lavie-primary) !important;
  color: var(--lavie-primary) !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-max:hover,
body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-apply:hover {
  opacity: 0.9 !important;
}

body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-apply:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* Comment translated to English. */
@media (max-width: 720px) {
  body.woocommerce-checkout #lavie-wallet-payment-container .wvw-input-amount {
    height: 48px;
    font-size: 16px;
  }
  
  body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-max,
  body.woocommerce-checkout #lavie-wallet-payment-container .wvw-cart-apply {
    min-height: 44px;
    font-size: 14px;
  }
}

/* ========================================
   ORDER-PAY PAGE STYLES
   ======================================== */

/* Order pay page container */
body.woocommerce-order-pay {
  background: #fff;
}
body.woocommerce-order-pay .woocommerce {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
body.woocommerce-order-pay .woocommerce-notice {
  background: var(--lavie-bg, #F6F9FF);
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  color: var(--lavie-text, #063043);
}
body.woocommerce-order-pay .woocommerce-notice.woocommerce-notice--success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
body.woocommerce-order-pay .woocommerce-order-overview {
  background: var(--lavie-bg, #F6F9FF);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  list-style: none;
}
body.woocommerce-order-pay .woocommerce-order-overview li {
  font-family: Nunito, sans-serif;
  font-size: 14px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  margin-bottom: 8px;
}
body.woocommerce-order-pay .woocommerce-order-overview li strong {
  color: var(--lavie-text, #063043);
  font-weight: 700;
}
body.woocommerce-order-pay .woocommerce-order-overview__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--lavie-text, #063043);
  margin-bottom: 16px;
}

/* Payment methods on order-pay */
body.woocommerce-order-pay #payment.woocommerce-checkout-payment {
  background: var(--lavie-bg, #F6F9FF);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
}
body.woocommerce-order-pay ul.wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-order-pay ul.wc_payment_methods li.wc_payment_method {
  background: #fff;
  border: 2px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
body.woocommerce-order-pay ul.wc_payment_methods li.wc_payment_method:last-child {
  margin-bottom: 0;
}
body.woocommerce-order-pay ul.wc_payment_methods label {
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--lavie-text, #063043);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
body.woocommerce-order-pay ul.wc_payment_methods input.input-radio {
  width: 24px;
  height: 24px;
  accent-color: var(--lavie-primary, #1882B1);
}
body.woocommerce-order-pay .payment_box {
  margin-top: 16px;
  padding: 16px;
  background: var(--lavie-bg, #F6F9FF);
  border-radius: 12px;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
}
body.woocommerce-order-pay .payment_box p {
  margin: 0;
}

/* Place order button on order-pay page */
body.woocommerce-order-pay #place_order.button,
body.woocommerce-order-pay .button#place_order,
.woocommerce-order-pay #payment #place_order {
  background: var(--lavie-primary, #1882B1) !important;
  border: 2px solid var(--lavie-primary, #1882B1) !important;
  color: #fff !important;
  font-family: Nunito, sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  min-height: 56px !important;
  padding: 12px 32px !important;
  border-radius: 70px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 12px rgba(24, 130, 177, 0.3) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  margin-top: 24px !important;
}
body.woocommerce-order-pay #place_order.button:hover,
body.woocommerce-order-pay .button#place_order:hover,
.woocommerce-order-pay #payment #place_order:hover {
  background: var(--lavie-primary-dark, #0E78A7) !important;
  border-color: var(--lavie-primary-dark, #0E78A7) !important;
  box-shadow: 0 6px 16px rgba(24, 130, 177, 0.4) !important;
  transform: translateY(-1px) !important;
}
body.woocommerce-order-pay #place_order.button:disabled,
body.woocommerce-order-pay .button#place_order:disabled {
  background: #ccc !important;
  border-color: #ccc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Terms and conditions on order-pay */
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border: 2px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
}
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper label {
  font-family: Nunito, sans-serif;
  font-size: 14px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  accent-color: var(--lavie-primary, #1882B1);
  margin: 0;
  cursor: pointer;
}
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper a {
  color: var(--lavie-primary, #1882B1);
  text-decoration: underline;
}
body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper a:hover {
  color: var(--lavie-primary-dark, #0E78A7);
}

/* Form row styling */
body.woocommerce-order-pay .form-row {
  margin: 0;
  padding: 0;
}
body.woocommerce-order-pay .place-order {
  margin: 0;
}

/* Mobile adjustments for order-pay */
@media (max-width: 720px) {
  body.woocommerce-order-pay .woocommerce {
    margin: 20px auto;
    padding: 0 16px;
  }
  body.woocommerce-order-pay #payment.woocommerce-checkout-payment {
    padding: 20px;
    border-radius: 16px;
  }
  body.woocommerce-order-pay ul.wc_payment_methods li.wc_payment_method {
    padding: 16px;
  }
  body.woocommerce-order-pay #place_order.button,
  body.woocommerce-order-pay .button#place_order,
  .woocommerce-order-pay #payment #place_order {
    font-size: 16px !important;
    min-height: 52px !important;
    padding: 10px 24px !important;
  }
  body.woocommerce-order-pay .woocommerce-terms-and-conditions-wrapper {
    padding: 16px;
  }
}

/* ========================================
   ORDER-PAY TEMPLATE STYLES
   ======================================== */

/* Order info card */
.lavie-order-info-card {
  background: var(--lavie-bg, #F6F9FF);
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

/* Order-pay table styling - padding and rounded corners */
body.woocommerce-order-pay .shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0;
}
body.woocommerce-order-pay .shop_table thead {
  background: var(--lavie-bg, #F6F9FF);
}
body.woocommerce-order-pay .shop_table th,
body.woocommerce-order-pay .shop_table td {
  padding: 16px 20px;
  text-align: left;
  font-family: Nunito, sans-serif;
  font-size: 14px;
}
body.woocommerce-order-pay .shop_table thead th {
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-weight: 600;
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
}
body.woocommerce-order-pay .shop_table tbody td {
  color: var(--lavie-text, #063043);
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
}
body.woocommerce-order-pay .shop_table tbody tr:last-child td {
  border-bottom: none;
}
body.woocommerce-order-pay .shop_table tfoot th,
body.woocommerce-order-pay .shop_table tfoot td {
  padding: 12px 20px;
  border-top: 1px solid var(--lavie-border, #C9E1EB);
}
body.woocommerce-order-pay .shop_table tfoot .order-total th,
body.woocommerce-order-pay .shop_table tfoot .order-total td {
  font-weight: 700;
  font-size: 16px;
  color: var(--lavie-primary, #1882B1);
}

/* Payment section styling on order-pay */
body.woocommerce-order-pay #payment.woocommerce-checkout-payment {
  background: #fff;
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

/* Order-pay page specific table styling - mimic checkout review table */
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table {
  border-radius: 20px;
  border: 1px solid var(--lavie-border, #C9E1EB);
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table thead {
  display: none; /* Hide header like in checkout */
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody {
  display: flex;
  flex-direction: column;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item td.product-name {
  flex: 1;
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--lavie-text, #063043);
  border: none;
  padding: 0;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item td.product-quantity {
  display: none; /* Hide quantity column, show inline with name */
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item td.product-subtotal {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--lavie-text, #063043);
  text-align: right;
  border: none;
  padding: 0;
}

/* Hide wc-item-meta details */
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody .wc-item-meta {
  display: none !important;
}

/* Show quantity inline like checkout */
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody .product-quantity strong {
  font-weight: 700;
  color: var(--lavie-text, #063043);
}

/* Tfoot styling to match checkout */
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot {
  display: flex;
  flex-direction: column;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot tr {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  border: none;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot th,
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot td {
  border: none;
  padding: 0;
  font-family: Nunito, sans-serif;
  font-size: 14px;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot th {
  font-weight: 600;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot td {
  font-weight: 700;
  color: var(--lavie-text, #063043);
  text-align: right;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot .order-total th,
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot .order-total td {
  font-size: 18px;
  color: var(--lavie-primary, #1882B1);
  font-weight: 700;
}

body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot .order-total td small.includes_tax {
  display: block;
  font-size: 12px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-weight: 400;
  margin-top: 4px;
}

/* Hide payment method row in table - shown separately */
body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot tr:has(td:contains("Paiement")) {
  display: none;
}

/* Payment section with padding and rounded corners - ORDER PAY SPECIFIC */
.lavie-payment-section #payment {
  background: #fff;
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 24px;
  padding: 32px;
  margin-top: 16px;
}

/* Payment methods list on order-pay page - more space and rounded corners */
.lavie-payment-section .wc_payment_methods.payment_methods {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Individual payment method item - more rounded */
.lavie-payment-section .wc_payment_methods.payment_methods li.wc_payment_method {
  background: var(--lavie-bg, #F6F9FF);
  border: 2px solid var(--lavie-border, #C9E1EB);
  border-radius: 20px !important;
  padding: 24px !important;
  margin-bottom: 16px !important;
}

.lavie-payment-section .wc_payment_methods.payment_methods li.wc_payment_method:last-child {
  margin-bottom: 0 !important;
}
.lavie-order-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lavie-order-details-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
  font-family: Nunito, sans-serif;
  font-size: 14px;
}
.lavie-order-details-list li:last-child {
  border-bottom: none;
}
.lavie-order-details-list .label {
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-weight: 600;
}
.lavie-order-details-list .value {
  color: var(--lavie-text, #063043);
  font-weight: 700;
}
.lavie-order-details-list .value.price {
  color: var(--lavie-primary, #1882B1);
  font-size: 18px;
}

/* Payment section */
.lavie-payment-section {
  background: #fff;
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 24px;
  padding: 32px;
}
.lavie-payment-section .lavie-section-title {
  margin-bottom: 24px;
}

/* Order summary sidebar */
.lavie-order-summary {
  background: var(--lavie-bg, #F6F9FF);
  border-radius: 24px;
  padding: 32px;
}
.lavie-order-summary h3 {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--lavie-text, #063043);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
}
.lavie-order-summary .shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.lavie-order-summary .shop_table th,
.lavie-order-summary .shop_table td {
  padding: 12px 0;
  text-align: left;
  font-family: Nunito, sans-serif;
  font-size: 14px;
}
.lavie-order-summary .shop_table thead th {
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-weight: 600;
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
}
.lavie-order-summary .shop_table tbody td {
  color: var(--lavie-text, #063043);
  border-bottom: 1px solid var(--lavie-border, #C9E1EB);
}
.lavie-order-summary .shop_table tbody .product-name {
  font-weight: 600;
}
.lavie-order-summary .shop_table tbody .product-quantity {
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-weight: 700;
}
.lavie-order-summary .shop_table tfoot th,
.lavie-order-summary .shop_table tfoot td {
  padding: 8px 0;
  font-size: 14px;
}
.lavie-order-summary .shop_table tfoot th {
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-weight: 600;
}
.lavie-order-summary .shop_table tfoot td {
  color: var(--lavie-text, #063043);
  font-weight: 700;
  text-align: right;
}
.lavie-order-summary .shop_table .order-total th,
.lavie-order-summary .shop_table .order-total td {
  font-size: 18px;
  color: var(--lavie-primary, #1882B1);
  padding-top: 16px;
  border-top: 2px solid var(--lavie-border, #C9E1EB);
}

/* Order addresses */
.lavie-order-address {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--lavie-border, #C9E1EB);
}
.lavie-order-address h4 {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--lavie-text, #063043);
  margin: 0 0 12px 0;
}
.lavie-order-address address {
  font-family: Nunito, sans-serif;
  font-size: 14px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  font-style: normal;
  line-height: 1.6;
}
.lavie-order-address .phone {
  margin-top: 8px;
  color: var(--lavie-primary, #1882B1);
}

/* Pay CTA specific */
.lavie-pay-cta {
  background: var(--lavie-primary, #1882B1);
  border-radius: 70px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.lavie-pay-cta .lavie-cta-total {
  min-width: 126px;
}
.lavie-pay-cta .lavie-cta-price {
  font-family: Nunito, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  line-height: 1;
}
.lavie-pay-cta #place_order {
  background: #fff !important;
  border: 2px solid #fff !important;
  color: var(--lavie-primary, #1882B1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
  width: auto !important;
  flex: 1;
}
.lavie-pay-cta #place_order:hover {
  background: var(--lavie-bg, #F6F9FF) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Terms checkbox on order-pay */
.lavie-payment-section .form-row.terms {
  margin: 0 0 24px 0;
  padding: 20px;
  background: var(--lavie-bg, #F6F9FF);
  border: 1px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
}
.lavie-payment-section .form-row.terms label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
  cursor: pointer;
  line-height: 1.5;
}
.lavie-payment-section .form-row.terms input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  accent-color: var(--lavie-primary, #1882B1);
  margin: 0;
  cursor: pointer;
}
.lavie-payment-section .form-row.terms .required {
  color: #e2401c;
  margin-left: 4px;
}
.lavie-payment-section .form-row.terms a {
  color: var(--lavie-primary, #1882B1);
  text-decoration: underline;
}
.lavie-payment-section .form-row.terms a:hover {
  color: var(--lavie-primary-dark, #0E78A7);
}

/* Payment methods styling */
.lavie-payment-section ul.wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lavie-payment-section ul.wc_payment_methods li {
  background: var(--lavie-bg, #F6F9FF);
  border: 2px solid var(--lavie-border, #C9E1EB);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.lavie-payment-section ul.wc_payment_methods li:last-child {
  margin-bottom: 0;
}
.lavie-payment-section ul.wc_payment_methods label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Nunito, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--lavie-text, #063043);
  cursor: pointer;
}
.lavie-payment-section ul.wc_payment_methods input[type="radio"] {
  width: 24px;
  height: 24px;
  accent-color: var(--lavie-primary, #1882B1);
}
.lavie-payment-section .payment_box {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  font-family: Nunito, sans-serif;
  font-size: 14px;
  color: var(--lavie-muted, rgba(6,48,67,0.6));
}

/* Mobile adjustments for new order-pay template */
@media (max-width: 720px) {
  .lavie-order-pay-wrap .lavie-co-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lavie-order-pay-wrap .lavie-co-right {
    order: -1;
  }
  .lavie-order-info-card,
  .lavie-payment-section,
  .lavie-order-summary {
    padding: 20px;
    border-radius: 16px;
  }
  .lavie-pay-cta {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
  }
  .lavie-pay-cta #place_order {
    width: 100% !important;
  }
  .lavie-order-details-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  /* Mobile table adjustments for order-pay */
  body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  
  body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item td.product-name,
  body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tbody tr.order_item td.product-subtotal {
    width: 100%;
    text-align: left;
  }
  
  body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot tr {
    padding: 10px 16px;
  }
  
  body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot th,
  body.woocommerce-order-pay .lavie-order-pay-wrap .shop_table tfoot td {
    font-size: 13px;
  }
  
  /* Mobile payment section adjustments */
  .lavie-payment-section #payment {
    padding: 20px;
    border-radius: 16px;
  }
  
  .lavie-payment-section .wc_payment_methods.payment_methods li.wc_payment_method {
    padding: 16px !important;
    border-radius: 16px !important;
  }
}

/* ========================================
   MOBILE PLACE ORDER BUTTON - Custom Styles
   ======================================== */
@media (max-width: 720px) {
  body.woocommerce-checkout .place-order #place_order.button,
  body.woocommerce-checkout #payment #place_order.button,
  .woocommerce-checkout #place_order.button.alt {
    background: var(--lavie-primary, #1882B1) !important;
    color: #fff !important;
    font-family: Nunito, sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    min-height: 40px !important;
    margin: 16px 0px 12px -100px !important;
    border-radius: 70px !important;
    width: 70% !important;
    max-width: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: none !important;
  }
}
