/* =========================================================
   WOO CHECKOUT – MOBILE PADDING + TYPO
   ========================================================= */

@media (max-width: 767px) {
  /* Single source of truth: pad the whole form once */
  form.woocommerce-checkout {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* Zero out any individual padding that would double up */
  #customer_details,
  #order_review_heading,
  #order_review,
  .woocommerce-form-coupon-toggle {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .woocommerce-billing-fields { margin-bottom: 32px !important; }
  .woocommerce-additional-fields h3 { margin-top: 32px !important; }

  .woocommerce-billing-fields h3,
  .woocommerce-additional-fields h3,
  #order_review_heading {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .woocommerce-billing-fields label,
  .woocommerce-additional-fields label {
    font-size: 13px !important;
  }

  .woocommerce-billing-fields input,
  .woocommerce-additional-fields textarea {
    font-size: 18px !important;
  }
}

/* =========================================================
   CHECKOUT – RECEIPT CONTAINER
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table{
  border: 1px solid rgba(0,0,0,.35) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table thead{
  display:none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tr,
body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  border: 0 !important;
}

/* Item row – keep as table-row */
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item{
  display: table-row !important;
  padding: 0 !important;
}

/* Hide item subtotal column */
body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > td.product-total{
  display:none !important;
}

/* Product cell – full width since subtotal is hidden */
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name{
  display:table-cell !important;
  width: 100% !important;
  padding: 16px 0 0 0 !important;
  margin: 0 !important;
}

/* Hide product title line (we build header via ::before) */
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name > :not(dl.variation){
  display:none !important;
}

/* Remove plugin inner boxes */
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mpStyle,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mpStyle .dLayout_xs{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Hide "Booking Details :" dt */
body.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation dt{
  font-size: 0 !important;
  margin: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation dd{
  margin: 0 !important;
}

/* Kill empty <p></p> nodes that break spacing */
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails ul.cart_list li > p:empty{
  display:none !important;
}

/* =========================================================
   BOOKING DETAILS – 2-COL GRID (WORKS ONE-WAY + RETURN)
   ========================================================= */

body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-auto-flow: row !important;
  column-gap: 22px !important;
  row-gap: 14px !important;
  align-items: start !important;
}

/* Header: Transfer */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list::before{
  content: "Transfer" !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
}

/* Divider */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list::after{
  content:"" !important;
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  height: 1px !important;
  background: #ccc !important;
  display:block !important;
  margin-top: -6px !important;
}

/* Default item formatting */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li{
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide icon spans only */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li > span{
  display:none !important;
}

/* Typography */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li h6{
  margin: 0 0 6px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li p{
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

/* Hide ONLY these rows (stable by icon span) */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fas.fa-route),     /* Approx Distance */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fas.fa-car),       /* Transport Qty */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fas.fa-user-nurse) /* Driver */
{
  display: none !important;
}

/* Price pinned top-right (tag icon LI) */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fa.fa-tag){
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  text-align: right !important;
}

/* Hide label inside price item */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fa.fa-tag) h6{
  display:none !important;
}

/* Show only the amount */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fa.fa-tag) p{
  font-size: 0 !important;
  line-height: 1 !important;
}
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list li:has(> span.fa.fa-tag) p .woocommerce-Price-amount:last-of-type{
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* =========================================================
   EXTRA SERVICES (QTY | NAME | PRICE)
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > h5._mB_xs{
  margin: 26px 0 8px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > h5._mB_xs::after{
  content:"" !important;
  display:block !important;
  height: 1px !important;
  background: #ccc !important;
  margin-top: 6px !important;
}

/* Each extra block */
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list{
  list-style:none !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}

/* Remove Name/Quantity/Price labels */
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list h6{
  display:none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list p{
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list > li{
  margin: 0 !important;
  padding: 0 !important;
}

/* Reorder: Qty first, Name second, Price last */
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list > li:nth-child(2){
  order: 1 !important;
  white-space: nowrap !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list > li:nth-child(1){
  order: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list > li:nth-child(3){
  order: 3 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  text-align: right !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list > li:nth-child(2) p span::after{
  content: " x" !important;
}

/* Remove formula text but keep final amount */
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list li:nth-child(3) p > span{
  font-size: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:not(:first-of-type) ul.cart_list li:nth-child(3) p > span .woocommerce-Price-amount:last-of-type{
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline !important;
}

/* =========================================================
   TOTAL + DEPOSIT ROWS
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot{
  display:block !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot::before{
  content:"" !important;
  display:block !important;
  height: 20px !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal{
  display:none !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total{
  display:grid !important;
  grid-template-columns: 1fr auto !important;
  align-items:center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 0 10px !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td{
  font-size: 18px !important;
  font-weight: 800 !important;
  padding: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td{
  text-align:right !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-paid{
  display:block !important;
  padding: 8px 0 6px !important;
  text-align:center !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-paid th{ display:none !important; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-paid td{
  display:block !important;
  text-align:center !important;
  font-weight: 800 !important;
  font-size: 0 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-paid td::before{
  content: "Pay deposit today  " !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-paid td strong,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-paid td .woocommerce-Price-amount{
  font-size: 18px !important;
  font-weight: 800 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-remaining{
  display:block !important;
  padding: 0 0 16px !important;
  text-align:center !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-remaining th{ display:none !important; }
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-remaining td{
  display:block !important;
  text-align:center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-remaining td::before{
  content: "Pay the rest at the pick up  " !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* =========================================================
   NOTES TOGGLE - WOOCOMMERCE STYLE
   ========================================================= */

.ecab-notes-wrapper {
  margin: 20px 0;
}

.ecab-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0 0 10px 0;
}

.ecab-label {
  display: block;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  margin: -28px 0 16px 28px;
  user-select: none;
}

.ecab-notes-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

#ecab_notes_toggle:checked ~ .ecab-notes-field {
  max-height: 350px;
  opacity: 1;
}

.ecab-notes-field textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  min-height: 200px;
}

/* =========================================================
   ROW LAYOUT FIX (BOOKING DETAILS)
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li{
  display: block !important;
  float: none !important;
  clear: both !important;
  min-width: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li > h6,
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li > p{
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li > p > span{
  display: inline-block !important;
  max-width: 100% !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li > h6{
  margin: 0 0 6px !important;
}
body.woocommerce-checkout .woocommerce-checkout-review-order-table
.variation-BookingDetails > .mpStyle > .dLayout_xs:first-of-type ul.cart_list > li > p{
  margin: 0 !important;
}

/* =========================================================
   DEPOSIT BUTTON FIX - CLICKABLE VERSION
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.deposit-buttons {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table tr.deposit-buttons td {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 10px 0 18px 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .deposit-options {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .toggle-switch-woocommerce-deposits {
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  position: relative !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .toggle-switch-woocommerce-deposits label {
  cursor: pointer !important;
  pointer-events: auto !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .toggle-switch-woocommerce-deposits input {
  position: absolute !important;
  width: 50% !important;
  height: 100% !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 10 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .toggle-switch-woocommerce-deposits input:first-of-type {
  left: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .toggle-switch-woocommerce-deposits input:last-of-type {
  right: 0 !important;
}

/* =========================================================
   BILLING FIELDS – TALLER INPUTS
   ========================================================= */

.woocommerce-billing-fields .input-text,
.woocommerce-billing-fields input[type="text"],
.woocommerce-billing-fields input[type="email"],
.woocommerce-billing-fields input[type="tel"] {
  height: 48px !important;
  padding: 16px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
}

/* =========================================================
   PRODUCT NAME – "test car – heraklion"
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #333333 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* =========================================================
   REMOVE GREY BACKGROUND FROM BOOKING DETAILS
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table .mpStyle,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .mpStyle *,
body.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation,
body.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation dd,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .dLayout_xs {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* =========================================================
   REMOVE GREY BACKGROUND – BOOKING PLUGIN (mage-light var)
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table .mpStyle {
  --mage-light: transparent !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* =========================================================
   REMOVE GREY/BORDER FROM BOOKING PLUGIN – STRONG OVERRIDE
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name .mpStyle,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name .mpStyle .dLayout_xs,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name .dLayout_xs,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name dl.variation dd {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* =========================================================
   FORCE WHITE ON PRODUCT-NAME TD AND ALL CHILDREN
   ========================================================= */

body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name * {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* =========================================================
   PAYMENT SECTION – CLEAN CONSOLIDATED STYLES
   ========================================================= */

/* Outer #payment wrapper – match booking summary width */
body.woocommerce-checkout #payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Strip borders/padding from list and li */
body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment li.wc_payment_method {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Card label – same style as Your booking heading */
body.woocommerce-checkout #payment label[for="payment_method_woocommerce_payments"] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 0 10px 0 !important;
  margin-top: 20px !important;
  margin-bottom: 16px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: inherit !important;
  width: 100% !important;
}

/* Card text left, icons right */
body.woocommerce-checkout #payment label[for="payment_method_woocommerce_payments"] img,
body.woocommerce-checkout #payment label[for="payment_method_woocommerce_payments"] .woocommerce-PaymentMethod-iconWrapper {
  margin-left: auto !important;
}

/* Remove triangle arrow above card box */
body.woocommerce-checkout #payment .payment_box::before,
body.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

/* Inner stripe card box – no border */
body.woocommerce-checkout #payment .payment_box {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Fieldset inside payment box */
body.woocommerce-checkout #payment .payment_box fieldset,
body.woocommerce-checkout #payment .payment_box .wc-payment-form,
body.woocommerce-checkout #payment .payment_box .wcpay-upe-form {
  padding: 0 !important;
  border: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Override WooCommerce default 1em padding on form-row */
.woocommerce-checkout #payment div.form-row {
  padding: 0 !important;
  font-size: 13px !important;
}

.woocommerce-checkout #payment div.form-row label,
.woocommerce-checkout #payment div.form-row input,
.woocommerce-checkout #payment div.form-row select {
  font-size: 13px !important;
}

/* Country select height */
body.woocommerce-checkout #payment .payment_box select {
  height: 48px !important;
  box-sizing: border-box !important;
}

/* =========================================================
   BILLING DETAILS – UNDERLINE TITLE
   ========================================================= */

body.woocommerce-checkout .woocommerce-billing-fields h3 {
  border-bottom: 1px solid #000 !important;
  padding-bottom: 10px !important;
}

/* =========================================================
   YOUR BOOKING + CARD – UNDERLINE TITLES
   ========================================================= */

body.woocommerce-checkout #order_review_heading {
  border-bottom: 1px solid #000 !important;
  padding-bottom: 10px !important;
}

body.woocommerce-checkout #payment label[for="payment_method_woocommerce_payments"] {
  border-bottom: 1px solid #000 !important;
  width: 100% !important;
}





