:root {
  --color-bg: #fcfcfd;
  --color-text: #0a131f;
  --color-text-muted: rgba(10, 19, 31, 0.72);
  --color-accent: #ffa000;
  --color-accent-hover: #ff8b00;
  --color-link: #006eff;
  --color-footer: #0a131f;
  --color-footer-text: #ffffff;
  --color-badge-border: #e0e0e0;
  --radius-btn: 8px;
  --radius-card: 8px;
  --shadow-soft: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
  --header-h: 80px;
  --max-content: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(10, 19, 31, 0.06);
}

.header-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

@media (min-width: 600px) {
  .header-inner {
    padding: 14px 40px;
  }
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-card);
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .brand-logo--mobile {
    display: none;
  }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--color-badge-border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  cursor: default;
}

.status-pill[data-open="true"] {
  color: #2e7d32;
  border-color: #81c784;
  background: #e8f5e9;
}

.status-pill[data-open="true"] .status-dot {
  color: #2e7d32;
}

.status-pill[data-open="false"] .status-dot {
  color: #f44336;
}

.status-dot {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 0 12px;
  min-height: 36px;
  font-size: 16px;
  line-height: 1.25;
  text-transform: none;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: scale(1.02);
  text-decoration: none;
}

.btn--outline {
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(10, 19, 31, 0.18);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  min-height: 36px;
  font-size: 15px;
  line-height: 1.25;
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(10, 19, 31, 0.04);
  text-decoration: none;
  transform: none;
}

@media (min-width: 600px) {
  .btn--primary {
    min-height: 52px;
    padding: 0 16px;
    font-size: 20px;
  }

  .btn--outline {
    min-height: 44px;
    padding: 0 14px;
    font-size: 16px;
  }
}

/* Main */
main {
  flex: 1;
}

.hero {
  padding: 24px 16px 48px;
}

.hero-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 52px;
    padding: 0 40px;
    min-height: 420px;
  }
}

.desktop-logo {
  display: none;
  width: 104px;
  height: 104px;
  border-radius: var(--radius-card);
  object-fit: cover;
}

@media (min-width: 960px) {
  .desktop-logo {
    display: block;
  }
}

.hero-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  text-align: center;
  margin: 16px 0 0;
  letter-spacing: 0.02em;
}

@media (min-width: 960px) {
  .hero-title {
    font-size: 40px;
    text-align: left;
    margin-top: 20px;
  }
}

.hero-lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  color: var(--color-text-muted);
}

@media (min-width: 960px) {
  .hero-lead {
    text-align: left;
  }
}

.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 960px) {
  .badges {
    justify-content: flex-start;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text);
}

.badge-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.divider-v {
  width: 1px;
  height: 28px;
  background: rgba(10, 19, 31, 0.08);
  margin: 0 8px;
}

.address-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.25;
  max-width: 100%;
}

.address-link:hover {
  background: rgba(10, 19, 31, 0.04);
  text-decoration: none;
}

.address-link svg:first-child {
  flex-shrink: 0;
  color: var(--color-accent);
}

.cta-wrap {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 32px 24px 0;
}

@media (min-width: 960px) {
  .cta-wrap {
    justify-items: start;
    padding-left: 0;
    padding-right: 0;
  }
}

.btn--hero {
  width: min(100%, 540px);
  min-height: 48px;
  font-size: 20px;
  border-radius: var(--radius-btn);
}

@media (min-width: 600px) {
  .btn--hero {
    min-height: 52px;
  }
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 16px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 1100px) {
  .footer-inner {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
  }
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-footer-text);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 1100px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    gap: 0;
  }
}

.footer-links a,
.footer-links button {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  color: inherit;
  font: inherit;
  background: none;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  text-decoration: underline;
}

@media (min-width: 1100px) {
  .footer-links a,
  .footer-links button {
    width: auto;
    border-top: none;
    border-left: 1px solid rgba(10, 19, 31, 0.12);
    padding: 8px 16px;
  }

  .footer-links a:first-child,
  .footer-links button:first-of-type {
    border-left: none;
  }
}

/* —— Menú (products.html) —— */
.menu-cover {
  width: 100%;
  height: 120px;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(to bottom, rgba(10, 19, 31, 0.15), rgba(10, 19, 31, 0.35)),
    url("https://d2nagnwby8accc.cloudfront.net/companies/backgrounds/c5001aab-6c01-4c7f-aac1-a3019779a8f3.webp")
      center / cover no-repeat;
}

