/* Combined Checkout Styles */

/* ============================================ */
/* CHECKOUT HEADER STYLES */
/* ============================================ */

.checkout-header {
  height: 60px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: #232F3E;
  color: white;

  display: flex;
  justify-content: center;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-content {
  width: 100%;
  max-width: 1100px;

  display: flex;
  align-items: center;
}

.checkout-header-left-section {
  width: 150px;
}

/* Note: .qili-logo and .qili-mobile-logo styles are already defined in qili-header.css */

@media (max-width: 575px) {
  .checkout-header-left-section {
    width: auto;
  }
}

.checkout-header-middle-section {
  flex: 1;
  flex-shrink: 0;
  text-align: center;

  font-size: 25px;
  font-weight: 500;

  display: flex;
  justify-content: center;
}

.return-to-home-link {
  color: rgb(0, 113, 133);
  font-size: 23px;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .checkout-header-middle-section {
    font-size: 20px;
    margin-right: 60px;
  }

  .return-to-home-link {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .checkout-header-middle-section {
    margin-right: 5px;
    font-size: 16px;
  }
  
  .checkout-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .return-to-home-link {
    font-size: 16px;
  }
}

.checkout-header-right-section {
  text-align: right;
  width: 150px;
}

@media (max-width: 1000px) {
  .checkout-header-right-section {
    width: auto;
  }
}

/* ============================================ */
/* MAIN CHECKOUT STYLES */
/* ============================================ */

.checkout-page {
  max-width: 1100px;
  padding-left: 30px;
  padding-right: 30px;

  margin-top: 92px; /* 60px (checkout header) + 32px (sub-header) */
  margin-bottom: 100px;

  /* margin-left: auto;
     margin-right auto;
     Is a trick for centering an element horizontally
     without needing a container. */
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
  
  /* Make sticky relative to viewport */
  position: fixed;
  top: 92px; /* Below header (60px) and subheader (32px) */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px; /* Match product container width */
  background-color: white;
  z-index: 100;
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.checkout-grid {
  display: grid;
  /* Changed to single column since we moved payment summary out */
  grid-template-columns: 1fr;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 800px; /* Added max-width to constrain product container */

  /* Use align-items: start; to prevent the elements
     in the grid from stretching vertically. */
  align-items: start;
    /* Add top margin to account for fixed elements */
  margin-top: 338px; /* Increased: Space for fixed title (~52px) and payment summary (~200px) + buffer (~68px) */
  padding-top: 20px; /* Additional padding for first item */
}

@media (max-width: 1000px) {
  .checkout-page {
    max-width: 500px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 92px; /* Keep same as desktop */
  }  .checkout-grid {
    grid-template-columns: 1fr;
    margin-top: 290px; /* Increased: Adjusted for tablet sized payment summary */
    padding-top: 15px;
  }
    .page-title {
    font-size: 20px;
    top: 92px; /* Header (60px) + subheader (32px) */
    padding: 12px 20px;
    max-width: 500px;
  }
    .payment-summary {
    top: 138px; /* Below page title with no gap */
    padding-left: 20px;
    padding-right: 20px;
    max-width: 500px;
  }
}

/* Added more specific mobile styling */
@media (max-width: 767px) {
  .checkout-page {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 92px; /* Keep same as desktop */
    width: 100%;
    box-sizing: border-box;
  }
  
  .page-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 0px !important; /* Remove margin bottom */
    top: 92px; /* Header (60px) + subheader (32px) */
    padding: 8px 15px !important; /* Reduce padding */
    max-width: 450px;
    border-bottom: none !important; /* Remove border for mobile */
    min-height: 26px !important; /* Explicit minimum height */
  }
  
  .payment-summary {
    top: 118px !important; /* Calculated: 92px + 26px = 118px */
    max-width: 450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    border-top: 1px solid #eee !important;
  }
  
  .checkout-grid {
    max-width: 450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 280px; /* Increased: 118px (payment-summary top) + ~162px (payment-summary height) = ~280px */
    padding-top: 15px;
  }
}

@media (max-width: 480px) {
  .checkout-page {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 92px; /* Keep same as desktop */
  }
  
  .page-title {
    font-size: 16px;
    margin-bottom: 0px !important; /* Remove margin bottom */
    top: 92px; /* Header (60px) + subheader (32px) */
    padding: 6px 10px !important; /* Reduce padding further */
    max-width: calc(100% - 20px);
    border-bottom: none !important; /* Remove border for mobile */
    min-height: 22px !important; /* Explicit minimum height */
  }
  
  .payment-summary {
    top: 100px !important; /* Calculated: 92px + 22px = 114px */
    max-width: calc(100% - 20px);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    border-top: 1px solid #eee !important;
  }
    .checkout-grid {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 310px; /* Increased: 114px (payment-summary top) + ~156px (payment-summary height) = ~270px */
    padding-top: 10px;
  }
}

.cart-item-container,
.payment-summary {
  border: 1px solid rgb(222, 222, 222);
  border-radius: 4px;
  padding: 18px;
}

.cart-item-container {
  margin-bottom: 12px;
}

/* Empty cart message styling - simplified and optimized */
.empty-cart-message,
.js-empty-cart {
  text-align: center;
  padding: 40px;
  min-height: 400px;
}

.empty-cart-description {
  margin: 20px 0;
}

/* When empty cart is shown, make it flex for centering */
.empty-cart-message:not([style*="display: none"]),
.js-empty-cart:not([style*="display: none"]) {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px) {
  .cart-item-container,
  .payment-summary {
    padding: 10px;
    border-radius: 8px;
  }
  
  .cart-item-container {
    margin-bottom: 10px;
  }
}

.payment-summary {
  padding-bottom: 5px;
  /* Position the payment summary below the title but above the products */
  margin-top: 0;
  margin-bottom: 20px;
  box-sizing: border-box; /* Include padding and border in the width calculation */
  
  /* Make sticky relative to viewport */
  position: fixed;
  top: 144px; /* Directly below the page title with no gap */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px; /* Match product container width */
  background-color: white;
  z-index: 99;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1000px) {
  .checkout-grid {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .payment-summary {
    /* Match the width of the checkout grid */
    margin-bottom: 20px;
    margin-top: 0;
    max-width: 500px;
    width: 100%;
    top: 138px; /* Positioned below page title with no gap */
  }
  .page-title {
    max-width: 500px; /* Match checkout grid width */
  }
}

.delivery-date {
  color: rgb(0, 118, 0);
  font-weight: 700;
  font-size: 19px;
  margin-top: 5px;
  margin-bottom: 22px;
  text-align: center;
}

@media (max-width: 767px) {
  .delivery-date {
    font-size: 16px;
    margin-bottom: 18px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .delivery-date {
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 2px;
    text-align: center;
  }
}

.cart-item-details-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 25px;
}

.cart-item-details-grid > .product-image-link {
  align-self: center;
  position: relative;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .cart-item-details-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    row-gap: 30px;
  }
}

@media (max-width: 767px) {
  .cart-item-details-grid {
    grid-template-columns: 140px minmax(0, 1fr);
    row-gap: 12px;
    column-gap: 15px;
  }
}

@media (max-width: 480px) {
  .cart-item-details-grid {
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 8px;
  }
  
  .product-name {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .product-price {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .product-quantity {
    margin-bottom: 0;
    line-height: 1.5;
  }
}

/* Small mobile devices */
@media (max-width: 380px) {
  .checkout-header-middle-section {
    font-size: 14px;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .return-to-home-link {
    font-size: 14px;
  }
  
  .cart-item-details-grid {
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 8px;
  }
  
  .product-image {
    max-height: 60px;
  }
  
  .product-name {
    font-size: 13px;
  }
  
  .product-price {
    font-size: 13px;
  }
  
  .delivery-option-date,
  .delivery-option-price {
    font-size: 12px;
  }
}

.product-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 210px;

  /* margin-left: auto;
     margin-right auto;
     Is a trick for centering an element horizontally
     without needing a container. */
  margin-left: auto;
  margin-right: auto;
}

/* Mobile optimization for product info */
@media (max-width: 767px) {
  /* Help with overflow issues */
  .cart-item-container {
    overflow-x: hidden;
    word-break: break-word;
  }
  
  /* Mobile optimization for product info */
  .product-quantity, 
  .product-price {
    margin-bottom: 6px;
  }
  
  /* Force proper sizing for product image */
  .product-image {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
  }
}

.product-name {
  font-weight: 700;
  margin-bottom: 8px;
}

.product-price {
  color: rgb(177, 39, 4);
  font-weight: 700;
  margin-bottom: 5px;
}

.product-logistics {
  margin-top: 5px;
  color: #565959;
  font-size: 13px;
  line-height: 1.4;
}

.product-logistics strong {
  color: inherit;
}

.product-quantity .link-primary {
  margin-left: 3px;
}

@media (max-width: 1000px) {
  .delivery-options {
    /* grid-column: 1 means this element will be placed
       in column 1 in the grid. (Normally, the column that
       an element is placed in is determined by the order
       of the elements in the HTML. grid-column overrides
       this default ordering).
       
       / span 2 means this element will take up 2 columns
       in the grid (Normally, each element takes up 1
       column in the grid). */
    grid-column: 1 / span 2;
  }
}

@media (max-width: 480px) {
  .delivery-options {
    margin-top: 0px;
  }
  
  .delivery-options-title {
    font-size: 15px;
    text-align: center;
    margin-bottom: 2px;
    margin-top: 0;
    padding-top: 0;
  }
}

.delivery-options-title {
  font-weight: 700;
}

.delivery-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  margin-bottom: 12px;
  cursor: pointer;
}

.delivery-option-input {
  margin-left: 0px;
  cursor: pointer;
}

.delivery-option-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Better touch targets */
@media (max-width: 767px) {
  .delivery-option {
    padding: 4px 0;
    margin-bottom: 8px;
  }
  
  .delivery-option-input {
    width: 18px;
    height: 18px;
  }
  
  .delivery-option-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  /* Footer mobile optimization */
  .footer {
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .delivery-option {
    grid-template-columns: 20px 1fr;
    padding: 0;
    margin-bottom: 1px;
  }
  
  .delivery-option-date {
    font-size: 13px;
  }
  
  .delivery-option-price {
    font-size: 12px;
  }
}

.delivery-option-date {
  color: rgb(0, 118, 0);
  font-weight: 500;
}

.delivery-option-price {
  color: rgb(120, 120, 120);
  font-size: 15px;
}

.payment-summary-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .payment-summary-title {
    text-align: center;
    font-size: 16px;
  }
}

.payment-summary-row {
  display: grid;
  /* 1fr auto; means the width of the 2nd column will be
     determined by the elements inside the column (auto).
     The 1st column will take up the remaining space. */
  grid-template-columns: 1fr auto;

  font-size: 15px;
  margin-bottom: 9px;
}

@media (max-width: 480px) {
  .payment-summary-row {
    font-size: 14px;
  }
}

.payment-summary-money {
  text-align: right;
}

.payment-summary-row.logistics-row {
  color: #565959;
  font-size: 14px;
}

.subtotal-row .payment-summary-money {
  border-top: 1px solid rgb(222, 222, 222);
}

.subtotal-row div {
  padding-top: 9px;
}

.total-row {
  color: rgb(177, 39, 4);
  font-weight: 700;
  font-size: 18px;

  border-top: 1px solid rgb(222, 222, 222);
  padding-top: 18px;
}

@media (max-width: 480px) {
  .total-row {
    font-size: 16px;
  }
}

.place-order-button {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 8px;

  margin-top: 11px;
  margin-bottom: 15px;

  background-color: #232F3E;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s;
}

@media (max-width: 480px) {
  .place-order-button {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 18px;
    margin-top: 15px;
  }
}

.place-order-button:hover {
  background-color: #1A252F;
}

.continue-shopping-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 10px;
  min-width: 140px;
}

.order-button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
}

/* Handle the viewport height better */
@media screen and (max-height: 700px) {
  .checkout-page {
    margin-top: 110px;
    margin-bottom: 60px;
  }
}

/* ============================================ */
/* MOBILE-SPECIFIC OVERRIDE SECTION */
/* Force mobile gap elimination with highest specificity */
/* ============================================ */

/* Extra specific mobile selectors to force gap elimination */
@media (max-width: 767px) and (min-width: 481px) {
  body .main .page-title {
    top: 92px !important;
    padding: 8px 15px !important;
    margin-bottom: 0px !important;
    border-bottom: none !important;
    height: auto !important;
    min-height: 26px !important; /* Explicit minimum height */
  }
  
  body .main .payment-summary {
    top: 118px !important; /* Calculated: 92px + 26px = 118px */
    border-top: 1px solid #eee !important;
  }
}

@media (max-width: 480px) {
  body .main .page-title {
    top: 92px !important;
    padding: 6px 10px !important;
    margin-bottom: 0px !important;
    border-bottom: none !important;
    height: auto !important;
    min-height: 22px !important; /* Explicit minimum height */
  }
  
  body .main .payment-summary {
    top: 114px !important; /* Calculated: 92px + 22px = 114px */
    border-top: 1px solid #eee !important;
  }
}

/* --- Product hover effect for checkout page (match qilitrading product grid) --- */
.cart-item-details-grid a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.cart-item-details-grid a:hover .product-image,
.cart-item-details-grid a:focus .product-image {
  transform: scale(1.05);
  transition: transform 0.2s;
}
.cart-item-details-grid a:hover,
.cart-item-details-grid a:focus {
  color: rgb(1, 124, 182);
  text-decoration: underline;
}
.cart-item-details-grid .product-image {
  transition: transform 0.2s;
}

/* ============================================
   Buyer-info form (B2B inquiry checkout)
   ============================================ */

.buyer-info-form {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: grid;
  /* minmax(0, …) lets each column shrink below the select's intrinsic
     width (its longest country option) so it can't overflow the card. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.buyer-info-form[hidden] {
  display: none !important;
}

.buyer-info-form .buyer-info-title {
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.buyer-info-form .buyer-info-hint {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.45;
  color: #5b6470;
  margin: -2px 0 6px;
}

.buyer-info-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buyer-info-form label {
  font-size: 13px;
  color: #555;
}

.buyer-info-form input,
.buyer-info-form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #c4c4c4;
  border-radius: 3px;
  font-family: inherit;
}

@media (max-width: 720px) {
  .buyer-info-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Payment summary — shipping note + footnote
   ============================================ */

.payment-summary-row.shipping-note .payment-summary-money {
  font-style: italic;
  color: #565959;
  font-size: 13px;
  text-align: right;
}

.payment-summary-footnote {
  font-size: 12px;
  color: #767676;
  margin-top: 6px;
  margin-bottom: 12px;
  font-style: italic;
}

/* Detail-page quantity controls on cart rows */
.js-remove-link {
  cursor: pointer;
  margin-left: 8px;
}

.product-code-row,
.product-pieces-stepper {
  display: flex;
  align-items: center;
}

.product-code-row {
  justify-content: space-between;
  gap: 12px;
}

.product-pieces-stepper {
  gap: 10px;
  width: 100%;
  margin: 5px 0;
}

.pieces-stepper-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: #f5f5f5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
}

.pieces-stepper-btn:hover {
  background: #e8e8e8;
  border-color: #999;
}

/* ============================================
   Detail-page purchase block
   ============================================ */

.product-purchase-container {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e7e7e7;
}

.product-purchase-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.product-pieces-label {
  font-size: 13px;
  font-weight: 600;
  color: #5f6b7a;
}

.js-pieces-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  box-sizing: border-box;
  text-align: center;
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 6px;
  -moz-appearance: textfield;
}

