/*********************checkout****************/
/*********************checkout_end****************/

@media screen and (max-width: 767px) {
  .checkout_1l h4,
  .checkout_1l h6 {
    text-align: center;
  }

  .checkout_1l2il .form-control {
    margin-bottom: 10px;
  }

  .checkout_1r {
    margin-top: 20px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .drop_1i3 .button,
  .drop_1i3 .button_1 {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 12px;
  }

  .drop_1il h5 {
    font-size: 14px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .drop_1i3 .button,
  .drop_1i3 .button_1 {
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-size: 14px;
  }
}

/* Checkout spacing */
#checkout {
  padding-bottom: 90px;
}

/* Modern form fields */
.checkout_1l input,
.checkout_1l select,
.checkout_1l textarea {
  min-height: 58px;
  border-radius: 10px !important;
  padding: 15px 18px;
  transition: 0.3s ease;
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
  -ms-border-radius: 10px !important;
  -o-border-radius: 10px !important;
}

.checkout_1l textarea {
  min-height: 150px;
}

.checkout_1l input:focus,
.checkout_1l select:focus,
.checkout_1l textarea:focus {
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(18, 148, 71, 0.15);
  outline: none;
}

/* Sticky checkout summary */
.checkout_1r {
  position: sticky;
  top: 170px;
}

/* Payment buttons */
.payment-method-tabs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.payment-tab {
  width: 130px;
  height: 52px;
  background: #f7f7f9;
  border: 2px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.payment-tab input {
  display: none;
}

.payment-tab img {
  max-width: 78px;
  max-height: 30px;
  object-fit: contain;
}

.payment-tab span {
  font-size: 12px;
  font-weight: 800;
  color: #333;
}

.payment-tab:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.payment-tab:has(input:checked) {
  background: #fff;
  border-color: #129447;
  box-shadow: 0 8px 20px rgba(18, 148, 71, 0.18);
}

/* Delivery note */
.delivery-note {
  margin-top: 18px;
  font-size: 13px;
  color: #6c757d;
}

/* Place order button */
.checkout-actions {
  margin-top: 28px;
}

.place-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  height: 54px;
  background: linear-gradient(135deg, #0b8f45, #19b866);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(11, 143, 69, 0.25);
}

.place-order-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}


/* Fix checkout header cart */
.navbar .cart-nav {
  list-style: none;
  margin-left: 25px;
}

.navbar .cart-link {
  color: #149253 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar .cart-link i {
  font-size: 24px;
  line-height: 1;
}

.navbar .cart-link #cart-count {
  position: absolute;
  top: -14px;
  right: -12px;
  background: #149253;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .drop_cart {
  width: 460px;
  right: 0;
  left: auto;
  padding: 15px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

/* Make checkout header cart exactly like homepage cart */
#header .drop_cart {
  width: 360px !important;
  right: 0 !important;
  left: auto !important;
  padding: 15px !important;
  background: #fff !important;
  box-shadow: 0 10px 35px rgba(0,0,0,0.12) !important;
}

/* Fix product rows inside header cart */
#header .drop_cart .drop_1i1,
#header .drop_cart .cart-item {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

/* Product image like homepage */
#header .drop_cart img {
  width: 95px !important;
  height: 65px !important;
  object-fit: cover !important;
  border-radius: 4px !important;
  display: block !important;
}

/* Stop checkout form images/background from affecting cart */
#header .drop_cart li {
  background: #fff !important;
}

#header .drop_cart .row {
  align-items: center !important;
}

#header .drop_cart button {
  background: #149253 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#header .drop_cart .qty-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  font-size: 13px !important;
  line-height: 24px !important;
}

#header .drop_cart .delete-cart-btn i {
  font-size: 11px !important;
}

#header .drop_cart .cart-dropdown-img {
  width: 75px !important;
  height: 50px !important;
  object-fit: contain !important;
}