@media (min-width: 600px) {
  .menu-cover {
    height: 160px;
  }
}

.menu-page-inner {
  max-width: 1096px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.menu-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  text-align: center;
}

@media (min-width: 960px) {
  .menu-identity {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    margin-top: 18px;
  }
}

.menu-identity__logo-wrap {
  flex-shrink: 0;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-soft);
  background: #fff;
  line-height: 0;
}

.menu-identity__logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

@media (min-width: 960px) {
  .menu-identity__logo {
    width: 112px;
    height: 112px;
  }
}

.menu-identity__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.menu-identity__address {
  margin-top: 8px;
  justify-content: center;
}

@media (min-width: 960px) {
  .menu-identity__address {
    justify-content: flex-start;
  }
}

.menu-identity__hint {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
  max-width: 560px;
}

.menu-identity__hint code {
  font-size: 12px;
  background: rgba(10, 19, 31, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.menu-toolbar {
  margin-top: 28px;
}

.menu-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-search {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  border: 1px solid rgba(10, 19, 31, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}

@media (min-width: 960px) {
  .menu-search {
    margin: 0;
  }
}

.menu-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 4px;
}

.menu-category-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 139, 0, 0.12);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.menu-category-chip:hover {
  border-color: rgba(255, 139, 0, 0.4);
  text-decoration: none;
}

.menu-error {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffebee;
  color: #b71c1c;
  font-size: 14px;
}

.menu-empty {
  margin-top: 24px;
  text-align: center;
  color: var(--color-text-muted);
}

.menu-category {
  margin-top: 32px;
}

.menu-category-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.menu-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.menu-product-grid--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.menu-product-grid--row .menu-product-card {
  flex: 0 0 min(280px, 85vw);
  max-width: 320px;
  scroll-snap-align: start;
}

@media (min-width: 800px) {
  .menu-product-grid:not(.menu-product-grid--row) {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }

  .menu-product-grid--row {
    gap: 20px;
  }

  .menu-product-grid--row .menu-product-card {
    flex-basis: 280px;
  }
}

.menu-product-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(10, 19, 31, 0.06);
}

.menu-product-card__thumb {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.menu-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.menu-product-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
}

.menu-product-card__price {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.menu-product-card__desc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
  flex: 1;
}

.menu-product-card__actions {
  margin-top: 14px;
}

.menu-product-card__wa {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.menu-product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.menu-product-card__add {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.menu-product-card__add:hover {
  background: var(--color-accent-hover);
}

.menu-product-card__add:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.menu-product-card__add--disabled,
.menu-product-card__add:disabled {
  background: rgba(10, 19, 31, 0.18);
  color: rgba(255, 255, 255, 0.75);
  cursor: not-allowed;
  box-shadow: none;
}

.menu-product-card__add--disabled:hover,
.menu-product-card__add:disabled:hover {
  background: rgba(10, 19, 31, 0.22);
}

.menu-product-card__oos {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: #b71c1c;
}

.menu-product-card__stock-hint {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(10, 19, 31, 0.55);
}

.order-bar {
  position: sticky;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(10, 19, 31, 0.1);
}

.order-bar__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-bar__summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.order-bar__count-line {
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 19, 31, 0.68);
  line-height: 1.25;
}

.order-bar__total-line {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.order-bar__cta {
  flex: 0 0 42%;
  max-width: 200px;
  min-width: 132px;
  min-height: 50px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: var(--color-accent-hover);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.12s ease;
}

.order-bar__cta:hover {
  background: var(--color-accent);
  transform: scale(1.02);
}

.order-bar__cta:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 80;
}

.overlay-backdrop[hidden] {
  display: none !important;
}

.overlay-sheet {
  position: fixed;
  inset: auto 0 0 0;
  max-height: 92vh;
  background: #fff;
  z-index: 81;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.overlay-sheet[hidden] {
  display: none !important;
}

.overlay-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(10, 19, 31, 0.08);
}

.overlay-sheet__head[hidden] {
  display: none !important;
}

.overlay-sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.overlay-sheet__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: rgba(10, 19, 31, 0.72);
}

.overlay-sheet__close:hover {
  background: rgba(10, 19, 31, 0.06);
}

.overlay-sheet__body {
  padding: 16px;
  overflow-y: auto;
}

.overlay-sheet__foot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(10, 19, 31, 0.08);
  background: #fff;
}

