* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #1f1a17;
  --dark-orange: #d94f00;
  --orange: #ff7a00;
  --gold: #f5b400;
  --cream: #fff8ee;
  --white: #ffffff;
  --gray: #746b65;
  --border: #ead9c8;
}

body {
  font-family: Arial, sans-serif;
  background: var(--cream);
  color: var(--black);
  padding: 20px;
  padding-bottom: 100px;
}

body.cart-open {
  overflow: hidden;
}


/* HEADER */

.menu-header {
  text-align: center;
  padding: 15px 0 30px;
}

.restaurant-logo {
  width: 260px;
  max-width: 80vw;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

.menu-header p {
  color: #6b5a4d;
  font-size: 15px;
}


/* MAIN */

.branch-selector,
.categories,
.products {
  max-width: 1100px;
  margin: 0 auto 28px;
}

h2 {
  font-size: 24px;
  margin-bottom: 12px;
}


/* BRANCH */

#branch-select {
  width: 100%;
  max-width: 400px;

  padding: 12px 14px;

  font-size: 15px;
  font-weight: 600;

  color: var(--black);
  background: var(--white);

  border: 2px solid var(--dark-orange);
  border-radius: 10px;

  outline: none;
  cursor: pointer;
}


/* CATEGORIES */

#categories-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-btn {
  border: 2px solid var(--dark-orange);

  background: var(--white);
  color: var(--black);

  padding: 10px 18px;

  border-radius: 25px;

  font-size: 15px;
  font-weight: bold;

  cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
  background: var(--dark-orange);
  color: var(--white);
}


/* PRODUCT GRID */

#products-list {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


/* PRODUCT CARD */

.product-card {
  display: flex;
  align-items: center;

  min-height: 155px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 16px;

  padding: 12px;

  overflow: hidden;

  box-shadow:
    0 3px 10px
    rgba(0, 0, 0, 0.06);
}


/* FOOD IMAGE */

.product-image-wrap {
  width: 145px;
  min-width: 145px;
  height: 125px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 14px;
}

.product-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}


/* PRODUCT INFO */

.product-info {
  flex: 1;
  min-width: 0;
}

.product-info h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.product-ar {
  direction: rtl;
  text-align: left;

  color: var(--gray);

  margin-bottom: 8px;

  font-size: 15px;
}

.product-info p {
  color: var(--gray);

  font-size: 14px;

  margin-bottom: 10px;

  line-height: 1.5;
}


/* PRODUCT BOTTOM */

.product-bottom {
  display: flex;

  justify-content:
    space-between;

  align-items: center;

  gap: 12px;

  margin-top: 10px;
}

.product-price {
  color: var(--dark-orange);
  font-size: 21px;
}

.add-to-cart-btn {
  border: none;

  background: var(--black);
  color: var(--white);

  padding: 10px 16px;

  border-radius: 9px;

  font-size: 14px;
  font-weight: bold;

  cursor: pointer;
}

.add-to-cart-btn:hover {
  background: var(--dark-orange);
}


/* QUANTITY */

.quantity-control {
  display: flex;
  align-items: center;

  gap: 8px;

  background: var(--cream);

  border:
    2px solid var(--dark-orange);

  border-radius: 22px;

  padding: 3px;
}

.quantity-btn {
  width: 30px;
  height: 30px;

  border: none;
  border-radius: 50%;

  background: var(--dark-orange);
  color: var(--white);

  font-size: 20px;
  font-weight: bold;

  cursor: pointer;
}

.quantity-btn:hover {
  background: var(--black);
}

.quantity-number {
  min-width: 20px;

  text-align: center;

  font-size: 16px;
  font-weight: bold;
}


/* FLOATING CART BAR */

#cart-bar {
  position: fixed;

  left: 50%;
  bottom: 18px;

  transform:
    translate(-50%, 120px);

  width:
    calc(100% - 28px);

  max-width: 700px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  background: var(--black);
  color: var(--white);

  padding:
    12px 14px 12px 18px;

  border-radius: 16px;

  box-shadow:
    0 8px 25px
    rgba(0, 0, 0, 0.25);

  z-index: 1000;

  opacity: 0;
  pointer-events: none;

  transition: 0.25s ease;
}

#cart-bar.visible {
  transform:
    translate(-50%, 0);

  opacity: 1;

  pointer-events: auto;
}

.cart-summary {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 15px;
}

.cart-icon {
  font-size: 21px;
}

#cart-total {
  color: var(--gold);
  font-size: 18px;
}

.cart-divider {
  opacity: 0.45;
}

#view-cart-btn {
  border: none;

  background: var(--dark-orange);
  color: var(--white);

  padding: 11px 18px;

  border-radius: 10px;

  font-size: 14px;
  font-weight: bold;

  cursor: pointer;
}


/* CART MODAL */

#cart-modal {
  position: fixed;
  inset: 0;

  z-index: 2000;

  pointer-events: none;
  visibility: hidden;
}