#header .drop_cart .drop_1i3 {
  margin-top: 28px !important;
  padding-top: 18px !important;
  border-top: 1px solid #eeeeee !important;
}

#header .drop_cart .drop_1i3 a.button,
#header .drop_cart .drop_1i3 a.button_1 {
  color: #ffffff !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.2 !important;
}

#header .drop_cart .drop_1i3 a.button_1 {
  background: #666666 !important;
  color: #ffffff !important;
}

#header .drop_cart .delete-cart-btn:hover,
#header .drop_cart .delete-cart-btn:hover i,
#header .drop_cart .remove-cart-item:hover i {
  background: #dc3545 !important;
  color: #fff !important;
  transition: 0.3s ease;
}

.checkout-summary-cart {
  width: 100%;
  min-width: 100%;
  background: #ffffff;
  padding: 30px;
  margin: 0;
  border-radius: 0 !important;   /* removes round corners */
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border: none !important;
}

.checkout-cart-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.view-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 42px;
  background: #149253;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s ease;
  margin-top: 2%;
}

.view-cart-btn:hover {
  background: #0f7c44;
  color: #fff !important;
  transform: translateY(-2px);
}

.checkout-cart-controls button {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #149253;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-delete-btn:hover {
  background: #dc3545;
}


/* Cart dropdown: keep image/buttons on same line */
#header .drop_cart .drop_1i1 {
  display: grid !important;
  grid-template-columns: 48% 45% !important;
  align-items: center !important;
}

#header .drop_cart .drop_1i1 .col-5,
#header .drop_cart .drop_1i1 .col-7 {
  width: 100% !important;
  max-width: 100% !important;
  flex: unset !important;
}

#header .drop_cart .cart-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

#header .drop_cart .cart-actions .qty-btn,
#header .drop_cart .cart-actions img {
  flex: 0 0 auto !important;
}

#header .drop_cart .cart-dropdown-img {
  width: 58px !important;
  height: 40px !important;
  object-fit: contain !important;
}


.paynow-payment-box {
  max-width: 540px;
}


.payment-radio-row {
  display: flex !important;
  align-items: center !important;
  gap: 35px !important;
  margin-bottom: 18px !important;
}

.payment-radio {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: 14px !important;
}

.payment-radio input {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.payment-radio input:focus,
.payment-radio input:active,
.payment-radio input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}




.paynow-panel {
  width: 540px;
  border: 2px solid #54b7d1;
  background: #fff;
  padding: 6px 8px 8px;
  margin-top: 6px;
}

.paynow-logo-img {
  width: 200px;
  height: auto;
  display: block;
  margin-top: -10%;
  margin-left: 2%;
}

.paynow-sub {
  color: #0077a3;
  font-size: 11px;
  font-weight: 700;
}

.paynow-gateways {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  margin-top: -4%;
}

.gateway-btn {
  width: 82px;
  min-width: 82px;
  height: 42px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
  font-weight: 800;
  cursor: pointer;
}

.visa-btn {
  color: #172b85;
  font-size: 20px;
}

.mastercard-btn {
  font-size: 9px;
}