.overlay-sheet__foot--product {
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

.prod-modal-foot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 18px;
}

.prod-modal-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(10, 19, 31, 0.14);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.prod-modal-qty__btn {
  width: 46px;
  min-height: 52px;
  border: none;
  background: rgba(10, 19, 31, 0.04);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: rgba(10, 19, 31, 0.75);
}

.prod-modal-qty__btn:hover:not(:disabled) {
  background: rgba(10, 19, 31, 0.08);
}

.prod-modal-qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.prod-modal-qty__val {
  min-width: 46px;
  min-height: 52px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: rgba(10, 19, 31, 0.9);
}

.prod-modal-add-btn {
  flex: 1;
  width: auto !important;
}

.prod-modal-oos-banner {
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--color-accent-hover);
  border: none;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.overlay-sheet__foot--stack {
  display: grid;
  gap: 10px;
}

.overlay-sheet__foot[hidden] {
  display: none !important;
}

.overlay-sheet__cta {
  width: 100%;
  min-height: 48px;
}

.overlay-sheet__foot--product .btn.btn--primary.prod-modal-add-btn {
  min-height: 54px;
  padding: 12px 10px;
  white-space: normal;
  line-height: 1.3;
}

/* Escritorio: modal centrado (tipo ficha de producto), no hoja inferior ancha */
@media (min-width: 900px) {
  .overlay-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 48px));
    max-height: min(86vh, 720px);
    border-radius: 16px;
    border: 1px solid rgba(10, 19, 31, 0.1);
    box-shadow: 0 24px 64px rgba(10, 19, 31, 0.22);
  }

  .overlay-sheet__head {
    padding: 16px 20px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .overlay-sheet__body {
    padding: 18px 20px 20px;
  }

  .overlay-sheet__foot {
    padding: 14px 20px 18px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .overlay-sheet__foot--product {
    padding: 0 0 12px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
  }

  .prod-modal-foot-row {
    padding: 20px 20px 22px;
  }

  .prod-modal-title {
    font-size: 20px;
  }

  .prod-modal-price {
    font-size: 20px;
  }

  #checkout-modal.overlay-sheet {
    width: min(620px, calc(100vw - 32px));
    max-height: min(92vh, 920px);
    max-height: min(92dvh, 920px);
  }

  #checkout-modal #checkout-modal-body {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }
}

.prod-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.prod-modal-price {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-accent);
}

.prod-modal-desc {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.prod-modal-stock {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 19, 31, 0.65);
}

.prod-modal-stock--low {
  color: #c62828;
}

.prod-modal-stock--out {
  color: #b71c1c;
  font-weight: 800;
}

.mod-group {
  margin-top: 18px;
}

.mod-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mod-group__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.mod-group__tag {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 19, 31, 0.06);
  color: rgba(10, 19, 31, 0.7);
}

.mod-group__error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #c62828;
  line-height: 1.35;
}

.mod-option {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid rgba(10, 19, 31, 0.08);
  border-radius: 12px;
}

.mod-option__name {
  font-weight: 600;
}

.mod-option__price {
  font-weight: 800;
  color: rgba(10, 19, 31, 0.72);
  white-space: nowrap;
}

.mod-option__sku {
  font-size: 11px;
  font-weight: 500;
  color: rgba(10, 19, 31, 0.5);
  margin-top: 2px;
}

.mod-option__btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 139, 0, 0.14);
  color: var(--color-accent);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.mod-option__btn:hover {
  background: rgba(255, 139, 0, 0.22);
}

.mod-option__qty {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
}

.mod-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 10px;
  border: 1px solid rgba(10, 19, 31, 0.08);
  border-radius: 12px;
}

.mod-check input {
  width: 18px;
  height: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(10, 19, 31, 0.08);
  align-items: start;
}