#cart-modal.open {
  pointer-events: auto;
  visibility: visible;
}

.cart-modal-overlay {
  position: absolute;
  inset: 0;

  background:
    rgba(0, 0, 0, 0.55);

  opacity: 0;

  transition: 0.25s;
}

#cart-modal.open
.cart-modal-overlay {
  opacity: 1;
}

.cart-modal-panel {
  position: absolute;

  left: 50%;
  bottom: 0;

  transform:
    translate(-50%, 110%);

  width: 100%;
  max-width: 680px;

  max-height: 82vh;

  display: flex;
  flex-direction: column;

  background: var(--cream);

  border-radius:
    22px 22px 0 0;

  box-shadow:
    0 -8px 30px
    rgba(0, 0, 0, 0.22);

  transition: 0.3s ease;
}

#cart-modal.open
.cart-modal-panel {
  transform:
    translate(-50%, 0);
}


/* CART HEADER */

.cart-modal-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 20px;

  border-bottom:
    1px solid var(--border);
}

.cart-modal-header h2 {
  margin: 0;
}

#close-cart-btn {
  width: 38px;
  height: 38px;

  border: none;

  border-radius: 50%;

  background: var(--white);

  color: var(--black);

  font-size: 27px;

  cursor: pointer;
}


/* CART ITEMS */

#cart-modal-items {
  padding: 10px 18px;

  overflow-y: auto;
}

.cart-modal-item {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px 0;

  border-bottom:
    1px solid var(--border);
}

.cart-item-image-wrap {
  width: 80px;
  min-width: 80px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 17px;
  margin-bottom: 3px;
}

.cart-item-ar {
  direction: rtl;
  text-align: left;

  color: var(--gray);

  font-size: 13px;

  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--dark-orange);
}


/* CART ITEM QUANTITY */

.cart-item-quantity {
  display: flex;
  align-items: center;

  gap: 7px;

  border:
    2px solid var(--dark-orange);

  border-radius: 22px;

  padding: 3px;
}

.cart-item-quantity button {
  width: 28px;
  height: 28px;

  border: none;

  border-radius: 50%;

  background: var(--dark-orange);
  color: var(--white);

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;
}

.cart-item-quantity span {
  min-width: 18px;

  text-align: center;

  font-weight: bold;
}


/* CART FOOTER */

.cart-modal-footer {
  padding: 18px 20px;

  background: var(--white);

  border-top:
    1px solid var(--border);
}

.cart-modal-total-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 14px;

  font-size: 19px;
}

#cart-modal-total {
  color: var(--dark-orange);

  font-size: 23px;
}

#continue-checkout-btn {
  width: 100%;

  border: none;

  background: var(--dark-orange);
  color: var(--white);

  padding: 14px;

  border-radius: 12px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
}

#continue-checkout-btn:hover {
  background: var(--black);
}

.empty-cart {
  padding: 35px;

  text-align: center;

  color: var(--gray);
}


/* PAYMENT METHODS */

.payment-method-section {
  margin-bottom: 18px;
  padding: 14px;

  background: #f8f6f3;

  border-radius: 10px;
}

.payment-method-title {
  display: block;
}

.payment-options-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;

  margin-top: 12px;
}

.payment-option {
  display: flex;
  align-items: center;

  gap: 10px;

  min-height: 58px;

  padding: 10px 12px;

  background: var(--white);

  border: 1px solid #e1ddd9;
  border-radius: 9px;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.payment-option:hover {
  border-color: var(--dark-orange);
}

.payment-option.selected {
  background: #fff7f1;

  border: 2px solid var(--dark-orange);

  box-shadow:
    0 0 0 1px
    rgba(217, 79, 0, 0.08);
}

.payment-option:active {
  transform: scale(0.99);
}

.payment-option input[type="radio"] {
  flex-shrink: 0;

  accent-color: var(--dark-orange);
}

.payment-icon {
  height: 32px;

  object-fit: contain;

  flex-shrink: 0;
}

.payment-icon-standard {
  width: 38px;
}

.payment-icon-brand {
  width: 42px;
}

.payment-label {
  font-weight: 600;
}

@media (max-width: 420px) {

  .payment-options-grid {
    grid-template-columns: 1fr;
  }
}


/* MOBILE */

@media (max-width: 650px) {

  body {
    padding: 14px;
    padding-bottom: 95px;
  }

  .restaurant-logo {
    width: 220px;
  }

  #products-list {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .product-card {
    min-height: 130px;

    padding: 10px;
  }

  .product-image-wrap {
    width: 105px;
    min-width: 105px;
    height: 100px;

    margin-right: 10px;
  }

  .product-info h3 {
    font-size: 17px;
  }

  .product-ar {
    font-size: 13px;
  }

  .product-price {
    font-size: 18px;
  }

  .add-to-cart-btn {
    padding: 9px 11px;

    font-size: 12px;
  }

  .category-btn {
    padding: 9px 14px;

    font-size: 14px;
  }

  #branch-select {
    max-width: 100%;
  }

  .cart-modal-panel {
    max-height: 88vh;
  }
}