.mc-circles {
  display: block;
  width: 32px;
  height: 17px;
  margin: 0 auto 2px;
  background: radial-gradient(circle at 35% 50%, #eb001b 0 45%, transparent 47%),
              radial-gradient(circle at 65% 50%, #f79e1b 0 45%, transparent 47%);
}

.zipit-btn {
  background: #fff;
  color: #111;
  font-size: 13px;
}

.ecocash-btn {
  color: #e31e24;
  font-size: 13px;
}

.onemoney-btn {
  color: #000;
  font-size: 10px;
}

.telecash-btn {
  color: #e32636;
  font-size: 13px;
}

.gateway-btn.active,
.gateway-btn:hover {
  border-color: #149253;
}

.buy-now-btn {
  width: 270px;
  height: 50px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 14px;
  font-weight: 600;
}


.paynow-payment-box {
  max-width: 500px !important;
}

.payment-radio {
  font-size: 11px !important;
  margin-bottom: 5px !important;
  gap: 4px !important;
}

.paynow-panel {
  width: 500px !important;
  padding: 4px 8px 7px !important;
  border: 2px solid #0077a3 !important;
  margin-top: 6% !important;
}

.paynow-title {
  gap: 8px !important;
  margin-bottom: 5px !important;
  padding-bottom: 3px !important;
}

.paynow-logo-text {
  font-size: 28px !important;
  line-height: 0.8 !important;
}

.paynow-sub {
  font-size: 11px !important;
}

.paynow-gateways {
  gap: 3px !important;
  flex-wrap: nowrap !important;
}

.gateway-btn {
  width: 76px !important;
  min-width: 76px !important;
  height: 38px !important;
  font-size: 12px !important;
}

.visa-btn {
  font-size: 19px !important;
}

.buy-now-btn {
  width: 250px !important;
  height: 45px !important;
  margin-top: 8px !important;
}


.gateway-btn {
  width: 92px !important;
  min-width: 92px !important;
  height: 52px !important;
  padding: 6px !important;
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
}

.gateway-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
}

.zipit-btn {
  background: #ffd800 !important;
}

.paynow-panel {
  width: 640px !important;
}

.paynow-gateways {
  gap: 12px !important;
}

.gateway-btn {
  margin-right: 0 !important;
}


.gateway-btn.active {
  border: 2px solid #1492539a !important;
 
  transform: translateY(-2px);
}

.gateway-btn {
  transition: 0.2s ease;
}

.buy-now-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 270px;
  height: 50px;
  margin-top: 12px;
  background: #149253;
  color: #fff !important;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8% !important;
}

.buy-now-btn:hover {
  background: #0f7c44;
  color: #fff !important;
}

.payment-extra-fields {
  margin-top: 15px;
  max-width: 420px;
}

.payment-extra-fields input,
.payment-extra-fields select {
  width: 100%;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 14px;
  margin-bottom: 10px;
}


.payment-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.payment-modal.show {
  display: flex;
}

.payment-modal-box {
  width: 420px;
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  position: relative;
}

.payment-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: none;
  background: none;
  font-size: 28px;
}

.payment-modal-box input {
  width: 100%;
  height: 46px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

#confirm-payment-btn {
  width: 100%;
  height: 48px;
  background: #149253;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
}



.payment-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.payment-modal.show {
  display: flex;
}

.payment-modal-content {
  background: #fff;
  width: 420px;
  max-width: 92%;
  padding: 28px;
  border-radius: 14px;
  position: relative;
}

.payment-close {
  position: absolute;
  right: 18px;
  top: 12px;
  border: none;
  background: none;
  font-size: 30px;
  cursor: pointer;
}

.bank-details-box {
  background: #f4f7f5;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.payment-modal-content input {
  width: 100%;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.confirm-payment-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: #14964f;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
}



/* Styling for the new grid section */
.card-details-grid {
  background-color: #f9fafb; /* Light gray background */
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 15px;
}

.input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.input-row:last-child {
  margin-bottom: 0;
}

/* Individual inputs */
.modal-input, .input-row input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box; /* Crucial for sizing */
}

/* Width ratios: Main fields (3 parts) vs Side fields (1 part) */
.flex-main { flex: 3; }
.flex-side { flex: 1; min-width: 70px; text-align: center; }

/* Modal Header spacing */
.payment-modal-box h3 { margin-bottom: 4px; }
.subtitle { color: #6b7280; font-size: 0.9em; margin-bottom: 16px; }

/* Button Color matching your screenshot */
.buy-now-btn {
  background-color: #1a9a5b;
  color: white;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}


#card-pay-btn {
  /* Layout */
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  
  /* Colors & Border */
  background-color: #1a9a5b; /* Professional Green */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  
  /* Text Styling */
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
  /* Interaction */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover effect */
#card-pay-btn:hover {
  background-color: #14804a;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Click effect */
#card-pay-btn:active {
  transform: scale(0.98);
}