.cart-item__remove {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(10, 19, 31, 0.05);
  color: rgba(183, 28, 28, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-item__remove:hover {
  background: rgba(183, 28, 28, 0.1);
  color: #b71c1c;
}

.cart-item__remove:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.cart-item__left {
  min-width: 0;
}

.cart-item__name {
  font-weight: 800;
  margin: 0;
}

.cart-item--combo-child .cart-item__name {
  font-weight: 600;
  color: var(--color-text-muted);
  padding-left: 10px;
  border-left: 3px solid rgba(10, 19, 31, 0.15);
}

.cart-item__meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.cart-item__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.cart-item__price {
  font-weight: 900;
  color: var(--color-accent);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(10, 19, 31, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(10, 19, 31, 0.06);
  cursor: pointer;
  font-weight: 900;
}

.cart-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 900;
}

.checkout-choices {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.checkout-choice {
  border: none;
  border-radius: 14px;
  padding: 14px 12px;
  background: var(--color-accent);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  cursor: pointer;
  min-height: 54px;
}

.checkout-choice:hover {
  background: var(--color-accent-hover);
}

.checkout-choice.is-secondary {
  background: #0a131f;
}

.checkout-choice.is-secondary:hover {
  background: #111f33;
}

.checkout-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Modal checkout: más alto/ancho y cuerpo desplazable para que los botones no queden tapados */
#checkout-modal.overlay-sheet {
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - 8px);
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px);
}

#checkout-modal .overlay-sheet__head {
  flex-shrink: 0;
}

#whatsapp-order-step.overlay-sheet {
  z-index: 82;
}

.whatsapp-confirm-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 168, 0, 0.65);
  border-radius: 12px;
  background: rgba(255, 248, 220, 0.55);
}

.whatsapp-confirm-notice__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(10, 19, 31, 0.88);
}

.whatsapp-confirm-notice__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
}

.whatsapp-confirm-ref {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.whatsapp-confirm-ref strong {
  color: var(--color-text);
  font-weight: 800;
}

.btn--whatsapp-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--radius-btn);
  background: #25d366;
  color: #fff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn--whatsapp-send:hover {
  filter: brightness(1.05);
  transform: scale(1.01);
}

.btn--whatsapp-send:focus-visible {
  outline: 2px solid #128c4e;
  outline-offset: 2px;
}

.btn--whatsapp-send:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn--whatsapp-send__icon {
  flex-shrink: 0;
}

#checkout-modal #checkout-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

/* Paso datos domicilio (mismo modal checkout) */
.checkout-head-delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(10, 19, 31, 0.1);
}

.checkout-delivery-head-title {
  flex: 1;
  margin: 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.checkout-delivery-stack {
  padding: 4px 0 8px;
}

.checkout-delivery-confirm-wrap {
  margin-top: 28px;
}

.delivery-contact-back {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delivery-contact-back:hover {
  background: rgba(10, 19, 31, 0.06);
}

.delivery-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delivery-field + .delivery-field {
  margin-top: 4px;
}

.delivery-field__label {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
}

.delivery-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid rgba(10, 19, 31, 0.16);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.delivery-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 14px;
  color: rgba(10, 19, 31, 0.42);
  flex-shrink: 0;
}

.delivery-input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 14px 14px 14px 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  outline: none;
}

.delivery-input::placeholder {
  color: rgba(10, 19, 31, 0.35);
  font-weight: 500;
}

.delivery-phone-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(10, 19, 31, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.delivery-country {
  flex-shrink: 0;
  width: 92px;
  padding: 12px 8px;
  border: none;
  border-right: 1px solid rgba(10, 19, 31, 0.1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
  background: #fafafa;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}

.delivery-input--phone {
  border: none;
  border-radius: 0;
  padding: 14px 14px;
}

.delivery-contact-confirm {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 8px;
  background: var(--color-link);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, filter 0.15s ease;
}

.delivery-contact-confirm:hover {
  filter: brightness(1.06);
}

.delivery-contact-confirm:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.delivery-contact-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

/* Lista y formulario de direcciones (checkout domicilio) */
.delivery-mis-datos {
  margin: 0 0 18px;
  border: 1px solid rgba(10, 19, 31, 0.12);
  border-radius: 14px;
  background: #fafbfd;
  overflow: hidden;
}

.delivery-mis-datos__summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  user-select: none;
}

.delivery-mis-datos__summary::-webkit-details-marker {
  display: none;
}

.delivery-mis-datos__chev {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(10, 19, 31, 0.06)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 0.15s ease;
}

.delivery-mis-datos[open] .delivery-mis-datos__chev {
  transform: rotate(180deg);
}

.delivery-mis-datos__inner {
  padding: 0 16px 14px;
  border-top: 1px solid rgba(10, 19, 31, 0.08);
}

.delivery-mis-datos__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.delivery-mis-datos__ic {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(10, 19, 31, 0.42);
  display: inline-flex;
}

.delivery-mis-datos__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.delivery-mis-datos__change-row {
  margin-top: 12px;
}

.delivery-mis-datos__change {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-link);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.delivery-mis-datos__change:hover {
  text-decoration: underline;
}

.delivery-mis-datos__change-ic {
  font-size: 16px;
  line-height: 1;
}

.delivery-address-section {
  margin-top: 4px;
}

.delivery-address-section__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
}

.delivery-address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-address-empty {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.delivery-address-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 19, 31, 0.14);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.delivery-address-row:hover {
  border-color: rgba(10, 19, 31, 0.22);
}

.delivery-address-row.is-selected {
  border-color: var(--color-link);
  box-shadow: 0 0 0 1px var(--color-link);
}

.delivery-address-row__pin {
  flex-shrink: 0;
  color: rgba(10, 19, 31, 0.45);
  display: inline-flex;
}

.delivery-address-row.is-selected .delivery-address-row__pin {
  color: var(--color-link);
}

.delivery-address-row__text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.delivery-address-row__radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(10, 19, 31, 0.28);
  flex-shrink: 0;
  box-sizing: border-box;
}