@media (max-width: 500px) {

  #cart-bar {
    bottom: 10px;

    width:
      calc(100% - 20px);

    padding:
      10px 11px 10px 14px;
  }

  .cart-summary {
    gap: 6px;

    font-size: 13px;
  }

  #cart-total {
    font-size: 16px;
  }

  #view-cart-btn {
    padding: 10px 13px;

    font-size: 13px;
  }

  .cart-item-image-wrap {
    width: 62px;
    min-width: 62px;
    height: 58px;
  }

  .cart-item-info h3 {
    font-size: 15px;
  }
}

/* FIX CHECKOUT FOOTER / PLACE ORDER BUTTON */

#cart-modal-panel > div[dir] {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 82vh;
  min-height: 0;
}

#cart-modal-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.cart-modal-header,
.cart-modal-footer {
  flex-shrink: 0;
}

@media (max-width: 650px) {
  #cart-modal-panel > div[dir] {
    max-height: 88vh;
  }
}

/* ======================================================
   BILINGUAL SITE CONTROLS + SECTION HEADINGS
====================================================== */

.home-language-switcher {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.language-switcher {
  display: inline-flex;
  overflow: hidden;
  border: 2px solid var(--dark-orange);
  border-radius: 22px;
  background: var(--white);
  direction: ltr;
}

.language-btn {
  min-width: 48px;
  border: none;
  padding: 7px 12px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.language-btn.active {
  background: var(--dark-orange);
  color: var(--white);
}

.branch-selector,
.categories {
  text-align: center;
}

.section-title {
  display: table;
  margin: 0 auto 16px;
  padding: 9px 22px;
  border-radius: 12px;
  background: var(--dark-orange);
  color: var(--white);
  font-size: 20px;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(217, 79, 0, 0.18);
}

#branch-select {
  display: block;
  margin-inline: auto;
}

#categories-list {
  justify-content: center;
}

.products > .section-title {
  margin-inline: auto;
}

.product-image-wrap {
  margin-right: 0;
  margin-inline-end: 14px;
}

.product-info {
  text-align: start;
}

.product-secondary,
.cart-item-secondary {
  color: var(--gray);
  margin-bottom: 8px;
  font-size: 14px;
  text-align: start;
}