/* =====================================================
   FULL MOBILE RESPONSIVE FIX
   Checkout + Header Cart + Paynow + Modal
===================================================== */

@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  body {
    font-size: 14px !important;
  }

  /* General spacing */
  #checkout {
    padding: 35px 0 60px !important;
  }

  #checkout .container-fluid,
  #checkout .container,
  #header .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
  }

  /* Checkout layout */
  .checkout_1l,
  .checkout_1r {
    width: 100% !important;
    max-width: 100% !important;
  }

  .checkout_1r {
    position: static !important;
    top: auto !important;
    margin-top: 25px !important;
  }

  .checkout_1l h4,
  .checkout_1l h5,
  .checkout_1l h6 {
    text-align: left !important;
    font-size: 18px !important;
  }

  /* Checkout form fields */
  .checkout_1l input,
  .checkout_1l select,
  .checkout_1l textarea {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 5px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .checkout_1l textarea {
    min-height: 120px !important;
  }

  .checkout_1l2il .form-control {
    margin-bottom: 12px !important;
  }

  /* Checkout summary */
  .checkout-summary-cart {
    width: 100% !important;
    min-width: 100% !important;
    padding: 18px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
  }

  .checkout-summary-cart h4,
  .checkout-summary-cart h5,
  .checkout-summary-cart h6 {
    font-size: 16px !important;
  }

  .checkout-summary-cart p,
  .checkout-summary-cart span,
  .checkout-summary-cart a {
    font-size: 14px !important;
  }

  .checkout-cart-controls {
    justify-content: flex-start !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .checkout-cart-controls button {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 13px !important;
  }

  .view-cart-btn {
    width: 100% !important;
    height: 44px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
  }

  /* Payment method tabs */
  .payment-method-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .payment-tab {
    width: 100% !important;
    height: 48px !important;
    border-radius: 5px !important;
  }

  .payment-tab img {
    max-width: 70px !important;
    max-height: 26px !important;
  }

  .payment-tab span {
    font-size: 11px !important;
  }

  .delivery-note {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .checkout-actions {
    margin-top: 20px !important;
  }

  .place-order-btn {
    width: 100% !important;
    min-width: 100% !important;
    height: 50px !important;
    font-size: 15px !important;
    border-radius: 5px !important;
  }

  /* Header cart dropdown on mobile */
  #header .drop_cart,
  .navbar .drop_cart {
    position: absolute !important;
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
    right: 15px !important;
    left: auto !important;
    top: 100% !important;
    padding: 12px !important;
    border-radius: 5px !important;
    overflow-x: hidden !important;
  }

  #header .drop_cart .drop_1i1 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px 0 !important;
  }

  #header .drop_cart .drop_1i1 .col-5,
  #header .drop_cart .drop_1i1 .col-7 {
    width: 100% !important;
    max-width: 100% !important;
  }

  #header .drop_cart .cart-actions {
    justify-content: flex-start !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  #header .drop_cart .cart-dropdown-img {
    width: 55px !important;
    height: 42px !important;
    object-fit: contain !important;
  }

  #header .drop_cart button,
  #header .drop_cart .qty-btn {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    font-size: 12px !important;
    line-height: 25px !important;
  }

  #header .drop_cart .drop_1i3 {
    margin-top: 18px !important;
    padding-top: 14px !important;
  }

  #header .drop_cart .drop_1i3 .button,
  #header .drop_cart .drop_1i3 .button_1 {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    border-radius: 5px !important;
  }

  /* Header cart badge */
  .navbar .cart-link #cart-count,
  #cart-count,
  #cart-count-mobile {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    font-size: 11px !important;
  }

  /* Paynow payment box */
  .paynow-payment-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .payment-radio-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .payment-radio {
    font-size: 13px !important;
  }

  .paynow-panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    margin-top: 15px !important;
    border-radius: 5px !important;
    overflow-x: hidden !important;
  }

  .paynow-logo-img {
    width: 150px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }

  .paynow-sub {
    font-size: 10px !important;
  }

  .paynow-gateways {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 12px !important;
  }

  .gateway-btn {
    width: 100% !important;
    min-width: 100% !important;
    height: 48px !important;
    border-radius: 5px !important;
  }

  .gateway-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .buy-now-btn {
    width: 100% !important;
    height: 48px !important;
    margin-top: 18px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
  }

  /* Extra payment fields */
  .payment-extra-fields {
    max-width: 100% !important;
    width: 100% !important;
  }

  .payment-extra-fields input,
  .payment-extra-fields select {
    width: 100% !important;
    height: 44px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
  }

  /* Payment modal */
  .payment-modal,
  .payment-modal.show {
    padding: 15px !important;
  }

  .payment-modal-box,
  .payment-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 5px !important;
  }

  .payment-modal-box h3,
  .payment-modal-content h3 {
    font-size: 20px !important;
  }

  .payment-close {
    right: 12px !important;
    top: 8px !important;
    font-size: 26px !important;
  }

  .payment-modal-box input,
  .payment-modal-content input,
  .modal-input,
  .input-row input {
    height: 44px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
    border-radius: 5px !important;
  }

  .bank-details-box,
  .card-details-grid {
    border-radius: 5px !important;
    padding: 12px !important;
  }

  .input-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .flex-main,
  .flex-side {
    flex: unset !important;
    width: 100% !important;
    min-width: 100% !important;
    text-align: left !important;
  }

  #confirm-payment-btn,
  .confirm-payment-btn,
  #card-pay-btn {
    width: 100% !important;
    height: 48px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
  }
}

