/* CourierCRM — base styles.
   Brand colours are CSS variables so each company's palette can replace them later (section 20). */
[hidden] { display: none !important; }
:root {
  /* Brand (QuickBox Cargo, taken from its logo) */
  /* Each company's palette arrives as --theme-* values injected by the server (Appearance screen).
     The values after the comma are the platform default, used if nothing is injected. */
  --brand-primary: var(--theme-primary, #4a8dff);               /* graphics, tints */
  --brand-primary-strong: var(--theme-primary-strong, #1f5fd6); /* readable: links, outlines */
  --brand-accent: var(--theme-accent, #f05828);                 /* highlights */
  --brand-accent-strong: var(--theme-accent-strong, #c8431a);   /* buttons with white text */
  --brand-accent-hover: var(--theme-accent-hover, #a9380f);
  --brand-ink: #606464;

  /* Neutrals */
  --text: #1c2228;
  --text-muted: #59626b;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e2e7ee;
  --header-bg: rgba(255, 255, 255, 0.92);
  --footer-bg: #1c2228;
  --footer-text: #c9d1da;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 40, 80, 0.08);
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary-strong: var(--theme-primary-on-dark, #7aaeff);
    --text: #e8edf3;
    --text-muted: #a3adb8;
    --bg: #11161c;
    --bg-soft: #18202a;
    --border: #2a3440;
    --header-bg: rgba(17, 22, 28, 0.92);
    --footer-bg: #0b0f13;
  }
  .lang-switch [aria-current="true"] { color: #0b1a33; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-primary-strong); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-primary-strong); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: none; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--brand-accent-strong); }
.site-footer .brand-name span { color: var(--brand-accent); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--brand-primary-strong); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: .85rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 6px 10px; text-decoration: none; color: var(--text-muted); }
.lang-switch [aria-current="true"] { background: var(--brand-primary-strong); color: #fff; }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: transform .1s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-accent-strong); color: #fff; }
.btn-primary:hover { background: var(--brand-accent-hover); }
.btn-secondary { background: transparent; color: var(--brand-primary-strong); border-color: var(--brand-primary-strong); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-small { min-height: 40px; padding: 8px 14px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 60%),
    radial-gradient(800px 300px at -10% 110%, color-mix(in srgb, var(--brand-accent) 12%, transparent), transparent 60%),
    var(--bg-soft);
  padding: 72px 0 80px;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-accent-strong); background: color-mix(in srgb, var(--brand-accent) 10%, transparent); padding: 4px 10px; border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.02em;
  margin: 16px 0 16px; max-width: 18ch;
}
.hero h1 em { font-style: normal; color: var(--brand-primary-strong); }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--text-muted); font-weight: 600; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 20px; height: 20px; color: var(--brand-primary-strong); flex: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; letter-spacing: -0.01em; }
.section .section-intro { color: var(--text-muted); margin: 0 0 32px; max-width: 60ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); counter-increment: step;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent); color: var(--brand-primary-strong); font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); }

/* ---------- Services ---------- */
.section-soft { background: var(--bg-soft); }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.services-loading { color: var(--text-muted); margin: 0; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent); color: var(--brand-primary-strong); margin-bottom: 14px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.service-price { margin: 0; }
.service-price .price { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.service-price .per { color: var(--text-muted); font-weight: 600; }
.service-ref { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.service-desc { margin: 0 0 12px; color: var(--text-muted); }
.service-time { margin: 0 0 20px; font-weight: 600; color: var(--brand-accent-strong); }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Page heading ---------- */
.page-head { background: var(--bg-soft); padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.page-head .section-intro { margin-bottom: 0; }
.calc-section { padding-top: 32px; background: var(--bg-soft); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-form, .calc-result {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.calc-result { position: sticky; top: 88px; }
.calc-result h2 { margin: 0 0 12px; font-size: 1.15rem; }
.calc-field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field > label, .calc-field > legend { display: block; font-weight: 700; margin: 0 0 6px; padding: 0; }
.calc-field input[type="text"], .calc-field select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid #c3ccd8; border-radius: 10px;
}
.calc-field input:focus, .calc-field select:focus { outline: 3px solid color-mix(in srgb, var(--brand-primary-strong) 35%, transparent); border-color: var(--brand-primary-strong); }
.calc-field input[aria-invalid="true"] { border-color: #c62828; background: rgba(198, 40, 40, .06); }
.hint { margin: 6px 0 0; font-size: .9rem; color: var(--text-muted); }
.input-unit { display: flex; align-items: center; position: relative; }
.input-unit input { padding-right: 96px !important; }
.input-unit > span { position: absolute; right: 12px; color: var(--text-muted); font-size: .9rem; pointer-events: none; }
.hint-top { margin: 0 0 12px; }
.pkg-list { display: grid; gap: 12px; }
.pkg { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--bg-soft); }
.pkg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pkg-title { font-weight: 700; }
.pkg-remove { font-size: .9rem; color: #b42318; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pkg-weight { grid-column: span 2; }
.pkg-grid > .pkg-weight[hidden] { display: none; }
.pkg-field { display: grid; gap: 4px; font-weight: 600; font-size: .85rem; color: var(--text-muted); min-width: 0; }
.pkg-field input {
  width: 100%; min-height: 46px; padding: 8px 36px 8px 10px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid #c3ccd8; border-radius: 8px;
}
.pkg-field input:focus { outline: 3px solid color-mix(in srgb, var(--brand-primary-strong) 35%, transparent); border-color: var(--brand-primary-strong); }
.pkg-field input[aria-invalid="true"] { border-color: #c62828; background: rgba(198, 40, 40, .06); }
.pkg-field .input-unit { min-width: 0; }
.pkg-field .input-unit input { padding-right: 28px !important; min-width: 0; }
.pkg-field .input-unit > span { right: 8px; font-size: .8rem; }
.pkg-weight .pkg-field { height: 100%; }
.add-pkg { margin-top: 12px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c3ccd8; border-radius: 10px; overflow: hidden; }
.segmented label { position: relative; cursor: pointer; display: flex; }
.segmented label + label { border-left: 1px solid #c3ccd8; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { flex: 1; display: grid; place-items: center; min-height: 46px; padding: 8px; text-align: center; font-weight: 600; font-size: .95rem; }
.segmented input:checked + span { background: var(--brand-primary-strong); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--brand-accent); outline-offset: -3px; }
@media (prefers-color-scheme: dark) { .segmented input:checked + span { color: #0b1a33; } }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-primary-strong); text-decoration: underline; cursor: pointer; }

.calc-msg { margin: 0; color: var(--text-muted); }
.calc-msg-error { color: #b42318; }
.calc-msg-warn { color: var(--text); background: color-mix(in srgb, var(--brand-accent) 10%, transparent); border-radius: 8px; padding: 12px; }
.calc-lines { list-style: none; margin: 0; padding: 0; }
.calc-lines li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.calc-line-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.calc-line-name { font-weight: 600; }
.calc-line-qty { color: var(--text-muted); font-weight: 600; }
.calc-tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand-primary-strong); background: color-mix(in srgb, var(--brand-primary) 14%, transparent); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.calc-line-detail { font-size: .88rem; color: var(--text-muted); margin-top: 2px; }
.calc-adjust .calc-line-name { color: var(--brand-primary-strong); }
.calc-sum { display: flex; justify-content: space-between; padding: 10px 0 0; color: var(--text-muted); }
.calc-rows { margin: 0; }
.calc-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.calc-rows dt { color: var(--text-muted); }
.calc-rows dd { margin: 0; font-weight: 600; text-align: right; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 4px; }
.calc-total span { font-weight: 700; }
.calc-total strong { font-size: 2rem; letter-spacing: -0.02em; }
.calc-time { margin: 0; font-weight: 600; color: var(--brand-accent-strong); }
.calc-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--brand-primary) 12%, transparent); font-size: .95rem; }
.btn-whatsapp { margin-top: 20px; width: 100%; background: #128c4a; color: #fff; }
.btn-whatsapp:hover { background: #0e7a40; }
.btn-whatsapp[hidden] { display: none; }
.calc-disclaimer { margin: 16px 0 0; font-size: .85rem; color: var(--text-muted); }
.service-min { margin: -8px 0 12px; font-size: .9rem; color: var(--text-muted); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #128c4a; color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float[hidden] { display: none; }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem;
}
.powered-by a { color: #fff; font-weight: 600; }

/* ---------- Simple page (404) ---------- */
.simple-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.simple-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 8px; }
.simple-page p { color: var(--text-muted); margin: 0 0 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav, .header-actions { display: none; }
  .site-header.is-open .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions { display: block; width: 100%; margin: 0; }
  .site-header.is-open .main-nav ul { flex-direction: column; }
  .site-header.is-open .main-nav a { padding: 12px; }
  .site-header.is-open .header-actions { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
  .steps, .services, .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .pkg-grid { gap: 8px; }
  .service-card .btn { align-self: stretch; }
  .whatsapp-float { padding: 0; width: 56px; justify-content: center; }
  .whatsapp-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-footer { padding-bottom: 88px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 48px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Shipping address page ---------- */
.addr-section { padding-top: 32px; background: var(--bg-soft); }
.addr-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.addr-card, .addr-help { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.addr-head { margin-bottom: 8px; }
.addr-badge { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text); background: color-mix(in srgb, var(--brand-primary) 14%, transparent); border-radius: 999px; padding: 3px 10px; }
.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.addr-text { display: grid; gap: 2px; min-width: 0; }
.addr-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.addr-value { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.addr-row.is-placeholder .addr-value { color: var(--brand-accent-strong); font-style: italic; }
.addr-hint { font-size: .85rem; color: var(--text-muted); }
.addr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.addr-copy { flex: none; min-width: 84px; }
.addr-copy.is-done { background: rgba(18, 122, 61, .12); border-color: #127a3d; color: #127a3d; }
.addr-copy-all { margin-top: 20px; }
.btn-block { width: 100%; }
.addr-help h2 { font-size: 1.15rem; margin: 0 0 12px; }
.addr-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 10px; color: var(--text-muted); }
.addr-steps strong { color: var(--text); }
.addr-note { background: color-mix(in srgb, var(--brand-accent) 8%, transparent); border-left: 4px solid var(--brand-accent); border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
@media (max-width: 860px) {
  .addr-grid { grid-template-columns: 1fr; }
  .addr-split { grid-template-columns: 1fr; }
}

/* ---------- Uploaded logo (Appearance) ---------- */
img.brand-logo { width: auto; max-width: 64px; object-fit: contain; }
img.brand-logo.is-wide { max-width: 200px; height: 40px; }
[data-logo="wide"] .brand-name, [data-logo="wide"] > span:not(.mini-nav) { display: none; }
@media (prefers-color-scheme: dark) {
  [data-logo-dark] img.brand-logo { background: #f4f7fb; border-radius: 8px; padding: 3px 6px; }
}
.site-footer [data-logo-dark] img.brand-logo { background: #f4f7fb; border-radius: 8px; padding: 3px 6px; }

/* ---------- Customer account ---------- */
[data-acct-view][hidden] { display: none !important; }
.acct-section { background: var(--bg-soft); padding: 48px 0 72px; min-height: 60vh; }
.acct-wrap { display: grid; justify-items: center; }
.acct-card { width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.acct-card h1 { font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.acct-card h2 { font-size: 1.15rem; margin: 0 0 10px; }
.acct-sub { color: var(--text-muted); margin: 0 0 20px; }
.acct-card .field { margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.acct-card .field > label, .acct-card legend { display: block; font-weight: 700; margin: 0 0 6px; padding: 0; }
.acct-card input[type="email"], .acct-card input[type="text"], .acct-card input[type="tel"], .acct-card input[type="password"] {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #c3ccd8; border-radius: 10px;
}
.acct-card input:focus { outline: 3px solid color-mix(in srgb, var(--brand-primary-strong) 35%, transparent); border-color: var(--brand-primary-strong); }
.acct-card input[aria-invalid="true"] { border-color: #c62828; }
.code-input { font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; }
.form-error { min-height: 1.4em; margin: 0 0 12px; color: #b42318; font-weight: 600; }
@media (prefers-color-scheme: dark) { .form-error { color: #ff8a80; } }
.acct-note { color: var(--text-muted); font-size: .9rem; margin: 16px 0 0; }
.acct-links { margin: 8px 0 0; font-size: .95rem; color: var(--text-muted); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.acct-terms { margin: 4px 0 14px; color: var(--text-muted); }
.acct-home { width: 100%; max-width: 640px; display: grid; gap: 16px; }
.acct-home .acct-card { max-width: none; }
.code-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: color-mix(in srgb, var(--brand-primary) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent); border-radius: 12px; padding: 14px 16px; margin: 8px 0 8px; }
.code-label { width: 100%; font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.code-value { font-size: 1.9rem; font-weight: 800; letter-spacing: .04em; color: var(--brand-primary-strong); font-family: ui-monospace, Menlo, Consolas, monospace; }
.acct-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.acct-data { margin: 0; display: grid; gap: 0; }
.acct-data div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.acct-data dt { color: var(--text-muted); }
.acct-data dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.btn-danger { color: #b42318; border-color: #e3b4ae; }
@media (max-width: 640px) { .acct-card { padding: 22px 18px; } .acct-actions .btn { flex: 1 1 100%; } }

/* ---------- Account menu, notify form, my packages ---------- */
.acct-tabs { width: 100%; max-width: 640px; display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.acct-tabs a { flex: 1 0 auto; text-align: center; padding: 10px 14px; border-radius: 9px; font-weight: 600; font-size: .95rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.acct-tabs a:hover { color: var(--text); background: var(--bg-soft); }
.acct-tabs a[aria-current="page"] { background: color-mix(in srgb, var(--brand-primary) 14%, var(--bg)); color: var(--brand-primary-strong); }
.acct-tabs[hidden] { display: none !important; }
[data-packages] [data-acct-view="form"], [data-packages] [data-acct-view="done"] { max-width: 640px; }
.acct-card textarea { width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #c3ccd8; border-radius: 10px; resize: vertical; min-height: 84px; }
.acct-card textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand-primary-strong) 35%, transparent); border-color: var(--brand-primary-strong); }
.optional { font-weight: 400; color: var(--text-muted); font-size: .9em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.mono, .mono-input { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #fff; background: #1e8e3e; margin: 0 0 14px; }
.done-summary { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.done-summary .mono { font-weight: 800; font-size: 1.1rem; overflow-wrap: anywhere; }
.done-summary span:last-child { color: var(--text-muted); }
.pkg-page { width: 100%; max-width: 640px; }
.pkg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.pkg-head h1 { font-size: 1.6rem; margin: 0 0 4px; }
.pkg-head .acct-sub { margin: 0; }
.pkg-empty { text-align: center; max-width: none; }
.pkg-empty p { color: var(--text-muted); margin: 0 0 14px; }
.pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pkg-card { max-width: none; padding: 22px; }
.pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pkg-tracking { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.pkg-contents { color: var(--text-muted); margin-top: 2px; }
.pkg-badge { flex: none; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); white-space: nowrap; }
.pkg-badge.s-reported { color: #8a5a00; background: #fff4d6; border-color: #f2d58a; }
.pkg-badge.s-received, .pkg-badge.s-confirmed { color: var(--brand-primary-strong); background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg)); border-color: color-mix(in srgb, var(--brand-primary) 35%, transparent); }
.pkg-badge.s-shipped, .pkg-badge.s-out_for_delivery { color: #a1350f; background: #ffece4; border-color: #f5c2ae; }
.pkg-badge.s-delivered { color: #1b6e32; background: #e3f5e8; border-color: #a8dbb6; }
@media (prefers-color-scheme: dark) {
  .pkg-badge.s-reported { color: #ffd77a; background: #3a2e10; border-color: #6b5520; }
  .pkg-badge.s-shipped, .pkg-badge.s-out_for_delivery { color: #ffb59a; background: #3d2117; border-color: #6e3a26; }
  .pkg-badge.s-delivered { color: #8be0a4; background: #133220; border-color: #275c3a; }
}
.pkg-progress { list-style: none; margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.pkg-progress li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.pkg-progress li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 3px; background: var(--border); }
.pkg-progress li:first-child::before { display: none; }
.pkg-progress li.done::before, .pkg-progress li.current::before { background: var(--brand-primary-strong); }
.pkg-progress .dot { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--border); }
.pkg-progress li.done .dot { background: var(--brand-primary-strong); border-color: var(--brand-primary-strong); }
.pkg-progress li.current .dot { border-color: var(--brand-primary-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 25%, transparent); }
.pkg-progress .lbl { font-size: .75rem; line-height: 1.2; color: var(--text-muted); }
.pkg-progress li.current .lbl { color: var(--text); font-weight: 700; }
.pkg-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pkg-facts div { display: grid; }
.pkg-facts dt { font-size: .8rem; color: var(--text-muted); }
.pkg-facts dd { margin: 0; font-weight: 600; }
.pkg-notes { margin: 12px 0 0; font-size: .95rem; overflow-wrap: anywhere; }
.pkg-meta { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .pkg-card { padding: 18px 16px; }
  .pkg-progress .lbl { display: none; }
  .pkg-progress li.current .lbl { display: block; position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .pkg-progress li:first-child.current .lbl { left: 0; transform: none; }
  .pkg-progress li:last-child.current .lbl { left: auto; right: 0; transform: none; }
  .pkg-progress { margin-bottom: 34px; }
  .pkg-head .btn { width: 100%; }
  .acct-tabs a { flex: 1 1 0; white-space: normal; padding: 8px 6px; font-size: .88rem; line-height: 1.25; display: grid; place-items: center; }
}
.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; }
.est-box { margin: 0 0 16px; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; background: var(--bg-soft); }
.est-box summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.est-box summary::-webkit-details-marker { display: none; }
.est-box summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-primary-strong); color: #fff; font-size: 1rem; line-height: 1; flex: none; }
.est-box[open] summary::before { content: "−"; }
.est-box[open] { padding-bottom: 4px; }
.est-box .hint-top { margin-top: 0; }
.est-grid { display: grid; grid-template-columns: 140px 1fr; gap: 0 14px; }
.est-dims-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.small-label { display: block; font-size: .85rem; color: var(--text-muted); margin: 0 0 4px; }
.acct-card .est-weight > label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 1rem; color: var(--text); }
.est-weight .input-unit { margin-top: 26px; }
.acct-card .est-box input[type="text"] { min-height: 46px; }
@media (max-width: 640px) {
  .est-grid { grid-template-columns: 1fr; }
  .est-weight .input-unit { margin-top: 0; max-width: 160px; }
  .est-box { padding: 0 12px; }
}

/* ---------- Delivery addresses ---------- */
.addr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.addr-head h2 { margin: 0; }
.addr-hint { margin: 6px 0 14px; }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.addr-list[hidden] { display: none; }
.addr-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.addr-item.is-main { border-color: color-mix(in srgb, var(--brand-primary-strong) 45%, transparent); background: color-mix(in srgb, var(--brand-primary) 6%, var(--bg)); }
.addr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.addr-type { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.addr-main-badge { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-primary-strong); color: #fff; }
.addr-place { font-weight: 600; overflow-wrap: anywhere; }
.addr-sub { font-size: .9rem; color: var(--text-muted); margin-top: 2px; overflow-wrap: anywhere; }
.addr-warn { margin: 8px 0 0; font-size: .9rem; font-weight: 600; color: #8a5a00; }
@media (prefers-color-scheme: dark) { .addr-warn { color: #ffd77a; } }
.addr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: .92rem; }
.addr-sure { font-weight: 700; }
.danger-link { color: #b42318; }
@media (prefers-color-scheme: dark) { .danger-link { color: #ff8a80; } }
.addr-empty { color: var(--text-muted); margin: 0; }
.addr-form h3 { font-size: 1.05rem; margin: 4px 0 14px; }
.addr-form[hidden], [data-addr-group][hidden] { display: none !important; }
.addr-group { border: 1px solid var(--border) !important; border-radius: 12px; padding: 12px 14px 2px !important; }
.addr-group legend { padding: 0 6px !important; margin-left: -6px; }
.addr-group .field { margin-bottom: 12px; }
.id-row { display: grid; grid-template-columns: 190px 1fr; gap: 8px; }
.acct-card select { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #c3ccd8; border-radius: 10px; }
.acct-card select:focus { outline: 3px solid color-mix(in srgb, var(--brand-primary-strong) 35%, transparent); border-color: var(--brand-primary-strong); }
.acct-card select[aria-invalid="true"], .acct-card textarea[aria-invalid="true"] { border-color: #c62828; }
.office-pick, .addr-pick { display: grid; gap: 8px; }
.office-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.office-option:has(input:checked) { border-color: var(--brand-primary-strong); background: color-mix(in srgb, var(--brand-primary) 8%, var(--bg)); }
.office-option input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand-primary-strong); }
.office-option strong { display: block; }
.office-option small { display: block; color: var(--text-muted); font-size: .88rem; overflow-wrap: anywhere; }
.addr-none { margin: 0; color: var(--text-muted); }
.addr-default-check { margin: 4px 0 14px; }
.addr-default-check input:disabled + span { color: var(--text-muted); }
@media (max-width: 640px) { .id-row { grid-template-columns: 1fr; } }

/* ---------- Edit / delete packages ---------- */
.pkg-cancel { text-align: center; margin: 14px 0 0; }
.pkg-actions { margin-top: 12px; }
.pkg-actions a { color: var(--brand-primary-strong); }
.pkg-flash { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #e3f5e8; border: 1px solid #a8dbb6; color: #1b6e32; font-weight: 600; }
@media (prefers-color-scheme: dark) { .pkg-flash { background: #133220; border-color: #275c3a; color: #8be0a4; } }

/* ---------- Installable app ---------- */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 40px rgba(15, 23, 32, .22); max-width: 560px; margin: 0 auto; }
.pwa-banner img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.pwa-banner-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.pwa-banner-text span { font-size: .85rem; color: var(--text-muted); }
.pwa-banner .btn { flex: none; }
.pwa-x { flex: none; width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; border-radius: 8px; }
.pwa-x:hover { background: var(--bg-soft); }
body.has-pwa-banner .whatsapp-float { bottom: 96px; }
.pwa-dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: 18px; padding: 24px; background: var(--bg); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.pwa-dialog::backdrop { background: rgba(15, 23, 32, .5); }
.pwa-dialog h2 { margin: 0 0 14px; font-size: 1.25rem; }
.pwa-steps { margin: 0 0 14px; padding-left: 1.4em; display: grid; gap: 10px; }
.pwa-steps li { padding-left: 4px; }
.pwa-ico { width: 1.25em; height: 1.25em; vertical-align: -0.25em; color: var(--brand-primary-strong); margin: 0 2px; }
.pwa-note { font-size: .9rem; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; }
.install-card .pwa-note { margin-bottom: 0; }
.install-hint { margin: 4px 0 14px; }
.offline-card { text-align: center; }
.offline-card .acct-actions { justify-content: center; }
.offline-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--text-muted); }
.offline-icon svg { width: 32px; height: 32px; }
body.is-offline .whatsapp-float, body.is-offline .pwa-banner { display: none; }

/* ---------- Prices and shipping choice ---------- */
.pkg-prices { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); display: grid; gap: 10px; justify-items: start; }
.pkg-prices.is-open { background: color-mix(in srgb, var(--brand-accent) 8%, var(--bg)); border-color: color-mix(in srgb, var(--brand-accent) 35%, transparent); }
.pkg-prices-title { margin: 0; font-weight: 700; }
.pkg-quotes { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pkg-quote { color: var(--text-muted); }
.pkg-quote strong { color: var(--text); }
.pkg-quote.is-chosen { color: var(--brand-primary-strong); font-weight: 700; }
.choice-card { max-width: 560px; }
.choice-pkg { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); margin: 0 0 16px; }
.choice-pkg .mono { font-weight: 800; overflow-wrap: anywhere; }
.choice-meas { font-size: .88rem; color: var(--text-muted); }
.choice-options { display: grid; gap: 10px; margin: 0 0 14px; }
.choice-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; }
.choice-option:has(input:checked) { border-color: var(--brand-primary-strong); background: color-mix(in srgb, var(--brand-primary) 8%, var(--bg)); }
.choice-option input { width: 22px; height: 22px; flex: none; accent-color: var(--brand-primary-strong); }
.choice-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.choice-name { font-weight: 800; font-size: 1.1rem; }
.choice-detail { font-size: .88rem; color: var(--text-muted); }
.choice-tag { font-size: .75rem; font-weight: 700; color: var(--brand-primary-strong); }
.choice-price { font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.choice-confirm { min-height: 54px; font-size: 1.05rem; }
.choice-note { text-align: center; margin-top: 10px; }
.choice-price s { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-align: right; }

/* ---------- My rates ---------- */
.rates-badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--brand-accent-strong); }
.rates-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rate-item { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.rate-item.is-special { border-color: color-mix(in srgb, var(--brand-accent) 45%, transparent); background: color-mix(in srgb, var(--brand-accent) 6%, var(--bg)); }
.rate-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rate-name { font-weight: 800; }
.rate-yours { font-size: .75rem; font-weight: 700; color: var(--brand-accent-strong); }
.rate-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 2px; }
.rate-price strong { font-size: 1.25rem; }
.rate-price s { color: var(--text-muted); }
.rate-meta { font-size: .85rem; color: var(--text-muted); }
.rates-discount { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-weight: 700; background: #e3f5e8; border: 1px solid #a8dbb6; color: #1b6e32; }
@media (prefers-color-scheme: dark) { .rates-discount { background: #133220; border-color: #275c3a; color: #8be0a4; } .rate-yours { color: #ffb59a; } }
.rates-note { margin-top: 10px; }

/* My packages: choose the delivery address of one package */
.pkg-addr-form { margin: 8px 0 4px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); display: grid; gap: 6px; }
.pkg-addr-form[hidden] { display: none; }
.pkg-addr-form select { width: 100%; max-width: 100%; }
.pkg-addr-form .form-error:empty { display: none; }

/* Push notifications widget (account page and admin panel) */
.push-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--text); font-size: .95rem; }
.push-on { margin-top: 10px; }
.push-state { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; }
.push-dot { width: 10px; height: 10px; border-radius: 50%; background: #1e9e57; box-shadow: 0 0 0 3px color-mix(in srgb, #1e9e57 25%, transparent); }
.push-kinds { border: 0; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.push-kinds legend { padding: 0; margin-bottom: 6px; font-weight: 600; color: var(--text-muted); font-size: .9rem; }
.push-kind { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.push-kind input { width: 18px; height: 18px; accent-color: var(--brand-primary-strong); flex: none; }
.push-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.push-others { margin: 10px 0 0; }
.push-msg { margin: 8px 0 0; min-height: 1.2em; font-size: .92rem; color: #127a3d; font-weight: 600; }
.push-msg:empty { display: none; }
.push-msg.is-error { color: #b42318; }
@media (prefers-color-scheme: dark) { .push-msg { color: #5fd08f; } .push-msg.is-error { color: #ff8a80; } }

/* My invoices (account page) */
.myinv-due { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff3d6; color: #6b4700; font-weight: 600; }
.myinv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.myinv a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; }
.myinv a:hover { border-color: var(--brand-primary-strong); }
.myinv.is-open a { border-left: 4px solid #e0a100; }
.myinv-main, .myinv-side { display: flex; flex-direction: column; gap: 2px; }
.myinv-side { align-items: flex-end; }
.myinv-main small { color: var(--text-muted); }
.myinv-badge { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); }
.myinv-badge.s-issued, .myinv-badge.s-partially_paid { background: #fff3d6; color: #8a5a00; }
.myinv-badge.s-paid { background: #dff5e7; color: #1b7a38; }
.myinv-morebtn { text-align: center; }
@media (prefers-color-scheme: dark) { .myinv-due { background: #3a2e10; color: #ffd77a; } .myinv-badge.s-issued, .myinv-badge.s-partially_paid { background: #3a2e10; color: #ffd77a; } .myinv-badge.s-paid { background: #133222; color: #8be0a4; } }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.contact-form h2, .contact-side h2, .contact-done h2 { margin-top: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form .field { margin-bottom: 14px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.contact-form .optional { font-weight: 400; color: var(--text-muted); }
.contact-form textarea[aria-invalid="true"], .contact-form select[aria-invalid="true"] { border-color: #c62828; }
.ct-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-ways li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.contact-ways li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-ways span { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.contact-ways .btn { align-self: flex-start; }
.contact-done { text-align: center; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }
.contact-layout .acct-card { max-width: none; margin: 0; }
.contact-layout + * { margin-top: 0; }

/* FAQ, terms and privacy */
.cp-wrap .cp-body, .cp-wrap .cp-more { max-width: 820px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand-primary-strong); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 12px; }
.faq-a { padding: 0 18px 16px; color: var(--text-muted); }
.faq-a p { margin: 0 0 8px; }
.legal-text { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; line-height: 1.65; }
.legal-text h2 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 12px; }
.legal-text ul { margin: 0 0 12px; padding-left: 22px; }
.legal-text li { margin-bottom: 6px; }
.cp-more { margin-top: 20px; color: var(--text-muted); }
@media (max-width: 560px) { .legal-text { padding: 20px 18px; } }

.services-more { margin: 20px 0 0; text-align: center; }
.services-more a { font-weight: 600; }
.section .steps + .hero-actions { margin-top: 28px; }
.steps-plain .step::before { display: none; }
/* Calculator: keep room for the service buttons that load a moment later, so the form does not jump. */
.calc [data-service-choices]:empty { min-height: 48px; }
.calc [data-service-hint]:empty { min-height: 46px; }
.calc [data-packages]:empty { min-height: 225px; }
/* Service cards: link to the service's own page */
.service-more { display: inline-block; margin: 0 0 14px; font-weight: 600; }
/* A service's own page */
.crumbs { font-size: .9rem; color: var(--text-muted); margin: 0 0 10px; }
.crumbs a { color: inherit; }
.svc-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.svc-facts div { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.svc-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 4px; }
.svc-facts dd { margin: 0; font-size: 1.35rem; font-weight: 800; }
.svc-facts dd span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.svc-text { max-width: 780px; }
.svc-text h2 { margin: 36px 0 10px; }
.svc-text h2:first-child { margin-top: 0; }
.svc-text ul, .svc-text ol { padding-left: 1.3em; }
.svc-text li { margin: 6px 0; }
.svc-text .faq-list { margin-top: 8px; }
.svc-text .hero-actions { margin-top: 32px; }
@media (max-width: 760px) { .svc-facts { grid-template-columns: 1fr 1fr; } }
/* Shared sign-in page (customers and team) */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 88px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px 10px; font: inherit;
  font-size: .9rem; font-weight: 600; color: var(--brand-primary-strong); cursor: pointer; border-radius: 6px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--text-muted); margin: 18px 0; font-size: .9rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-icon svg { width: 22px; height: 22px; }
.passkey-login .acct-note { margin-top: 8px; text-align: center; }
.passkey-login .form-error:empty { display: none; }
.form-ok { color: #1a7f37; font-weight: 600; margin: 0 0 12px; }
.form-ok:empty { display: none; }
.acct-panel-open { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: .95rem; }
.acct-panel-open a { font-weight: 700; }
@media (prefers-color-scheme: dark) { .form-ok { color: #6fdd8b; } }

/* ---------- Inicio cards (all sizes) ---------- */
.home-due { border-left: 4px solid var(--brand-accent-strong); }
.home-due-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 2px; }
.home-due-sub { margin: 0 0 12px; color: var(--text-muted); }
.home-seeall { font-weight: 600; font-size: .95rem; }
.home-list { list-style: none; padding: 0; margin: 4px 0 0; }
.home-list li + li { border-top: 1px solid var(--border); }
.home-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; color: inherit; text-decoration: none; }
.home-main { display: grid; gap: 2px; min-width: 0; }
.home-main .mono { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.home-main small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-prog { display: flex; gap: 3px; margin-top: 6px; width: 140px; }
.home-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.home-prog i.on { background: var(--brand-primary-strong); }
.home-pill { flex: none; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--text-muted); white-space: nowrap; }
.home-pill.s-choose { background: color-mix(in srgb, var(--brand-accent) 16%, var(--bg)); color: var(--brand-accent-strong); }
.home-pill.s-out_for_delivery, .home-pill.s-shipped, .home-pill.s-received, .home-pill.s-confirmed { background: color-mix(in srgb, var(--brand-primary) 14%, var(--bg)); color: var(--brand-primary-strong); }
.home-empty { padding: 10px 2px; color: var(--text-muted); }

/* ---------- Phone app mode (signed-in customers on narrow screens) ---------- */
.app-tabs, .app-top { display: none; }
html.app-mode body { background: var(--bg-soft); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html.app-mode .site-header, html.app-mode .site-footer, html.app-mode .acct-tabs, html.app-mode .pwa-banner { display: none !important; }
html.app-mode .app-top { display: flex; align-items: center; position: sticky; top: 0; z-index: 30; padding: calc(10px + env(safe-area-inset-top)) 16px 8px;
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.app-mode .app-top .brand { font-size: .95rem; }
html.app-mode .app-top .brand-mark { width: 28px; height: 28px; }
html.app-mode .acct-section, html.app-mode .section { padding-top: 4px; padding-bottom: 16px; }
html.app-mode .container { padding-left: 12px; padding-right: 12px; }
html.app-mode .acct-card { border-radius: 18px; border: 0; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); padding: 18px 16px; margin-bottom: 12px; }
html.app-mode .acct-home { gap: 0; }
html.app-mode .app-page-title, html.app-mode .acct-hello h1, html.app-mode .pkg-head h1 { font-size: 1.75rem; font-weight: 800; margin: 4px 4px 12px; }
html.app-mode .app-page-title[hidden] { display: none; }
html.app-mode .acct-hello { background: transparent; box-shadow: none; padding: 0 4px 6px; }
html.app-mode .acct-hello .code-box { background: var(--bg); border-radius: 16px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
html.app-mode .acct-hello .acct-actions .btn { flex: 1 1 100%; min-height: 48px; }
html.app-mode .pkg-head .acct-sub, html.app-mode [data-pkg-new] { display: none; }
html.app-mode[data-app-tab] .acct-home > [data-app-tab] { display: none; }
html.app-mode[data-app-tab="inicio"] .acct-home > [data-app-tab="inicio"]:not([hidden]),
html.app-mode[data-app-tab="cobros"] .acct-home > [data-app-tab="cobros"]:not([hidden]),
html.app-mode[data-app-tab="perfil"] .acct-home > [data-app-tab="perfil"]:not([hidden]) { display: block; }
html.app-mode .whatsapp-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
html.app-mode .app-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-around; align-items: flex-end;
  background: var(--bg); border-top: 1px solid var(--border); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.app-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--text-muted); text-decoration: none; padding: 4px 0; -webkit-tap-highlight-color: transparent; }
.app-tab svg { width: 24px; height: 24px; }
.app-tab[aria-current="page"] { color: var(--brand-primary-strong); }
.app-plus { flex: none; width: 54px; height: 54px; margin: -24px 6px 0; border-radius: 50%; background: var(--brand-accent-strong); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--brand-accent-strong) 40%, transparent); -webkit-tap-highlight-color: transparent; }
.app-plus svg { width: 28px; height: 28px; }
.app-plus[aria-current="page"] { outline: 3px solid color-mix(in srgb, var(--brand-accent) 35%, transparent); outline-offset: 2px; }
html.app-mode .whatsapp-float { display: none !important; }
html.app-mode .app-top { justify-content: space-between; }
.app-wa { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #1a8d4f; color: #fff; }
.app-wa svg { width: 20px; height: 20px; }
.app-wa[hidden] { display: none; }
/* Profile: edit form and the app menu */
.prof-form { margin-top: 14px; }
.app-menu, .app-menu-head, .app-page-title { display: none; }
html.app-mode .app-page-title:not([hidden]) { display: block; margin: 4px 4px 12px; }
html.app-mode .app-page-title h1 { font-size: 1.75rem; font-weight: 800; margin: 0; }
.app-back { display: inline-block; font-weight: 600; text-decoration: none; margin: 0 0 4px; }
html.app-mode[data-app-tab="perfil"]:not([data-app-sub]) .acct-home > [data-app-sub] { display: none !important; }
html.app-mode[data-app-tab="perfil"]:not([data-app-sub]) .acct-home > [data-app-menu] { display: block; }
html.app-mode[data-app-tab="perfil"][data-app-sub] .acct-home > [data-app-tab="perfil"] { display: none !important; }
html.app-mode[data-app-tab="perfil"][data-app-sub="datos"] .acct-home > [data-app-tab="perfil"][data-app-sub="datos"],
html.app-mode[data-app-tab="perfil"][data-app-sub="direcciones"] .acct-home > [data-app-tab="perfil"][data-app-sub="direcciones"],
html.app-mode[data-app-tab="perfil"][data-app-sub="tarifa"] .acct-home > [data-app-tab="perfil"][data-app-sub="tarifa"]:not([hidden]),
html.app-mode[data-app-tab="perfil"][data-app-sub="avisos"] .acct-home > [data-app-tab="perfil"][data-app-sub="avisos"]:not([hidden]),
html.app-mode[data-app-tab="perfil"][data-app-sub="app"] .acct-home > [data-app-tab="perfil"][data-app-sub="app"]:not([hidden]) { display: block !important; }
html.app-mode [data-app-sub] > h2:first-child, html.app-mode [data-app-sub] > .addr-head h2 { display: none; }
html.app-mode .app-menu { padding: 4px 16px; }
html.app-mode .app-menu-head { padding: 16px; }
html.app-mode .app-menu-head strong { display: block; font-size: 1.1rem; }
html.app-mode .app-menu-head span { color: var(--text-muted); font-size: .9rem; }
.app-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 12px 0; color: var(--text);
  text-decoration: none; font: inherit; font-weight: 600; background: none; border: 0; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-menu-item + .app-menu-item { border-top: 1px solid var(--border); }
.app-menu-item[hidden] { display: none; }
.app-menu-end { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 500; font-size: .92rem; }
.app-menu-end svg { width: 18px; height: 18px; }
.app-menu-out { color: #b42318; justify-content: center; }
@media (prefers-color-scheme: dark) { .app-menu-out { color: #ff8a80; } }
/* My packages: "In progress / Delivered" switch and folding details on phones */
.pkg-seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.pkg-seg[hidden] { display: none; }
.pkg-seg button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.pkg-seg button span { font-weight: 500; opacity: .8; }
.pkg-seg button[aria-selected="true"] { background: color-mix(in srgb, var(--brand-primary) 14%, var(--bg)); color: var(--brand-primary-strong); }
.pkg-toggle { display: none; }
.pkg-none { color: var(--text-muted); }
html.app-mode .pkg-seg { background: #e8edf4; border: 0; }
html.app-mode .pkg-seg button[aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
html.app-mode .pkg-toggle { display: inline-block; margin-top: 10px; font-weight: 600; }
html.app-mode .pkg-card:not(.is-open) .pkg-more { display: none; }
html.app-mode .pkg-card .pkg-progress .lbl { font-size: .7rem; }
html.app-mode .pkg-card .pkg-progress li:not(.current) .lbl { visibility: hidden; }
@media (prefers-color-scheme: dark) { html.app-mode .pkg-seg { background: var(--bg); } }
html.app-mode .app-back { font-size: 1rem; }
/* Bottom sheets (phone app): address forms and "My details" slide up from the bottom */
.app-sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(15, 20, 30, .45); animation: app-fade .2s ease; }
.app-sheet-bg[hidden] { display: none; }
html.sheet-open body { overflow: hidden; }
html.app-mode .addr-form:not([hidden]), html.app-mode .pkg-addr-form:not([hidden]), html.app-mode .prof-form:not([hidden]) {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 20px 20px 0 0; padding: 26px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); animation: app-sheet-up .25s ease; border: 0; }
html.app-mode .addr-form:not([hidden])::before, html.app-mode .pkg-addr-form:not([hidden])::before, html.app-mode .prof-form:not([hidden])::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--border); }
html.app-mode .addr-form h3 { font-size: 1.2rem; margin-top: 0; }
@keyframes app-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .app-sheet-bg, html.app-mode .addr-form, html.app-mode .pkg-addr-form, html.app-mode .prof-form { animation: none !important; } }

/* Invoices tab (phone app) */
html.app-mode .myinv-card > h2 { display: none; }
html.app-mode .myinv-card { background: transparent; box-shadow: none; padding: 0; }
html.app-mode .myinv-due { font-size: 1rem; padding: 14px 16px; border-radius: 14px; }
html.app-mode .myinv-list { gap: 10px; }
html.app-mode .myinv a { background: var(--bg); border: 0; border-radius: 16px; padding: 16px; min-height: 64px; box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }
html.app-mode .myinv.is-open a { border-left: 4px solid #e0a100; }
html.app-mode .myinv-side strong { font-size: 1.05rem; }

/* Installed app: never show the website menu or footer (pure CSS, so there is no flash while loading) */
@media (display-mode: standalone) {
  .site-header, .site-footer, .whatsapp-float, .pwa-banner { display: none !important; }
  body { background: var(--bg-soft); }
}
/* Signed-out app look: sign-in screen like a native app, no tab bar */
html.app-guest .app-tabs { display: none !important; }
html.app-guest body { padding-bottom: env(safe-area-inset-bottom); }
html.app-guest .app-wa { display: none; }
html.app-guest:has(.app-login-brand) .app-top .brand { display: none; }
html.app-guest:has(.app-login-brand) .app-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; min-height: 44px; }
.app-login-brand { display: none; }
html.app-guest .app-login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 22px; text-align: center; }
html.app-guest .app-login-brand .brand-mark, html.app-guest .app-login-brand img { width: 72px !important; height: 72px; object-fit: contain; }
html.app-guest .app-login-brand .brand-name { font-size: 1.5rem; }
html.app-guest .acct-section { padding-top: 0; }
html.app-guest .acct-wrap { align-items: stretch; }
html.app-guest .acct-card { max-width: none; }
html.app-guest .acct-card h1 { font-size: 1.5rem; }
html.app-guest .acct-card .btn { min-height: 50px; }
.app-web-link { font-weight: 600; text-decoration: none; font-size: .95rem; }
.app-backbtn { width: 38px; height: 38px; margin-right: 6px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-primary-strong); text-decoration: none; }
.app-backbtn svg { width: 24px; height: 24px; }
html.app-mode .app-top { gap: 6px; }
html.app-mode .app-top .brand { margin-right: auto; }
/* Inicio: address reminder and the US warehouse address */
.home-addr { border-left: 4px solid var(--brand-primary-strong); }
.home-addr-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 4px; }
.home-addr-sub { margin: 0 0 12px; color: var(--text-muted); }
.home-wh-rows { margin: 4px 0 14px; }
.home-wh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.home-wh-row span { display: grid; min-width: 0; }
.home-wh-row small { color: var(--text-muted); font-size: .78rem; }
.home-wh-row strong { overflow-wrap: anywhere; }
.home-wh-row .btn { flex: none; }
/* Warehouse address shown like a shipping label */
.wh-label { position: relative; margin: 6px 0 8px; padding: 16px 16px 14px; border-radius: 14px; background: var(--bg-soft);
  border: 1.5px dashed color-mix(in srgb, var(--brand-primary-strong) 45%, var(--border)); font-size: 1.05rem; line-height: 1.35; }
.wh-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 2px 0; }
.wh-part { font: inherit; color: var(--text); background: none; border: 0; padding: 1px 3px; margin: 0 -3px; border-radius: 6px; cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent; transition: background .15s; }
.wh-part:hover { background: color-mix(in srgb, var(--brand-primary) 10%, transparent); }
.wh-part.is-copied { background: color-mix(in srgb, #1a7f37 18%, transparent); }
.wh-name { font-weight: 800; }
.wh-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; color: var(--brand-primary-strong); }
.wh-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-primary-strong);
  background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg)); padding: 2px 7px; border-radius: 999px; margin-left: 8px; align-self: center; }
.wh-sep { margin-left: -4px; }
.wh-phone { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }
.wh-tip { margin: 0 0 12px; color: var(--text-muted); font-size: .85rem; }
.wh-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); opacity: 0; pointer-events: none; z-index: 70;
  background: #1d2433; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; transition: opacity .2s, transform .2s; margin: 0; white-space: nowrap; }
.wh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.addr-default-check[hidden], .addr-main-note[hidden] { display: none; }
.addr-default-check { padding: 10px 0; }
.addr-default-check input { width: 24px; height: 24px; }
.addr-main-note { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand-primary) 10%, var(--bg)); color: var(--brand-primary-strong); font-weight: 600; font-size: .92rem; }
/* Computer: the signed-in account is split into the same sections as the phone app (step 31):
   Inicio · Mis paquetes · Notificar · Cobros · Ajustes. Settings show a list on the left and the chosen section on the right. */
html.desk-tabs[data-app-tab] .acct-home > [data-app-tab] { display: none; }
html.desk-tabs[data-app-tab="inicio"] .acct-home > [data-app-tab="inicio"]:not([hidden]),
html.desk-tabs[data-app-tab="cobros"] .acct-home > [data-app-tab="cobros"]:not([hidden]) { display: block; }
html.desk-tabs .acct-wrap .acct-tabs, html.desk-tabs[data-app-tab] .acct-home { max-width: 900px; }
html.desk-tabs[data-app-tab="perfil"] .acct-home { grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; align-items: start; }
/* Inicio on a computer: greeting on top, the US address on the left, what is due and the latest packages on the right. */
html.desk-tabs[data-app-tab="inicio"] .acct-home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
html.desk-tabs[data-app-tab="inicio"] .acct-home > .acct-hello, html.desk-tabs[data-app-tab="inicio"] .acct-home > .home-addr { grid-column: 1 / -1; }
html.desk-tabs[data-app-tab="inicio"] .acct-home > .home-wh { grid-column: 1; grid-row: span 2; }
html.desk-tabs[data-app-tab="inicio"] .acct-home > .home-due, html.desk-tabs[data-app-tab="inicio"] .acct-home > .home-recent { grid-column: 2; }
html.desk-tabs .acct-hello .acct-actions { display: none; }
html.desk-tabs .acct-home > [data-app-menu]:has(.app-menu-out) { display: none !important; }
html.desk-tabs[data-app-tab="perfil"] .acct-home > .app-page-title:not([hidden]) { display: block; grid-column: 1 / -1; }
html.desk-tabs .app-page-title h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }
html.desk-tabs[data-app-tab="perfil"] .acct-home > [data-app-menu] { display: block; grid-column: 1; padding: 6px; }
html.desk-tabs[data-app-tab="perfil"] .acct-home > .app-menu-head { padding: 14px 16px; }
html.desk-tabs .app-menu-head strong { display: block; }
html.desk-tabs .app-menu-head span { color: var(--text-muted); font-size: .88rem; overflow-wrap: anywhere; }
html.desk-tabs .acct-home > [data-app-menu]:has([data-app-menu-item="ayuda"]),
html.desk-tabs [data-app-menu-item="app"], html.desk-tabs [data-app-menu-item="idioma"] { display: none !important; }
html.desk-tabs .app-menu-item { min-height: 0; padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
html.desk-tabs .app-menu-item + .app-menu-item { border-top: 0; }
html.desk-tabs .app-menu-item:hover { background: var(--bg-soft); }
html.desk-tabs .app-menu-item[aria-current] { background: color-mix(in srgb, var(--brand-primary) 12%, var(--bg)); color: var(--brand-primary-strong); }
html.desk-tabs .app-menu-item .app-menu-end svg { display: none; }
html.desk-tabs .app-menu-out { justify-content: flex-start; }
html.desk-tabs[data-app-tab="perfil"][data-app-sub="datos"] .acct-home > [data-app-sub="datos"],
html.desk-tabs[data-app-tab="perfil"][data-app-sub="direcciones"] .acct-home > [data-app-sub="direcciones"],
html.desk-tabs[data-app-tab="perfil"][data-app-sub="tarifa"] .acct-home > [data-app-sub="tarifa"]:not([hidden]),
html.desk-tabs[data-app-tab="perfil"][data-app-sub="avisos"] .acct-home > [data-app-sub="avisos"]:not([hidden]) { display: block; grid-column: 2; grid-row: 2 / 6; }
html.desk-tabs .pkg-page, html.desk-tabs [data-packages] [data-acct-view="form"], html.desk-tabs [data-packages] [data-acct-view="done"] { max-width: 900px; }
/* Customer menu in the header (step 31b): initials + first name, opens the account sections and "Salir". */
.cust-menu { position: relative; }
.cust-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; color: var(--text); font: inherit; }
.cust-btn:hover, .cust-btn[aria-expanded="true"] { background: var(--bg-soft); }
.cust-btn:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }
.cust-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: var(--brand-primary-strong); }
.cust-name { font-weight: 600; font-size: .92rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-caret { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; color: var(--text-muted); }
.cust-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 60; }
.cust-pop[hidden] { display: none; }
.cust-pop-head { margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.cust-pop-head small { color: var(--text-muted); font-size: .82rem; overflow-wrap: anywhere; }
.cust-pop a, .cust-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 500; font-size: .95rem; text-decoration: none; cursor: pointer; text-align: left; }
.cust-pop a:hover, .cust-pop button:hover { background: var(--bg-soft); }
.cust-pop svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.cust-pop .cust-out { border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 11px; color: #b42318; }
.cust-pop .cust-out svg { color: currentColor; }
@media (prefers-color-scheme: dark) { .cust-pop .cust-out { color: #ff8a80; } }
@media (max-width: 860px) { .cust-pop { position: static; margin-top: 8px; box-shadow: none; } }
/* "New address" opened over the current screen (Inicio): a window on a computer; on phones the form is already a sheet. */
.addr-modal, .addr-modal .addr-modal-card { display: contents; }
html.addr-modal-open body { overflow: hidden; }
html.desk-tabs .addr-modal { display: grid; place-items: center; position: fixed; inset: 0; z-index: 70; padding: 24px; overflow-y: auto; background: rgba(15, 20, 30, .45); animation: app-fade .2s ease; }
html.desk-tabs .addr-modal .addr-form { width: 100%; max-width: 600px; max-height: calc(100vh - 48px); overflow-y: auto; margin: 0; padding: 24px 28px; background: var(--bg); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
html.desk-tabs .addr-modal .addr-form h3 { font-size: 1.25rem; margin-top: 0; }
/* "Tu tarifa" on Inicio: one tile per service with its price, minimum and transit time. */
.home-rates-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.home-rate { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--bg-soft); }
.home-rate.is-special { border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--border)); }
.home-rate-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.home-rate-tag { font-size: .7rem; font-weight: 700; color: var(--brand-primary-strong); background: color-mix(in srgb, var(--brand-primary) 14%, transparent); border-radius: 999px; padding: 1px 7px; }
.home-rate-price { margin-top: 4px; font-size: 1.25rem; font-weight: 800; }
.home-rate-price s { font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-right: 6px; }
.home-rate-price small { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.home-rate-meta { margin-top: 2px; font-size: .8rem; color: var(--text-muted); }
html.desk-tabs[data-app-tab="inicio"] .acct-home > .home-rates { grid-column: 1 / -1; }
/* Customer code pending (manual codes, step 32): highlighted wherever the code would be. */
.code-box.is-pending .code-value { font-family: inherit; font-size: 1.15rem; font-weight: 800; color: #8a4b00; letter-spacing: 0; }
.code-box.is-pending { background: #fff1d6; border-color: #f5c26b; }
.code-pending-note, .wh-pending-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff1d6; border: 1px solid #f5c26b; color: #6b3a00; font-weight: 600; font-size: .9rem; }
.code-pending-note[hidden] { display: none; }
.wh-pending { display: inline-block; font-weight: 800; color: #8a4b00; background: #fff1d6; border: 1px solid #f5c26b; border-radius: 6px; padding: 1px 8px; }
@media (prefers-color-scheme: dark) {
  .code-box.is-pending, .code-pending-note, .wh-pending-note, .wh-pending { background: #3d2a0a; border-color: #7a5317; color: #ffd28a; }
  .code-box.is-pending .code-value { color: #ffd28a; }
}