.cart-item-secondary {
  margin-bottom: 5px;
  font-size: 13px;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-to-cart-btn {
  border: none;
  background: none;
  color: var(--black);
  margin-bottom: 6px;
  font-weight: 700;
  cursor: pointer;
}

.order-success-content {
  text-align: center;
  padding: 35px 20px !important;
}

.order-success-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.order-success-message {
  margin-top: 10px;
  margin-bottom: 22px;
}

.order-success-card {
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
}

.order-success-number {
  display: block;
  margin-top: 10px;
  font-size: 26px;
  color: var(--dark-orange);
}

.order-success-label {
  margin-top: 20px;
  color: var(--gray);
}

.order-success-payment {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.order-success-total {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.order-success-lbp {
  margin-top: 6px;
  color: var(--gray);
}

html[dir="rtl"] .product-card,
html[dir="rtl"] .cart-modal-item {
  direction: rtl;
}

html[dir="rtl"] .product-bottom,
html[dir="rtl"] .cart-modal-total-row,
html[dir="rtl"] #cart-bar {
  direction: rtl;
}

html[dir="rtl"] .cart-item-quantity,
html[dir="rtl"] .quantity-control,
html[dir="rtl"] .language-switcher {
  direction: ltr;
}

@media (max-width: 650px) {
  .section-title {
    font-size: 18px;
    padding: 8px 18px;
  }

  .product-image-wrap {
    margin-right: 0;
    margin-inline-end: 10px;
  }

  .modal-header-actions {
    gap: 8px;
  }

  .language-btn {
    min-width: 42px;
    padding: 6px 9px;
    font-size: 12px;
  }
}

@media (max-width: 430px) {
  .cart-modal-header {
    gap: 8px;
    padding: 15px 14px;
  }

  .cart-modal-header h2 {
    font-size: 20px;
  }

  .modal-header-actions {
    gap: 6px;
  }

  #close-cart-btn {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}



/* ======================================================
   INTERNATIONAL PHONE + SAVED CUSTOMER DETAILS
====================================================== */

.checkout-field-group {
  margin-bottom: 16px;
}

.checkout-field-group > label,
.saved-address-wrap > label {
  display: block;
}

.phone-input-row {
  display: grid;
  grid-template-columns: minmax(175px, 0.95fr) minmax(150px, 1.45fr);
  gap: 8px;
  margin-top: 6px;
}

.phone-country-select,
.phone-number-input,
.saved-address-select,
.checkout-text-input,
.checkout-textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  border-radius: 9px;
  background: #ffffff;
  color: #1f1a17;
  font-size: 16px;
  outline: none;
}

.phone-country-select,
.phone-number-input,
.checkout-text-input {
  min-height: 46px;
  padding: 10px 11px;
}

.phone-number-input {
  direction: ltr;
  text-align: left;
}

.saved-address-select {
  min-height: 46px;
  padding: 10px 11px;
  margin-top: 6px;
}

.checkout-textarea {
  padding: 11px;
  margin-top: 6px;
  resize: vertical;
  min-height: 88px;
}

.phone-country-select:focus,
.phone-number-input:focus,
.saved-address-select:focus,
.checkout-text-input:focus,
.checkout-textarea:focus {
  border-color: #d94f00;
  box-shadow: 0 0 0 3px rgba(217, 79, 0, 0.10);
}

.customer-lookup-message {
  min-height: 18px;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.customer-lookup-message.state-loading {
  color: #6b7280;
}

.customer-lookup-message.state-success {
  color: #198754;
}

.customer-lookup-message.state-new {
  color: #6b7280;
}

.customer-lookup-message.state-error {
  color: #b00020;
}

.delivery-address-group {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #ece6e1;
  border-radius: 12px;
  background: #fffaf7;
}

.saved-address-wrap {
  margin-bottom: 14px;
}

.address-text-group,
.address-label-group {
  margin-bottom: 14px;
}

.default-address-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.default-address-option input {
  width: 17px;
  height: 17px;
  accent-color: #d94f00;
}

html[dir="rtl"] .phone-input-row,
html[dir="rtl"] .phone-country-select,
html[dir="rtl"] .phone-number-input {
  direction: ltr;
}

html[dir="rtl"] .saved-address-select {
  text-align: right;
}

@media (max-width: 620px) {

  .phone-input-row {
    grid-template-columns: 1fr;
  }

  .phone-country-select {
    min-height: 44px;
  }

}


/* ======================================================
   ORDER TRACKING
====================================================== */

.home-track-order-link {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 18px;
  border: 2px solid var(--dark-orange);
  border-radius: 22px;
  background: var(--white);
  color: var(--dark-orange);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-track-order-link:hover {
  background: var(--dark-orange);
  color: var(--white);
}

.order-success-actions {
  display: grid;
  gap: 10px;
}

.order-track-button,
.order-whatsapp-button {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.order-track-button {
  background: var(--dark-orange);
  color: var(--white);
}

.order-whatsapp-button {
  background: #25d366;
  color: var(--white);
}

.track-page {
  min-height: 100vh;
}

.track-shell {
  width: min(720px, 100%);
  margin: 0 auto;
}

.track-header {
  text-align: center;
  padding: 10px 0 24px;
}

.track-header .restaurant-logo {
  width: 210px;
}

.track-top-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.track-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.track-card h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 8px;
}

.track-intro {
  text-align: center;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 22px;
}

.track-form {
  display: grid;
  gap: 16px;
}

.track-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.track-phone-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.3fr);
  gap: 10px;
  direction: ltr;
}

.track-input,
.track-select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  outline: none;
}

.track-input:focus,
.track-select:focus {
  border-color: var(--dark-orange);
}

.track-pin-input {
  letter-spacing: 4px;
  font-weight: 800;
  text-align: center;
}

.track-submit {
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  background: var(--dark-orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.track-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.track-message {
  min-height: 22px;
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
}

.track-message.error {
  color: #b00020;
}

.track-result {
  margin-top: 20px;
}

.track-result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.track-order-heading {
  text-align: center;
  margin-bottom: 18px;
}

.track-order-heading strong {
  display: block;
  margin-top: 4px;
  color: var(--dark-orange);
  font-size: 28px;
}

.track-status-badge {
  display: table;
  margin: 0 auto 20px;
  padding: 8px 15px;
  border-radius: 20px;
  background: #fff0d6;
  font-weight: 800;
}

.track-status-badge.status-preparing,
.track-status-badge.status-confirmed {
  background: #e6f2ff;
}

.track-status-badge.status-ready {
  background: #e4f7ea;
}

.track-status-badge.status-completed {
  background: #e7eaee;
}

.track-status-badge.status-cancelled {
  background: #ffe1e1;
  color: #9d0000;
}

.track-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 22px;
}

.track-progress-step {
  text-align: center;
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
}

.track-progress-dot {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border: 2px solid #d8cec5;
  border-radius: 50%;
  background: var(--white);
}

.track-progress-step.done .track-progress-dot,
.track-progress-step.current .track-progress-dot {
  border-color: var(--dark-orange);
  background: var(--dark-orange);
}

.track-progress-step.current {
  color: var(--dark-orange);
}

.track-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.track-info-box {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fffaf4;
}

.track-info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--gray);
  font-size: 12px;
}

.track-items-title {
  margin: 6px 0 10px;
  font-size: 18px;
}

.track-item-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eee4db;
}

.track-item-row:last-child {
  border-bottom: none;
}

.track-item-name {
  font-weight: 700;
}

.track-item-secondary {
  margin-top: 3px;
  color: var(--gray);
  font-size: 12px;
}