.delivery-address-row.is-selected .delivery-address-row__radio {
  border-color: var(--color-link);
  background: var(--color-link)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M1.5 5.2 4.8 8.5 10.5 1.5'/%3E%3C/svg%3E")
    center / 11px 9px no-repeat;
}

.delivery-new-address {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 110, 255, 0.09);
  color: var(--color-link);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s ease;
}

.delivery-new-address:hover {
  filter: brightness(0.97);
}

.delivery-new-address__plus {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.delivery-field__optional {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 13px;
}

.delivery-input--boxed {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(10, 19, 31, 0.16) !important;
  border-radius: 12px;
  padding: 14px 14px !important;
  background: #fff;
}

.delivery-address-form-stack .delivery-field + .delivery-field {
  margin-top: 14px;
}

/* Confirmación final domicilio (resumen, cupón, pago, Pedir) */
.checkout-delivery-head-title--review {
  font-size: 17px;
  text-align: left;
}

.checkout-delivery-title-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-delivery-title-review__ic {
  font-size: 20px;
  line-height: 1;
}

.delivery-review {
  padding: 2px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-account-card {
  border: 1px solid rgba(0, 110, 255, 0.38);
  border-radius: 14px;
  background: rgba(0, 110, 255, 0.07);
  overflow: hidden;
}

.delivery-account-card__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  user-select: none;
}

.delivery-account-card__summary::-webkit-details-marker {
  display: none;
}

.delivery-account-card__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.delivery-account-card__products {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.delivery-account-card__amount {
  font-size: 17px;
  font-weight: 900;
  color: var(--color-text);
}

.delivery-account-card__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9a3d, #ff7a1a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  max-width: 48%;
}

.delivery-account-card__pill-chev {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-left: 2px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  vertical-align: middle;
}

.delivery-account-card[open] .delivery-account-card__pill-chev {
  transform: rotate(135deg);
}

.delivery-account-card__body {
  padding: 0 14px 4px;
  border-top: 1px solid rgba(0, 110, 255, 0.2);
}

.delivery-account-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 19, 31, 0.08);
}

.delivery-account-card__subrow:first-of-type {
  margin-top: 2px;
}

.delivery-account-line__text {
  min-width: 0;
  flex: 1;
}

.delivery-account-line__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}

.delivery-account-line__mods,
.delivery-account-line__note {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.delivery-account-line__price {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
}

.delivery-account-card__subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.delivery-account-card__subrow-val {
  font-weight: 800;
  color: var(--color-text);
}

.delivery-account-card__subrow--emph {
  padding-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text);
}

.delivery-account-card__subrow--emph .delivery-account-card__subrow-val {
  font-size: 16px;
}

.delivery-account-card__detail {
  margin: 0;
  padding: 8px 0 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.delivery-mis-datos__row--with-action {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-mis-datos__row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.delivery-mis-datos__change--inline {
  flex-shrink: 0;
  margin-top: 0;
}

.delivery-coupon-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.delivery-coupon-block__title {
  font-size: 15px;
  font-weight: 800;
}

.delivery-coupon-details {
  margin: 0;
}

.delivery-coupon-details__summary {
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-link);
}

.delivery-coupon-details__summary::-webkit-details-marker {
  display: none;
}

.delivery-coupon-details__help {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.delivery-payment-box {
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: rgba(0, 110, 255, 0.07);
  border: 1px solid rgba(0, 110, 255, 0.14);
}

.delivery-payment-box__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.delivery-payment-box__title {
  font-size: 15px;
  font-weight: 800;
}

.delivery-payment-box__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.delivery-payment-select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 36px 14px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-link);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%230066ff' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.delivery-cash-tender {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 110, 255, 0.18);
}