.js-pieces-input::-webkit-inner-spin-button,
.js-pieces-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.product-pieces-helper {
  font-size: 12px;
  color: #565959;
}

.added-to-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #007600;
  font-size: 13px;
  margin: 6px 0;
}

.add-to-cart-button {
  display: inline-block;
  margin-top: 6px;
}

/* ============================================================
   B2B INQUIRY-CHECKOUT LAYOUT OVERRIDES
   ============================================================
   The original B2C styling made .page-title and .payment-summary
   position:fixed (sticky top bars) and pushed .checkout-grid down
   with a large margin-top. For the B2B inquiry flow we need
   normal block flow: buyer form -> payment summary -> order summary
   stacked vertically. These overrides win against the legacy
   rules (and their !important media-query variants) by chaining
   selectors and re-stating !important where needed.
   ============================================================ */

body .main .page-title {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: 720px !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto 16px auto !important;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-bottom: none !important;
  height: auto !important;
  min-height: 0 !important;
  z-index: auto !important;
}

body .main .payment-summary {
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: auto !important;
  max-width: 720px !important;
  margin: 0 auto 20px auto !important;
  padding: 18px 22px !important;
  background-color: #fff !important;
  box-shadow: none !important;
  z-index: auto !important;
  border: 1px solid rgb(222, 222, 222);
  border-radius: 4px;
}