.track-item-price {
  text-align: end;
  white-space: nowrap;
}

.track-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
  font-size: 18px;
}

.track-total-lbp {
  margin-top: 4px;
  color: var(--gray);
  text-align: end;
  font-size: 13px;
}

.track-expiry-note {
  margin-top: 18px;
  color: var(--gray);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 650px) {
  .track-card,
  .track-result-card {
    padding: 17px;
  }

  .track-card h1 {
    font-size: 23px;
  }

  .track-phone-row {
    grid-template-columns: 1fr;
  }

  .track-info-grid {
    grid-template-columns: 1fr;
  }

  .track-progress {
    gap: 3px;
  }

  .track-progress-step {
    font-size: 10px;
  }
}


/* ======================================================
   CUSTOMER TRACKING ACTIONS
====================================================== */

.track-customer-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.track-cancel-button,
.track-add-more-button {
  width: 100%;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.track-cancel-button {
  border: 1px solid #b00020;
  background: #ffffff;
  color: #b00020;
}

.track-cancel-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.track-add-more-button {
  border: 1px solid var(--dark-orange);
  background: var(--dark-orange);
  color: var(--white);
}

.track-cancel-countdown {
  font-size: 13px;
  font-weight: 700;
}


/* ======================================================
   TRACKING CHANGE LOCK NOTICE
====================================================== */

.track-changes-locked {
  padding: 12px 14px;
  border: 1px solid #e0b06c;
  border-radius: 10px;
  background: #fff6e8;
  color: #6b4717;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}


/* ======================================================
   FLOATING TRACK ORDER
====================================================== */

.floating-track-order-btn {
  position: fixed;
  right: 8px;
  bottom: 18px;
  z-index: 850;
  border: 1px solid var(--dark-orange);
  border-radius: 24px;
  padding: 10px 15px;
  background: var(--white);
  color: var(--dark-orange);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.13);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

html[dir="rtl"] .floating-track-order-btn {
  right: auto;
  left: 18px;
}

.tracking-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.tracking-popup.open {
  display: block;
}

.tracking-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.tracking-popup-panel {
  position: absolute;
  top: 4vh;
  left: 50%;
  width: min(760px, calc(100% - 24px));
  height: 92vh;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

.tracking-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.tracking-popup-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

body.tracking-popup-open {
  overflow: hidden;
}


/* ======================================================
   EDIT ORDER MODE
====================================================== */

.edit-order-banner {
  position: sticky;
  top: 0;
  z-index: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 auto 14px;
  padding: 10px 14px;
  background: #fff3df;
  border-top: 1px solid #e8bd7c;
  border-bottom: 1px solid #e8bd7c;
  color: #6f4512;
  font-size: 14px;
}

.edit-order-banner strong {
  color: var(--dark-orange);
}


/* ======================================================
   TRACK EMBEDDED / REQUEST CHANGE
====================================================== */

.track-embedded {
  padding-top: 12px;
}

.track-embedded .track-header {
  display: none;
}

.track-embedded .track-shell {
  width: min(720px, calc(100% - 18px));
}

.track-request-change-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #25d366;
  border-radius: 10px;
  padding: 13px 16px;
  background: #25d366;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.track-request-change-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  background: #128c4a;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
}

.track-request-change-icon .fa-whatsapp {
  color: #ffffff;
}

@media (max-width: 650px) {

  .floating-track-order-btn {
    right: 8px;
    bottom: 12px;
    padding: 9px 13px;
    font-size: 13px;
  }

  html[dir="rtl"] .floating-track-order-btn {
    right: auto;
    left: 12px;
  }

  .tracking-popup-panel {
    top: 2vh;
    width: calc(100% - 12px);
    height: 96vh;
    border-radius: 14px;
  }
}


/* Keep floating Track Order clear of the cart bar only when needed */
body:has(#cart-bar.visible) .floating-track-order-btn {
  bottom: 84px;
}

/* On wider screens, keep the button in the page gutter so it does not cover product cards */
@media (min-width: 1100px) {
  .floating-track-order-btn {
    right: 8px;
    max-width: 128px;
    padding-left: 11px;
    padding-right: 11px;
  }

  html[dir="rtl"] .floating-track-order-btn {
    right: auto;
    left: 8px;
  }
}


@media (max-width: 650px) {
  body:has(#cart-bar.visible) .floating-track-order-btn {
    bottom: 78px;
  }
}


/* ======================================================
   EDIT ORDER - ADD MORE ITEMS
====================================================== */

.edit-add-more-items-btn {
  width: 100%;
  margin-bottom: 9px;
  border: 1px solid var(--dark-orange);
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--white);
  color: var(--dark-orange);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.edit-add-more-items-btn:hover {
  background: #fff4e7;
}


/* ======================================================
   TRACK POPUP LANGUAGE SWITCHER
====================================================== */

.track-embedded-language-switcher {
  display: none;
}

.track-embedded .track-embedded-language-switcher {
  display: flex;
  justify-content: flex-start;
  width: min(700px, calc(100% - 34px));
  margin: 2px auto 10px;
}

html[dir="rtl"] .track-embedded .track-embedded-language-switcher {
  justify-content: flex-end;
}

.track-embedded .track-embedded-language-switcher .language-btn {
  min-width: 48px;
}


/* ======================================================
   DIGITAL RECEIPT - VIEW ONLY
====================================================== */

.order-success-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.order-receipt-button,
.track-receipt-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d94f00;
  border-radius: 9px;
  background: #fff7f1;
  color: #d94f00;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.order-receipt-button:hover,
.track-receipt-button:hover {
  background: #d94f00;
  color: #ffffff;
}

.track-receipt-button {
  margin-bottom: 2px;
}

.digital-receipt-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.digital-receipt-card {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #ffffff;
  color: #222222;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.digital-receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #d8d8d8;
}

.digital-receipt-kicker {
  color: #d94f00;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.digital-receipt-header h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.digital-receipt-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: none;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333333;
  font-size: 22px;
  cursor: pointer;
}

.digital-receipt-order-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 16px 0;
  padding: 13px 14px;
  border-radius: 11px;
  background: #fff7f1;
}

.digital-receipt-order-number span {
  color: #666666;
  font-weight: 700;
}

.digital-receipt-order-number strong {
  color: #d94f00;
  font-size: 22px;
}

.digital-receipt-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.digital-receipt-info-row {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #eeeeee;
  border-radius: 9px;
  background: #fafafa;
}

.digital-receipt-info-row span {
  display: block;
  margin-bottom: 4px;
  color: #777777;
  font-size: 11px;
  font-weight: 700;
}

.digital-receipt-info-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.digital-receipt-pin {
  direction: ltr;
  unicode-bidi: embed;
  letter-spacing: 2px;
}

.digital-receipt-divider {
  margin: 18px 0 14px;
  border-top: 1px dashed #cfcfcf;
}

.digital-receipt-items-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.digital-receipt-items {
  display: grid;
}

.digital-receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 9px 0;
  border-bottom: 1px solid #eeeeee;
}