/* =====================================================
   FINAL CHECKOUT MOBILE FIX
===================================================== */

@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden !important;
  }

  #checkout {
    padding-top: 30px !important;
    padding-bottom: 50px !important;
  }

  #checkout .container,
  #checkout .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
  }

  /* Stop radio buttons from becoming huge */
  .checkout_1l input[type="radio"],
  .payment-radio input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .payment-radio-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  .payment-radio {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  /* Paynow box */
  .paynow-payment-box {
    width: 100% !important;
    max-width: 100% !important;
  }

  .paynow-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 18px !important;
    padding: 18px !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
  }

  .paynow-logo-img {
    width: 150px !important;
    margin: 0 0 18px 0 !important;
  }

  .paynow-gateways {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 90% !important;
    margin-top: -10% !important;
  }

  .gateway-btn {
    width: 100% !important;
    min-width: 100% !important;
    height: 58px !important;
    border-radius: 5px !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  .gateway-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .buy-now-btn {
    width: 100% !important;
    height: 52px !important;
    margin-top: 18px !important;
    border-radius: 5px !important;
    font-size: 15px !important;
  }

  /* Normal checkout fields */
  .checkout_1l input:not([type="radio"]),
  .checkout_1l select,
  .checkout_1l textarea {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
  }

  .checkout_1l textarea {
    min-height: 120px !important;
  }

  /* Summary should not stick on mobile */
  .checkout_1r {
    position: static !important;
    margin-top: 25px !important;
    width: 100% !important;
  }

  .checkout-summary-cart {
    width: 100% !important;
    padding: 18px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
  }
}

/* =========================
   DESKTOP HEADER CART FIX
========================= */
@media (min-width: 768px) {

  #header .nav_1 .nav-item.dropdown {
    position: relative !important;
  }

  #header .nav_1 .nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 1 !important;
  }

  #header .nav_1 .nav-link i {
    font-size: 24px !important;
    color: #111 !important;
    line-height: 1 !important;
  }

  #header .nav_1 #cart-count {
    position: absolute !important;
    top: -12px !important;
    right: -13px !important;

    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;

    background: #149253 !important;
    color: #fff !important;

    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;

    z-index: 99 !important;
  }

  /* Remove Bootstrap dropdown arrow beside cart */
  #header .nav_1 .dropdown-toggle::after {
    display: none !important;
  }
}
/* Checkout validation */