/* =========================================================
   EDIT SEARCH BUTTON
   ========================================================= */

#ecab-edit-search-btn {
  text-align: center;
  padding: 16px 0 8px;
}

#ecab-edit-search-btn a {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#ecab-edit-search-btn a:hover {
  color: #333;
  text-decoration: underline;
}
/* =========================================================
   ECAB HIDDEN – JS-controlled visibility (must beat grid)
   ========================================================= */

body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails ul.cart_list li.ecab-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Collapse grid gap for hidden items */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails ul.cart_list li.ecab-hidden {
  grid-column: unset !important;
  grid-row: unset !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* RETURN divider – spans full width with empty row after */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails ul.cart_list li:has(> h6[style*="uppercase"]) {
  grid-column: 1 / -1 !important;
}

/* First ecab-injected item always starts on column 1 (new row) */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.variation-BookingDetails ul.cart_list li.ecab-injected:first-of-type {
  grid-column: 1 !important;
}

/* =========================================================
   PAYMENT METHODS – CARD STYLE
   ========================================================= */

body.woocommerce-checkout #payment li.wc_payment_method {
  display: block !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
  background: #fff !important;
}

/* Radio + label on same line */
body.woocommerce-checkout #payment li.wc_payment_method > input.input-radio {
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 10px 0 0 !important;
  position: static !important;
}