.digital-receipt-item > div {
  min-width: 0;
}

.digital-receipt-item strong {
  overflow-wrap: anywhere;
}

.digital-receipt-item span {
  margin-inline-start: 5px;
  color: #777777;
  font-size: 12px;
}

.digital-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid #e6e6e6;
}

.digital-receipt-total > span {
  font-weight: 900;
  font-size: 17px;
}

.digital-receipt-total > div {
  text-align: end;
}

.digital-receipt-total strong {
  display: block;
  font-size: 21px;
}

.digital-receipt-total small {
  display: block;
  margin-top: 3px;
  color: #777777;
  font-size: 12px;
}

.digital-receipt-close-button {
  width: 100%;
  min-height: 44px;
  margin-top: 17px;
  border: none;
  border-radius: 9px;
  background: #181818;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 620px) {

  .order-success-actions {
    grid-template-columns: 1fr;
  }

  .digital-receipt-overlay {
    align-items: stretch;
    padding: 8px;
  }

  .digital-receipt-card {
    max-height: calc(100vh - 16px);
    padding: 16px;
    border-radius: 13px;
  }

  .digital-receipt-info-grid {
    grid-template-columns: 1fr;
  }

}


/* ======================================================
   DIGITAL RECEIPT - SAVE IMAGE / PDF
====================================================== */

.digital-receipt-actions {
  display: grid;
  grid-template-columns:
    1fr 1fr;
  gap: 9px;
  margin-top: 17px;
}