body .main .checkout-grid {
  display: block !important;
  grid-template-columns: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body .main .buyer-info-form {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body .main .order-summary {
  width: 100%;
}

body .main .order-summary .cart-item-container {
  margin-bottom: 12px;
}

/* Center the Send Inquiry button inside the payment summary box. */
.payment-summary .place-order-button.js-send-inquiry-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 640px);
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 16px;
  margin: 12px auto 15px;
  font-size: 15px;
  font-weight: 600;
  background-color: #128C7E;
  color: #ffffff;
  border: 1px solid #0f7a6d;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.25;
}

.payment-summary .place-order-button.js-send-inquiry-button:hover,
.payment-summary .place-order-button.js-send-inquiry-button:focus {
  background-color: #0f7a6d;
  color: #ffffff;
}

.checkout-inquiry-reassurance {
  margin: -7px auto 12px;
  text-align: center;
  color: #565959;
  font-size: 12px;
}

.checkout-mobile-whatsapp-bar {
  display: none;
}

/* Email fallback under the Send Inquiry button for buyers without WhatsApp.
   Padding keeps the text-link tap area >=40px on touch screens. */
.payment-summary .checkout-email-fallback {
  display: block;
  width: min(100%, 640px);
  margin: -6px auto 3px;
  padding: 12px 0;
  text-align: center;
  font-size: 13px;
  text-decoration: none;
}

.payment-summary .checkout-email-fallback:hover {
  text-decoration: underline;
}

/* Total row emphasis */
.payment-summary .payment-summary-row.total-row {
  border-top: 1px solid #e7e7e7;
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 17px;
  color: #b12704;
}

.payment-summary .payment-summary-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Mobile: stack at 720px breakpoint */
@media (max-width: 720px) {
  body {
    padding-bottom: 72px;
  }

  body .main .page-title,
  body .main .payment-summary,
  body .main .checkout-grid,
  body .main .buyer-info-form {
    max-width: 100% !important;
  }

  .checkout-mobile-whatsapp-bar {
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 1200;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #06735f;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  /* iOS Safari auto-zooms on focus when a form control is under 16px —
     disorienting mid-inquiry. 16px kills the zoom; min-height covers touch. */
  .buyer-info-form input,
  .buyer-info-form select {
    font-size: 16px;
    min-height: 44px;
  }
}
