/* Checkout popup (static/_checkout.js). Same palette, fonts and pill shapes as the shop; logical properties so the
   Arabic (RTL) pages mirror it without extra rules. */
.nn-co { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; font-family: var(--font-body-family); color: #004542; }
.nn-co[hidden] { display: none; }
.nn-co__backdrop { position: absolute; inset: 0; background: rgba(0, 41, 39, .55); animation: nn-co-fade .2s ease; }
.nn-co__panel { position: relative; display: flex; flex-direction: column; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: #fbf7ed; border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; animation: nn-co-up .25s ease; }
.nn-co__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-block-end: 1px solid rgba(0, 69, 66, .15); }
.nn-co__title { margin: 0; font-family: var(--font-heading-family); font-size: 2.2rem; letter-spacing: .02em; text-transform: uppercase; color: #004542; line-height: 1.2; }
.nn-co__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #004542; cursor: pointer; }
.nn-co__close:hover { background: rgba(0, 69, 66, .08); }
.nn-co__close svg { width: 18px; height: 18px; }
.nn-co__body { overflow-y: auto; padding: 18px 22px 22px; -webkit-overflow-scrolling: touch; }

/* order summary */
.nn-co__summary { background: #fff; border-radius: 16px; padding: 14px 16px; margin-block-end: 14px; }
.nn-co__items { list-style: none; margin: 0; padding: 0; }
.nn-co__item { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.nn-co__item + .nn-co__item { border-block-start: 1px solid rgba(0, 69, 66, .1); }
.nn-co__thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f3ead8; }
.nn-co__item-text { flex: 1 1 auto; min-width: 0; font-size: 1.4rem; line-height: 1.35; }
.nn-co__item-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nn-co__item-qty { color: #4b6a62; font-size: 1.3rem; }
.nn-co__item-price { flex: 0 0 auto; font-weight: 600; font-size: 1.4rem; white-space: nowrap; }
.nn-co__totals { margin-block-start: 8px; padding-block-start: 10px; border-block-start: 1px dashed rgba(0, 69, 66, .25); font-size: 1.4rem; }
.nn-co__row { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; }
.nn-co__row--total { font-size: 1.7rem; font-weight: 700; padding-block-start: 6px; }
.nn-co__free { color: #0a8a5f; font-weight: 600; }

/* delivery & payment */
.nn-co__info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block-end: 16px; }
.nn-co__badge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #e6f7f6; font-size: 1.3rem; line-height: 1.3; }
.nn-co__badge svg { flex: 0 0 26px; width: 26px; height: 26px; color: #004542; }
.nn-co__badge strong { display: block; font-size: 1.4rem; }

/* fields */
.nn-co__field { margin-block-end: 12px; }
.nn-co__label { display: block; margin-block-end: 5px; font-size: 1.4rem; font-weight: 600; }
.nn-co__label span { color: #e60073; }
.nn-co__input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 18px; border: 1.5px solid rgba(0, 69, 66, .35); border-radius: 26px; background: #fff; color: #004542; font: inherit; font-size: 1.6rem; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.nn-co__input { min-height: 84px; border-radius: 18px; resize: vertical; }
.nn-co__input:focus { border-color: #004542; box-shadow: 0 0 0 3px rgba(52, 211, 207, .45); }
.nn-co__field.is-invalid .nn-co__input { border-color: #d0021b; }
.nn-co__err { display: none; margin-block-start: 4px; color: #d0021b; font-size: 1.3rem; }
.nn-co__field.is-invalid .nn-co__err { display: block; }
.nn-co__input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .nn-co__input[type="tel"] { text-align: end; }

/* city search */
.nn-co__city { position: relative; }
.nn-co__list { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 4px); z-index: 2; max-height: 220px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; background: #fff; border: 1.5px solid #004542; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.nn-co__list[hidden] { display: none; }
.nn-co__opt { padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 1.5rem; }
.nn-co__opt small { color: #4b6a62; margin-inline-start: 6px; }
.nn-co__opt[aria-selected="true"], .nn-co__opt:hover { background: #e6f7f6; }
.nn-co__none { padding: 9px 12px; color: #4b6a62; font-size: 1.4rem; }

.nn-co__hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nn-co__alert { display: none; margin-block: 4px 12px; padding: 10px 14px; border-radius: 14px; background: #fde8ec; color: #a1001f; font-size: 1.4rem; }
.nn-co__alert.is-shown { display: block; }
.nn-co__submit { width: 100%; min-height: 54px; margin-block-start: 6px; border: 0; border-radius: 40px; background: #34d3cf; color: #004542; font: inherit; font-size: 1.7rem; font-weight: 700; cursor: pointer; transition: filter .15s, transform .1s; }
.nn-co__submit:hover { filter: brightness(.96); }
.nn-co__submit:active { transform: scale(.99); }
.nn-co__submit[disabled] { opacity: .65; cursor: progress; }
.nn-co__note { margin: 10px 0 0; text-align: center; color: #4b6a62; font-size: 1.25rem; }

/* thank-you screen */
.nn-co__thanks { text-align: center; }
.nn-co__thanks[hidden] { display: none; }
.nn-co__check { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-block: 4px 10px; border-radius: 50%; background: #34d3cf; color: #004542; }
.nn-co__check svg { width: 30px; height: 30px; }
.nn-co__thanks-title { margin: 0 0 4px; font-family: var(--font-heading-family); font-size: 2.6rem; text-transform: uppercase; line-height: 1.2; }
.nn-co__number { margin: 0 0 14px; font-size: 1.5rem; }
.nn-co__number strong { font-size: 1.7rem; }
.nn-co__recap { text-align: start; background: #fff; border-radius: 16px; padding: 14px 16px; margin-block-end: 14px; font-size: 1.4rem; }
.nn-co__recap dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; }
.nn-co__recap dt { color: #4b6a62; }
.nn-co__recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.nn-co__next { margin: 0 0 14px; color: #4b6a62; font-size: 1.4rem; line-height: 1.45; }
.nn-co__wa { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border-radius: 40px; background: #25d366; color: #fff; font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.nn-co__wa svg { width: 24px; height: 24px; }
.nn-co__continue { width: 100%; min-height: 48px; margin-block-start: 10px; border: 1.5px solid #004542; border-radius: 40px; background: transparent; color: #004542; font: inherit; font-size: 1.5rem; font-weight: 600; cursor: pointer; }

@keyframes nn-co-fade { from { opacity: 0; } }
@keyframes nn-co-up { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 749px) {
  .nn-co { align-items: flex-end; }
  .nn-co__panel { width: 100vw; max-height: 94vh; border-radius: 22px 22px 0 0; }
  .nn-co__info { grid-template-columns: 1fr; }
  .nn-co__title { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { .nn-co__backdrop, .nn-co__panel { animation: none; } }
body.nn-co-open { overflow: hidden; }

/* order tracking page */
.nn-track { max-width: 520px; }
.nn-track__result { margin-block-start: 18px; }
.nn-track__steps { display: flex; justify-content: space-between; gap: 6px; margin: 14px 0 16px; padding: 0; list-style: none; counter-reset: s; }
.nn-track__step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 1.25rem; color: #8aa39d; }
.nn-track__step::before { content: ""; position: absolute; inset-block-start: 9px; inset-inline-end: 50%; width: 100%; height: 3px; background: #dfe9e6; z-index: 0; }
.nn-track__step:first-child::before { display: none; }
.nn-track__step.is-done { color: #004542; font-weight: 600; }
.nn-track__step.is-done::before { background: #34d3cf; }
.nn-track__dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #dfe9e6; border: 3px solid #fbf7ed; box-shadow: 0 0 0 2px #dfe9e6; }
.nn-track__step.is-done .nn-track__dot { background: #34d3cf; box-shadow: 0 0 0 2px #34d3cf; }
.nn-track__step.is-current .nn-track__dot { background: #004542; box-shadow: 0 0 0 2px #004542; }

/* language switcher: header pill (desktop) and mobile menu link */
.nn-lang { display: inline-flex; align-items: center; justify-content: center; min-width: 3.6rem; height: 3.2rem; padding: 0 1.1rem; margin-inline-end: .6rem; border: 1.5px solid currentColor; border-radius: 2rem; font-size: 1.3rem; font-weight: 700; line-height: 1; letter-spacing: .04em; text-decoration: none; color: rgb(var(--color-foreground)); }
.nn-lang:hover { background: rgba(var(--color-foreground), .06); }
.nn-lang-mobile { margin-block-start: .4rem; }
/* the switcher takes 58px next to the icons: the search box gives them back, so the menu stays on one line */
@media screen and (min-width: 990px) {
  .header__icons > .header__search { width: 142px; max-width: 142px; }
  .header__icons > .header__search :is(details, .search-modal, .search-modal__content, .field, form) { max-width: 142px; }
}
.desktop-localization-wrapper { display: flex; align-items: center; align-self: center; }
/* the tracking page reuses the policy layout; give it a readable, centred column */
.shopify-policy__container:has([data-nn-track]) { max-width: 60rem; margin-inline: auto; padding: 4rem 2rem 6rem; box-sizing: border-box; }
.shopify-policy__container:has([data-nn-track]) h1 { margin-block: 0 1rem; }