.digital-receipt-save-button {
  min-height: 44px;
  border: 1px solid #d94f00;
  border-radius: 9px;
  background: #fff7f1;
  color: #d94f00;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}

.digital-receipt-save-button:hover:not(:disabled) {
  background: #d94f00;
  color: #ffffff;
}

.digital-receipt-save-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.digital-receipt-actions
.digital-receipt-close-button {
  grid-column: 1 / -1;
  margin-top: 0;
}

.digital-receipt-export-message {
  min-height: 18px;
  margin-top: 8px;
  color: #666666;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.digital-receipt-export-message.error {
  color: #b00020;
}

.digital-receipt-export-stage {
  position: fixed;
  top: 0;
  left: -100000px;
  z-index: -1;
  width: 560px;
  background: #ffffff;
  pointer-events: none;
}

.digital-receipt-export-copy {
  max-height: none !important;
  overflow: visible !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

@media (max-width: 620px) {

  .digital-receipt-actions {
    grid-template-columns: 1fr;
  }

  .digital-receipt-actions
  .digital-receipt-close-button {
    grid-column: auto;
  }

}


/* ======================================================
   DIGITAL RECEIPT - LOGO / EXPORT LAYOUT / SHARE
====================================================== */

.digital-receipt-card {
  position: relative;
}

.digital-receipt-print-area {
  width: 100%;
  background: #ffffff;
}

.digital-receipt-header {
  display: block;
  text-align: center;
}

.digital-receipt-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.digital-receipt-logo {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 82px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.digital-receipt-header h2 {
  text-align: center;
}

.digital-receipt-close {
  position: sticky;
  top: 0;
  float: inline-end;
  z-index: 4;
  margin-bottom: -36px;
}

.digital-receipt-actions {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.digital-receipt-actions
.digital-receipt-close-button {
  grid-column: 1 / -1;
}

.digital-receipt-export-stage {
  width: 760px !important;
}

.digital-receipt-export-copy {
  width: 760px !important;
  min-width: 760px !important;
  max-width: 760px !important;
  padding: 28px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
}

.digital-receipt-export-copy
.digital-receipt-info-grid {
  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;
}

.digital-receipt-export-copy
.digital-receipt-logo {
  max-width: 170px;
  max-height: 92px;
}

@media (max-width: 620px) {

  .digital-receipt-actions {
    grid-template-columns: 1fr;
  }

  .digital-receipt-actions
  .digital-receipt-close-button {
    grid-column: auto;
  }

  .digital-receipt-logo {
    max-width: 130px;
    max-height: 72px;
  }

}


/* ======================================================
   DIGITAL RECEIPT - EN / AR SWITCHER
====================================================== */

.digital-receipt-language-switcher {
  position: sticky;
  top: 0;
  z-index: 5;
  float: left;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: -36px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #ffffff;
}

.digital-receipt-language-switcher button {
  min-width: 48px;
  height: 34px;
  border: 0;
  background: #ffffff;
  color: #222222;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.digital-receipt-language-switcher button + button {
  border-left: 1px solid #e3e3e3;
}

.digital-receipt-language-switcher button.active {
  background: #d94f00;
  color: #ffffff;
}

.digital-receipt-language-switcher button:hover:not(.active) {
  background: #fff7f1;
  color: #d94f00;
}

@media (max-width: 620px) {

  .digital-receipt-language-switcher button {
    min-width: 44px;
    padding: 0 8px;
  }

}

/* ======================================================
   SAVED CUSTOMER PIN SECURITY
====================================================== */

.customer-pin-security {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #ead8c9;
  border-radius: 10px;
  background: #fffaf7;
}

.customer-pin-security[hidden] {
  display: none !important;
}

.customer-pin-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
}

.customer-pin-note,
.customer-pin-success,
.customer-pin-error {
  font-size: 13px;
  line-height: 1.5;
}

.customer-pin-success {
  color: #198754;
  font-weight: 800;
}

.customer-pin-error {
  color: #b00020;
  font-weight: 800;
}

.customer-pin-reset-note {
  color: #6b4717;
}


.customer-pin-create-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

#new-saved-customer-pin-input,
#confirm-saved-customer-pin-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #d5d5d5;
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
  letter-spacing: 3px;
  text-align: center;
  outline: none;
}

#new-saved-customer-pin-input:focus,
#confirm-saved-customer-pin-input:focus {
  border-color: #d94f00;
  box-shadow: 0 0 0 3px rgba(217, 79, 0, 0.10);
}

.customer-pin-entry-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

#saved-customer-pin-input {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #d5d5d5;
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
  letter-spacing: 3px;
  text-align: center;
  outline: none;
}

#saved-customer-pin-input:focus {
  border-color: #d94f00;
  box-shadow: 0 0 0 3px rgba(217, 79, 0, 0.10);
}

#verify-saved-customer-pin-btn {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--dark-orange);
  border-radius: 9px;
  background: var(--dark-orange);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

#verify-saved-customer-pin-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.customer-pin-link-btn {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dark-orange);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.saved-customer-pin-success-box {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #e0b06c;
  border-radius: 10px;
  background: #fff6e8;
}

.saved-customer-pin-success-help {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b4717;
}

/* ======================================================
   ADD MORE ITEMS - CART + CHECKOUT
====================================================== */

.add-more-items-btn {
  width: 100%;
  margin-top: 9px;
  padding: 12px 16px;
  border: 1px solid var(--dark-orange);
  border-radius: 10px;
  background: #ffffff;
  color: var(--dark-orange);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.add-more-items-btn:hover {
  background: #fff7f1;
}

@media (max-width: 620px) {
  .customer-pin-entry-row,
  .customer-pin-create-grid {
    grid-template-columns: 1fr;
  }
}


/* ======================================================
   CHECKOUT SECTIONS + DELIVERY SCHEDULING
====================================================== */

.checkout-section {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ece6e1;
  border-radius: 12px;
  background: #ffffff;
}

.checkout-section[hidden] {
  display: none !important;
}

.checkout-section-title {
  margin-bottom: 12px;
  color: #1f1a17;
  font-size: 17px;
  font-weight: 900;
}

.checkout-info-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #e2b98c;
  border-radius: 9px;
  background: #fff4e8;
  font-size: 13px;
  line-height: 1.5;
}