.checkout-form-message {
  display: none;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 5px;
  padding: 11px 14px;

  color: #a32121;
  background: #fff0f0;

  border: 1px solid #efb2b2;
  border-radius: 5px;

  font-size: 13px;
  line-height: 1.5;
}

.checkout-form-message.show {
  display: block;
}

.checkout-field-error {
  border: 1px solid #dc3545 !important;
  background: #fff8f8 !important;
}

.checkout-field-valid {
  border-color: #149253 !important;
}
.checkout-success-message {
  color: #087044 !important;
  background: #e9f8f1 !important;
  border-color: #9bd8ba !important;
}
/* =========================
   AUTHENTICATED CHECKOUT
========================= */

#checkout-email[readonly],
#card-payer-email[readonly] {
  color: #4f6257 !important;
  background: #edf4ef !important;
  border-color: #c9dbcf !important;

  cursor: not-allowed;
}

#checkout-email[readonly]:focus,
#card-payer-email[readonly]:focus {
  border-color: #c9dbcf !important;

  box-shadow: none !important;
  outline: none !important;
}

/* =========================
   CHECKOUT FIELD VALIDATION
========================= */

.checkout-field-error {
  border-color: #c53d3d !important;

  background:
    rgba(197, 61, 61, 0.04) !important;

  box-shadow:
    0 0 0 3px
    rgba(197, 61, 61, 0.09) !important;
}

.checkout-field-valid {
  border-color: #149253 !important;

  background:
    rgba(20, 146, 83, 0.04) !important;
}

.checkout-field-error:focus {
  border-color: #c53d3d !important;

  box-shadow:
    0 0 0 3px
    rgba(197, 61, 61, 0.14) !important;
}

.checkout-field-valid:focus {
  border-color: #149253 !important;

  box-shadow:
    0 0 0 3px
    rgba(20, 146, 83, 0.12) !important;
}

/* =========================
   CHECKOUT FORM MESSAGE
========================= */

#checkout-form-message {
  display: none;

  width: 100%;

  margin-bottom: 20px;
  padding: 13px 16px;

  color: #7d2020;
  background: #fff0f0;

  border: 1px solid #efb9b9;
  border-left: 4px solid #c53d3d;
  border-radius: 9px;

  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

#checkout-form-message.show {
  display: block;
}

#checkout-form-message.checkout-success-message {
  color: #075c2c;
  background: #ecf8f0;

  border-color: #b8dfc4;
  border-left-color: #149253;
}

/* =========================
   PAYMENT STATUS
========================= */

.payment-status-normal,
.payment-status-success,
.payment-status-error {
  display: block;

  margin-top: 13px;
  padding: 11px 13px;

  border-radius: 8px;

  font-size: 12px;
  line-height: 1.55;
}

.payment-status-normal {
  color: #325341;
  background: #eef6f1;

  border: 1px solid #cce0d2;
}

.payment-status-success {
  color: #075c2c;
  background: #eaf8ef;

  border: 1px solid #aeddbd;
}

.payment-status-error {
  color: #812727;
  background: #fff0f0;

  border: 1px solid #edbcbc;
}

/* =========================
   PAYMENT BUTTON STATES
========================= */

#buy-now-btn:disabled,
#confirm-payment-btn:disabled,
#card-pay-btn:disabled {
  opacity: 0.68;

  cursor: not-allowed;
  pointer-events: none;

  transform: none !important;
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */

@media screen and (max-width: 767px) {
  #checkout-form-message {
    padding: 11px 13px;

    font-size: 12px;
  }

  .payment-status-normal,
  .payment-status-success,
  .payment-status-error {
    font-size: 11px;
  }
}