.delivery-cash-tender__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.delivery-cash-tender__input {
  width: 100%;
  box-sizing: border-box;
}

.delivery-cash-tender__change {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: #0d7a3e;
  line-height: 1.35;
}

.delivery-cash-tender__change--warn {
  color: #c2410c;
  font-weight: 700;
}

.delivery-cash-tender__error {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #c62828;
  line-height: 1.35;
}

.delivery-payment-instr {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 19, 31, 0.08);
}

.delivery-payment-instr__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.delivery-payment-instr__body {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
}

.delivery-payment-customer-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(10, 19, 31, 0.1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  white-space: pre-wrap;
}

.delivery-review__cta {
  margin-top: 4px;
  padding-top: 4px;
}

/* --- Seguimiento de pedido (tracking.html) --- */
.tracking-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.tracking-back-nav {
  margin: 0 0 16px;
}

.tracking-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  background: rgba(10, 19, 31, 0.05);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(10, 19, 31, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.tracking-back-link:hover {
  background: rgba(10, 19, 31, 0.09);
  color: var(--color-link);
  text-decoration: none;
}

.tracking-back-link:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.tracking-back-link__arrow {
  font-size: 18px;
  line-height: 1;
  opacity: 0.85;
}

.tracking-error {
  margin: 24px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff4f4;
  border: 1px solid rgba(180, 40, 40, 0.25);
  color: #7a1e1e;
  font-size: 15px;
  line-height: 1.45;
}

.tracking-banner {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8c42 0%, #f56d2a 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.tracking-map-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(10, 19, 31, 0.1);
  margin-bottom: 20px;
  aspect-ratio: 16 / 10;
  background: #e8edf5;
}

.tracking-map-frame {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
  display: block;
}

.tracking-status-block {
  text-align: center;
  margin-bottom: 20px;
}

.tracking-status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 28px;
  line-height: 56px;
  font-weight: 700;
}

.tracking-order-num {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.tracking-status-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

.tracking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tracking-steps__item {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 14px;
}

.tracking-steps__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(10, 19, 31, 0.15);
  border: 2px solid rgba(10, 19, 31, 0.12);
}

.tracking-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% + 8px);
  right: calc(-50% + 8px);
  height: 0;
  border-top: 2px dotted rgba(10, 19, 31, 0.15);
}

.tracking-steps__item--done::before {
  background: #22a060;
  border-color: #1a7d4a;
  box-shadow: 0 0 0 2px rgba(34, 160, 96, 0.25);
}

.tracking-steps__item--current {
  color: var(--color-text);
}

.tracking-steps__item--current::before {
  background: #fff;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.35);
}

.tracking-steps__item--current:not(:last-child)::after {
  border-top-style: solid;
  border-top-color: rgba(21, 101, 192, 0.35);
}

@media (max-width: 520px) {
  .tracking-steps {
    font-size: 8px;
    gap: 2px;
  }
}

.tracking-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(10, 19, 31, 0.1);
  background: #fafbfd;
  margin-bottom: 20px;
}

.tracking-contact-line,
.tracking-address-line {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
}

.tracking-summary-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 19, 31, 0.12);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-link);
  cursor: pointer;
  text-align: left;
}

.tracking-summary-toggle:hover {
  background: rgba(10, 19, 31, 0.03);
}

.tracking-summary-panel {
  margin-top: 8px;
}

.tracking-summary-pre {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(10, 19, 31, 0.08);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

.tracking-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 19, 31, 0.08);
  font-size: 14px;
  font-weight: 600;
}

.tracking-pay-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(245, 109, 42, 0.15);
  color: #c44f12;
  font-size: 13px;
  font-weight: 700;
}

.tracking-pay-badge--paid {
  background: rgba(34, 160, 96, 0.18);
  color: #146b3f;
}

.tracking-pay-badge--refunded {
  background: rgba(10, 19, 31, 0.08);
  color: var(--color-text-muted);
}

.tracking-pay-line {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
}

.tracking-actions {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tracking-wa-consult {
  width: 100%;
  min-height: 54px;
}