.checkout-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkout-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #ded8d3;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

.checkout-radio-option:has(input:checked) {
  border-color: var(--dark-orange);
  background: #fff5ef;
  color: var(--dark-orange);
}

.checkout-radio-option input {
  accent-color: var(--dark-orange);
}

.delivery-time-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-time-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid #ded8d3;
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
}

.delivery-time-option.selected {
  border-color: var(--dark-orange);
  background: #fff5ef;
}

.delivery-time-option.disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.delivery-time-option input {
  margin-top: 3px;
  accent-color: var(--dark-orange);
}

.delivery-time-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.delivery-time-option strong {
  font-size: 15px;
}

.delivery-time-option small {
  color: #6f655f;
  font-size: 12px;
  line-height: 1.35;
}

.delivery-schedule-picker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee4dd;
}

.delivery-date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.delivery-date-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border: 1px solid #ded8d3;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.delivery-date-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-date-option.selected {
  border-color: var(--dark-orange);
  background: #fff5ef;
  color: var(--dark-orange);
}

.delivery-date-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.delivery-date-option strong {
  font-size: 13px;
}

.delivery-date-option small {
  color: #6f655f;
  font-size: 11px;
  line-height: 1.3;
}

.delivery-slot-field {
  margin-top: 12px;
}

.delivery-slot-field label {
  display: block;
  margin-bottom: 6px;
}

.delivery-time-status {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f7f5f3;
  color: #6f655f;
  font-size: 13px;
  line-height: 1.45;
}

.delivery-time-error {
  background: #fff0f0;
  color: #a51e2d;
}

.saved-customer-pin-section .customer-pin-security {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.saved-customer-pin-section .customer-pin-title {
  display: none;
}

.checkout-error {
  min-height: 18px;
  margin: 2px 0 10px;
  color: #b00020;
  font-weight: 800;
  line-height: 1.4;
}

html[dir="rtl"] .delivery-time-option,
html[dir="rtl"] .checkout-radio-option {
  text-align: right;
}

@media (max-width: 620px) {

  .delivery-time-choice-grid {
    grid-template-columns: 1fr;
  }

  .delivery-date-grid {
    grid-template-columns: 1fr;
  }

  .checkout-choice-row {
    gap: 7px;
  }

  .checkout-radio-option {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }

}



/* ======================================================
   COMPACT CHECKOUT DROPDOWNS
====================================================== */

.checkout-compact-select {
  width: min(100%, 260px);
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #ded8d3;
  border-radius: 9px;
  background: #ffffff;
  color: #1f1a17;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.checkout-compact-select:focus {
  outline: none;
  border-color: var(--dark-orange);
  box-shadow: 0 0 0 2px rgba(217, 79, 0, 0.10);
}

.checkout-total-label {
  font-weight: 900;
}

[dir="rtl"] .checkout-compact-select {
  padding: 7px 10px 7px 34px;
}

@media (max-width: 500px) {
  .checkout-compact-select {
    width: 100%;
  }
}


/* ======================================================
   COMPACT ORDER TYPE + DELIVERY TIME ROW
====================================================== */

.checkout-order-delivery-section {
  padding: 12px 14px;
}

.checkout-top-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checkout-top-field {
  min-width: 0;
}

.checkout-top-field[hidden] {
  display: none !important;
}

.checkout-top-fields:has(#delivery-time-section[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.checkout-top-field .checkout-section-title {
  margin-bottom: 7px;
  font-size: 16px;
}

.checkout-top-field .checkout-compact-select,
.checkout-delivery-time-select {
  width: 100%;
  max-width: none;
}

#delivery-schedule-content:not([hidden]) {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee4dd;
}

#delivery-schedule-content .delivery-schedule-picker {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.checkout-inline-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
}

@media (max-width: 520px) {
  .checkout-top-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ======================================================
   PAYMENT METHOD DROPDOWN WITH REAL ICONS
====================================================== */

.payment-custom-select {
  position: relative;
  width: min(100%, 260px);
}

.payment-custom-trigger {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #ded8d3;
  border-radius: 9px;
  background: #fff;
  color: #1f1a17;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.payment-custom-trigger:focus {
  outline: none;
  border-color: var(--dark-orange);
  box-shadow: 0 0 0 2px rgba(217, 79, 0, 0.10);
}

.payment-custom-selected,
.payment-custom-option {
  display: flex;
  align-items: center;
  gap: 9px;
}

.payment-custom-icon {
  width: 28px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 28px;
}

.payment-custom-arrow {
  font-size: 18px;
  line-height: 1;
}

.payment-custom-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  width: 100%;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #ded8d3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.payment-custom-option {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1f1a17;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.payment-custom-option:hover,
.payment-custom-option.selected {
  background: #fff4ec;
}

html[dir="rtl"] .payment-custom-option,
html[dir="rtl"] .payment-custom-trigger {
  direction: rtl;
}

@media (max-width: 500px) {
  .payment-custom-select {
    width: 100%;
  }
}