body.woocommerce-checkout #payment li.wc_payment_method > label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  vertical-align: middle !important;
  width: calc(100% - 30px) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Payment content stays below, but DO NOT force it open */
body.woocommerce-checkout #payment li.wc_payment_method > .payment_box {
  width: 100% !important;
  margin-top: 16px !important;
  margin-left: 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Keep logos right */
body.woocommerce-checkout #payment .payment-methods--logos,
body.woocommerce-checkout #payment .woocommerce-PaymentMethod-iconWrapper {
  margin-left: auto !important;
}

/* Selected state */
body.woocommerce-checkout #payment li.wc_payment_method:has(> input.input-radio:checked) {
  border-color: #111827 !important;
  box-shadow: 0 0 0 2px rgba(17,24,39,0.06) !important;
}

/* =========================================================
   VIVA – LABEL LAYOUT FIX
   ========================================================= */

/* =========================================================
   VIVA – ISOLATE LOGO FROM LABEL ALIGNMENT
   ========================================================= */

body.woocommerce-checkout #payment li.payment_method_vivacom_smart {
  display: block !important;
}

/* radio */
body.woocommerce-checkout #payment li.payment_method_vivacom_smart > input.input-radio {
  display: inline-block !important;
  vertical-align: top !important;
  margin: 2px 10px 0 0 !important;
  position: static !important;
}

/* label = text line only */
body.woocommerce-checkout #payment li.payment_method_vivacom_smart > label {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(100% - 30px) !important;
  margin: 0 !important;
  padding: 0 0 22px 0 !important; /* reserve space for logo */
  position: relative !important;
  white-space: nowrap !important;
}

/* logo visually below, but removed from layout flow */
body.woocommerce-checkout #payment li.payment_method_vivacom_smart > label img {
  position: absolute !important;
  left: 0 !important;

  display: block !important;
  max-height: 100px !important;
  width: auto !important;
  margin-top: -20px !important;
	 margin-left: -15px !important;

}

/* description stays full width below */
body.woocommerce-checkout #payment li.payment_method_vivacom_smart > .payment_box {
  width: 100% !important;
  margin-top: 36px !important;
  clear: both !important;
  box-sizing: border-box !important;
}
/* Hide logo by default (when closed) */
body.woocommerce-checkout #payment 
li.payment_method_vivacom_smart > label img {
  display: none !important;
}

/* Show logo only when selected */
body.woocommerce-checkout #payment 
li.payment_method_vivacom_smart:has(> input.input-radio:checked) > label img {
  display: block !important;
}


/* =========================================================
   PLACE ORDER BUTTON
   ========================================================= */

body.woocommerce-checkout #place_order {
  width: 100% !important;
  padding: 18px 16px !important;
  background-color: var(--e-global-color-800fb0a) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: all 0.2s ease;
	margin-top: 16px; 
}

/* Hover */
body.woocommerce-checkout #place_order:hover {
  opacity: 0.9;
}

/* Disabled state */
body.woocommerce-checkout #place_order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}