/*
  CORDOBA LIBRARY - CHECKOUT DESIGN
  EasyOrders / Sphinx V3
  Brand: Ivory #F8F3E8 | Brown #482D1D | Burgundy #641D35 | Gold #BD9858
*/

/* Main checkout submit button - exact class from the live page */
#checkout-button .checkout_buy_now {
  background-color: #641D35 !important;
  color: #FFFFFF !important;
  border: 1px solid #641D35 !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 10px rgba(100, 29, 53, 0.12) !important;
}
#checkout-button .checkout_buy_now:hover,
#checkout-button .checkout_buy_now:focus,
#checkout-button .checkout_buy_now:active {
  background-color: #482D1D !important;
  border-color: #482D1D !important;
  color: #FFFFFF !important;
}

/* Prevent the mobile sticky submit area from covering checkout fields */
@media (max-width: 1023px) {
  #checkout-button.checkout_button {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    background: transparent !important;
  }
}

/* Customer fields */
.global_input,
.global_textarea {
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  color: #482D1D !important;
  border: 1px solid #E8D9C2 !important;
  border-radius: 13px !important;
  background-color: #FFFFFF !important;
}
.global_input::placeholder,
.global_textarea::placeholder {
  color: #778399 !important;
  opacity: 1 !important;
}
.global_input:focus,
.global_textarea:focus {
  border-color: #BD9858 !important;
  box-shadow: 0 0 0 2px rgba(189, 152, 88, 0.12) !important;
  outline: none !important;
}

/* Order summary */
.checkout_order_summary_content,
.checkout_mobile_bottom_summary {
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
}
.checkout_order_summary_content {
  border: 1px solid #E8D9C2 !important;
  border-radius: 16px !important;
  padding: 16px !important;
  background: #FFFFFF !important;
}
.checkout_order_summary_content [data-invoice="invoice"],
.checkout_mobile_bottom_summary [data-invoice="invoice"] {
  border-color: #E8D9C2 !important;
}
.checkout_order_summary_content [data-invoice="invoice-total-value"],
.checkout_mobile_bottom_summary [data-invoice="invoice-total-value"] {
  color: #641D35 !important;
}

/* Payment method card */
.payment_card_content {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #F8F3E8 !important;
  border-radius: 15px !important;
  padding: 14px 12px !important;
  gap: 0 !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
}
.payment_card_name {
  color: #482D1D !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  line-height: 1.6 !important;
}
.payment_card_description {
  color: #778399 !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
  text-align: center !important;
  word-break: break-word !important;
}
.payment_card_img_container {
  width: 100% !important;
  max-width: 190px !important;
  margin: 10px auto !important;
}
.payment_card_img_container .payment_card_img,
.payment_card_img_container img {
  width: 100% !important;
  max-height: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
}

/* Transfer receipt inputs */
#transfer-receipt-upload {
  width: 100% !important;
  margin: 10px 0 0 !important;
}
#transfer-receipt-upload input {
  box-sizing: border-box !important;
  min-height: 46px !important;
  border: 1px solid #E8D9C2 !important;
  border-radius: 11px !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
  background: #FFFFFF !important;
}
#transfer-receipt-upload input[type="file"] {
  padding: 8px !important;
  font-size: 12px !important;
}
#transfer-receipt-upload input[type="file"]::file-selector-button {
  background: #F8F3E8 !important;
  color: #482D1D !important;
  border: 0 !important;
  border-inline-end: 1px solid #E8D9C2 !important;
  padding: 10px !important;
  font-family: "IBM Plex Sans Arabic", sans-serif !important;
}
.payment_card_content * {
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .payment_card_content {
    padding: 14px 12px !important;
    border-radius: 14px !important;
  }
  .payment_card_img_container {
    max-width: 175px !important;
  }
  .payment_card_img_container .payment_card_img,
  .payment_card_img_container img {
    height: 48px !important;
    max-height: 48px !important;
  }
  #transfer-receipt-upload input {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #transfer-receipt-upload input[type="file"] {
    font-size: 11px !important;
  }
  #checkout-button .checkout_buy_now {
    min-height: 48px !important;
    border-radius: 13px !important;
  }
}
