:root {
  /* brand colours taken from the ShipCompare logo */
  --navy: #12294a; --navy-2: #1b3d6e; --accent: #0b5cff; --accent-d: #0047d6; --sky: #1aa0ff;
  --bg: #f4f6f9; --card: #fff; --text: #1b2430; --muted: #5d6b7c; --line: #e2e7ee;
  --ok: #18864b; --ok-bg: #e5f5ec; --warn: #a15c00; --warn-bg: #fff2df; --bad: #b42318; --bad-bg: #fde8e6;
  --info: #1d5fa8; --info-bg: #e5effb; --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--info); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0 0 6px; } h2 { font-size: 19px; margin: 0 0 12px; } h3 { font-size: 16px; margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .right, .end { text-align: end; } .nowrap { white-space: nowrap; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main.container { padding-top: 24px; padding-bottom: 48px; }

/* header */
.site-header { background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.site-header .bar { display: flex; align-items: center; gap: 20px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--navy); padding: 6px 0; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 62px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-word { width: 150px; height: auto; display: block; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--navy); padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav a:hover { background: #eef3ff; text-decoration: none; }
.nav a.active { background: #e7efff; color: var(--accent); text-decoration: none; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.wallet-chip { background: #e7efff; padding: 5px 10px; border-radius: 20px; color: var(--accent); font-weight: 600; }
.userbox a { color: var(--navy); }
.userbox a.btn { color: #fff; }
.userbox .logout { color: var(--muted); }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); font-size: 24px; cursor: pointer; margin-inline-start: auto; }
@media (max-width: 420px) { .brand-icon { width: 50px; } .brand-word { width: 124px; } }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav, .userbox { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; padding-bottom: 8px; }
  .site-header.open .userbox { display: flex; padding-bottom: 14px; flex-wrap: wrap; }
}

/* cards & layout */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.layout-side { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); } .layout-side { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stat .label { color: var(--muted); font-size: 13px; } .stat .value { font-size: 26px; font-weight: 700; margin-top: 2px; }
.stat a { font-size: 13px; }

/* hero */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--accent) 130%); color: #fff; padding: 44px 0 90px; }
.hero .tagline { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .25em; color: #9cc7ff; margin-bottom: 10px; }
[dir="rtl"] .hero .tagline { letter-spacing: 0; font-size: 15px; }
.hero h1 { font-size: 34px; } .hero p { color: #c9d7e8; font-size: 17px; margin: 0; max-width: 640px; }
.hero + .container .quote-card { margin-top: -64px; position: relative; }
.features { margin-top: 28px; } .features .card h3 { color: var(--navy); }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid #cfd6df; border-radius: 8px; font: inherit; background: #fff; color: var(--text); }
input[name*="postcode" i] { text-transform: uppercase; }
input[name*="postcode" i]::placeholder { text-transform: none; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11,92,255,.25); border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1; min-width: 120px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; } .check input { width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 10px 18px;
  font: 600 15px/1.2 inherit; font-family: inherit; cursor: pointer; background: var(--accent); color: #fff; text-decoration: none; }
.btn:hover { background: var(--accent-d); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid #cfd6df; } .btn.secondary:hover { background: #f2f4f7; }
.btn.navy { background: var(--navy); } .btn.navy:hover { background: var(--navy-2); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f1b8b2; } .btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 6px 11px; font-size: 13px; } .btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--info); cursor: pointer; font: inherit; padding: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* quote form */
.parcel-row { display: grid; grid-template-columns: 70px repeat(4, minmax(0,1fr)) 36px; gap: 10px; align-items: end; margin-bottom: 10px; }
.parcel-row.docs { grid-template-columns: 70px minmax(0,1fr) 36px; }
.parcel-row .rm { height: 40px; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
@media (max-width: 640px) { .parcel-row { grid-template-columns: repeat(2, minmax(0,1fr)); } .parcel-row .rm { grid-column: span 2; height: auto; text-align: end; } }

/* quotes */
.quote { display: grid; grid-template-columns: 6px minmax(0,1fr) auto auto; gap: 16px; align-items: center; padding-block: 16px; padding-inline: 0 18px; }
.quote + .quote { border-top: 1px solid var(--line); }
.quote .stripe { align-self: stretch; border-start-end-radius: 4px; border-end-end-radius: 4px; }
.quote .carrier { font-weight: 700; font-size: 16px; } .quote .price { font-size: 22px; font-weight: 700; color: var(--navy); text-align: end; }
.quote .price .vat { font-size: 12px; font-weight: 400; color: var(--muted, #667085); white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; margin-inline-start: 6px; vertical-align: 2px; }
.tag.live { background: #e7efff; color: var(--accent); }
.tag.cheap { background: var(--ok-bg); color: var(--ok); } .tag.fast { background: var(--info-bg); color: var(--info); }
@media (max-width: 640px) { .quote { grid-template-columns: 6px minmax(0,1fr) auto; } .quote .act { grid-column: 2 / -1; } .quote .act .btn { width: 100%; } }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef1f5; color: #475467; }
.badge.delivered { background: var(--ok-bg); color: var(--ok); }
.badge.in_transit, .badge.collected, .badge.out_for_delivery, .badge.customs { background: var(--info-bg); color: var(--info); }
.badge.booked { background: #ede9fe; color: #5b21b6; }
.badge.pending_payment { background: var(--warn-bg); color: var(--warn); }
.badge.exception, .badge.cancelled { background: var(--bad-bg); color: var(--bad); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: 0; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-block: 0 18px; padding-inline: 26px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #c3ccd8; }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(11,92,255,.18); }
.timeline li:last-child::after { display: none; }

/* misc */
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: var(--bad-bg); color: var(--bad); } .alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.info { background: var(--info-bg); color: var(--info); } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 6px 12px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 700; }
.pay-option { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; margin-bottom: 10px; font-weight: 500; }
.pay-option input { width: auto; margin-top: 3px; }
.pay-option:has(input:checked) { border-color: var(--accent); background: #f1f6ff; }
.auth-box { max-width: 430px; margin: 30px auto; }
footer.site-footer { color: var(--muted); font-size: 13px; padding: 24px 0 36px; border-top: 1px solid var(--line); }
pre.bank { white-space: pre-wrap; background: #f7f8fa; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 14px; margin: 8px 0 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 12px; padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.hidden { display: none !important; }
@media print { .no-print, .site-header, footer.site-footer { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* language switch + right-to-left (Arabic) */
.lang-btn { background: none; border: 1px solid #cfd6df; color: var(--navy); border-radius: 16px; padding: 4px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.lang-btn:hover { background: #eef3ff; }
.lang-btn:lang(ar) { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; line-height: 1.6; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] th { letter-spacing: 0; text-transform: none; font-size: 13px; }
/* numbers, emails, phones and passwords are always typed left-to-right */
[dir="rtl"] input[type="number"], [dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="password"], [dir="rtl"] input[type="date"] { direction: ltr; text-align: right; }
/* ===================== redesign: home + account area (white + blue) ===================== */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.hl { color: var(--accent); }

/* home hero */
.home-hero { background: #fff; padding: 40px 0 0; position: relative; }
.home-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 800; color: var(--navy); margin: 8px 0 12px; letter-spacing: -.02em; }
[dir="rtl"] .home-hero h1 { letter-spacing: 0; line-height: 1.3; }
.home-hero .lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 0 26px; }
.home-hero .wrap { padding-bottom: 54px; }
.wave { display: block; width: 100%; height: 60px; margin-top: -1px; }
.section { padding: 48px 0; }
.section.tint { background: #f3f7ff; }
.section h2.big { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy); margin: 6px 0 24px; letter-spacing: -.01em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.steps > div { border-top: 2px solid #b9cdf7; padding-top: 14px; }
.steps .n { font-weight: 800; color: var(--accent); font-size: 14px; }
.steps h3 { font-size: 18px; color: var(--navy); margin: 6px 0; }
.steps p { color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--navy); font-weight: 500; }
.ticks li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #e7efff; color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.carrier-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.carrier-strip span { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700; color: var(--navy); font-size: 14px; }
@media (max-width: 760px) { .steps, .ticks { grid-template-columns: 1fr; } }

/* quote widget: folder tabs on a navy bar */
.qtabs { display: flex; gap: 4px; padding-inline-start: 12px; }
.qtab { border: 0; border-radius: 10px 10px 0 0; padding: 10px 18px; font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; background: #1f3b66; color: #c9d8f2; }
.qtab.active { background: var(--navy); color: #fff; box-shadow: inset 0 3px 0 var(--sky); }
.qbar { background: var(--navy); border-radius: 16px; padding: 20px; color: #fff; box-shadow: 0 18px 40px -18px rgba(18,41,74,.55); }
.qbar label { color: #a9c3ee; font-size: 12px; font-weight: 600; }
.qbar input, .qbar select { border-color: transparent; }
.qroute { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.qpair { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 6px; }
.qbar .parcel-row .rm { color: #a9c3ee; }
.qactions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.qactions .link-btn { color: #9cc7ff; }
.qactions .muted { color: #a9c3ee; }
.qbtn { background: var(--sky); color: var(--navy); padding: 12px 26px; font-weight: 800; letter-spacing: .04em; }
.qbtn:hover { background: #fff; }
.qbar .alert { margin: 12px 0 0; }
@media (max-width: 640px) { .qroute { grid-template-columns: 1fr; } }

/* account area: sidebar + content */
.app-shell { display: grid; grid-template-columns: 236px minmax(0,1fr); gap: 24px; align-items: start; }
.side { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--navy); font-weight: 500; font-size: 14px; }
.side-nav a:hover { background: #f3f7ff; text-decoration: none; }
.side-nav a.active { background: #e7efff; color: var(--accent); font-weight: 700; }
.side-nav svg, .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 20px; }
.side-nav .new { background: var(--accent); color: #fff; margin-bottom: 8px; justify-content: center; font-weight: 700; }
.side-nav .new:hover { background: var(--accent-d); }
.side-wallet { margin-top: 12px; border-radius: 12px; padding: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.side-wallet .small { color: #a9c3ee; } .side-wallet .amt { font-size: 22px; font-weight: 800; margin: 2px 0 8px; }
.side-wallet a { color: #9cc7ff; font-size: 13px; font-weight: 600; }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .side { position: static; padding: 6px; overflow-x: auto; }
  .side-nav { flex-direction: row; }
  .side-nav a { white-space: nowrap; }
  .side-nav .new { margin-bottom: 0; }
  .side-wallet { display: none; }
}

/* dashboard */
.welcome { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.welcome h1 { font-size: 26px; color: var(--navy); margin: 0; }
.dash-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center; color: inherit; }
.kpi:hover { border-color: #b9cdf7; text-decoration: none; }
.kpi .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 42px; }
.kpi .v { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi .l { font-size: 13px; color: var(--muted); }
.ico.blue { background: #e7efff; color: var(--accent); } .ico.sky { background: #e3f4ff; color: #0a7fd1; }
.ico.green { background: var(--ok-bg); color: var(--ok); } .ico.amber { background: var(--warn-bg); color: var(--warn); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 17px; color: var(--navy); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-head h2 { margin: 0; }
.quick .qbar { padding: 16px; } .quick .qtabs { padding-inline-start: 8px; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.help-list li { display: flex; gap: 10px; align-items: center; } .help-list .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.app-shell .card { border: 1px solid var(--line); box-shadow: none; border-radius: 14px; }

/* fixes after review */
.btn { white-space: nowrap; }
.quick .qpair { grid-template-columns: 1fr; }
@media (min-width: 821px) { body.has-shell .site-header .nav a:not(:first-child) { display: none; } }

.app-shell > * { min-width: 0; }


.welcome .row { flex: 0 1 auto !important; flex-wrap: wrap; }
.welcome .row > * { min-width: 0; }


/* ===================== v3: ParcelHero-shape layout (white + ShipCompare blue) ===================== */
/* --- full-height sidebar --- */
:root { --sb: 248px; --sb-min: 76px; }
body.has-shell { padding-inline-start: var(--sb); }
body.has-shell.side-min { padding-inline-start: var(--sb-min); }
body.has-shell .site-header, body.has-shell .site-footer { display: none; }
.sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sb); background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 16px 14px; z-index: 40; transition: width .18s; }
.side-min .sidebar { width: var(--sb-min); }
.sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; position: relative; }
.sb-logo { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.sb-logo:hover { text-decoration: none; }
.sb-icon { width: 48px; height: auto; } .sb-word { width: 128px; height: auto; }
.side-min .sb-word { display: none; }
.sb-collapse { position: absolute; inset-inline-end: -26px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.sb-collapse svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.side-min .sb-collapse svg, [dir="rtl"] .sb-collapse svg { transform: scaleX(-1); }
[dir="rtl"] .side-min .sb-collapse svg { transform: none; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; }
.sb-nav a, .sb-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #dbe5f5; font: 500 15px/1.2 inherit; font-family: inherit; background: none; border: 0; cursor: pointer; text-align: start; width: 100%; }
.sb-nav a:hover, .sb-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sb-nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.sb-nav svg, .sb-link svg, .sb-user svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 20px; }
.side-min .sb-nav span, .side-min .sb-link span, .side-min .sb-who { display: none; }
.side-min .sb-nav a, .side-min .sb-link { justify-content: center; padding: 11px 0; }
/* menu with sub-items: Billing & payments › Wallet, Billing details */
.sb-gh .chev { margin-inline-start: auto; width: 16px; height: 16px; flex-basis: 16px; transition: transform .15s; }
.sb-group.open .sb-gh .chev { transform: rotate(180deg); }
.sb-gh.in { color: #fff; font-weight: 700; }
.sb-sub { display: none; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.sb-group.open .sb-sub { display: flex; }
.sb-nav .sb-sub a { padding: 9px 12px 9px 44px; font-size: 14px; }
[dir="rtl"] .sb-nav .sb-sub a { padding: 9px 44px 9px 12px; }
.side-min .sb-sub, .side-min .sb-gh .chev { display: none !important; }
.sb-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.sb-user { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; }
.sb-user:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.side-min .sb-user { justify-content: center; padding: 10px 0; }
.av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.sb-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sb-who .em { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-who .bal { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; background: rgba(255,255,255,.14); border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.sb-who .bal svg { width: 14px; height: 14px; flex-basis: 14px; }
.mtop { display: none; }
.sb-overlay { display: none; }
@media (max-width: 900px) {
  body.has-shell, body.has-shell.side-min { padding-inline-start: 0; }
  .sidebar, .side-min .sidebar { width: 270px; transform: translateX(-105%); transition: transform .2s; }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  .side-open .sidebar { transform: none !important; }
  .side-min .sb-word, .side-min .sb-nav span, .side-min .sb-link span, .side-min .sb-who { display: revert; }
  .side-min .sb-nav a, .side-min .sb-link { justify-content: flex-start; padding: 11px 12px; }
  .side-min .sb-group.open .sb-sub { display: flex !important; } .side-min .sb-gh .chev { display: revert !important; }
  .sb-collapse { display: none; }
  .mtop { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mtop .brand-icon { width: 46px; } .mtop .brand-word { width: 120px; } .mtop .menu-btn { display: block; margin: 0; }
  .side-open .sb-overlay { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 35; }
}
.help-fab { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(18,41,74,.35); z-index: 30; }
.help-fab:hover { background: var(--accent); }
.help-fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* --- one-row quote bar --- */
.qtabs { padding-inline-start: 0; gap: 0; }
.qtab { background: var(--accent); color: #fff; padding: 14px 30px; font-size: 17px; font-weight: 700; border-radius: 0; box-shadow: none; }
.qtab:first-child { border-start-start-radius: 14px; }
.qtab:last-child { border-start-end-radius: 14px; }
.qtab.active { background: var(--navy); color: #fff; box-shadow: none; }
.qtab:not(.active):hover { background: var(--accent-d); }
.qbar { border-radius: 0 16px 16px 16px; padding: 26px 30px 22px; }
[dir="rtl"] .qbar { border-radius: 16px 0 16px 16px; }
.qrow { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1.6fr) minmax(70px,.75fr) repeat(4, minmax(62px,.8fr)) auto; gap: 12px; align-items: end; }
.qf.is-docs .qrow { grid-template-columns: minmax(0,1.6fr) minmax(0,1.6fr) minmax(240px,2.4fr) auto; }
@media (min-width: 1101px) { .qf.is-docs.is-custom .qrow { grid-template-columns: minmax(0,1.5fr) minmax(0,1.5fr) minmax(170px,1.7fr) repeat(3, minmax(66px,.8fr)) auto; } } /* wide screens only; phones use the stacked layout */
.qrow + .qrow { margin-top: 12px; }
.qrow:not(.first) label { display: none; }
.qbar .qc > label { color: #e3ebf8; font-size: 15px; font-weight: 500; margin-bottom: 10px; display: block; white-space: nowrap; }
.qlabel { display: flex !important; align-items: center; gap: 2px; }
.qsel { width: auto; max-width: 100%; background: transparent; border: 0 !important; color: #fff; font-weight: 700; font-size: 15px; padding: 0 2px; cursor: pointer; }
.qsel:focus { outline: 1px dashed rgba(255,255,255,.5); }
.qsel option { color: #111; }
.qbar input, .qbar select:not(.qsel) { height: 50px; border-radius: 8px; font-size: 16px; }
.pc { display: flex; align-items: center; gap: 8px; height: 50px; background: #fff; border-radius: 8px; padding-inline: 12px; }
.pc input { border: 0 !important; padding: 0; height: 100% !important; outline: none; background: transparent; }
.cc { font-size: 11px; font-weight: 800; background: #e7efff; color: var(--accent); border-radius: 4px; padding: 3px 6px; letter-spacing: .04em; }
.unit { position: relative; display: block; }
.unit input { padding-inline-end: 38px; text-align: end; }
.unit::after { content: attr(data-u); position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: #4a5a70; font-size: 15px; pointer-events: none; }
.unit input::-webkit-outer-spin-button, .unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.unit input[type=number] { -moz-appearance: textfield; }
.qgo .qbtn { height: 50px; padding: 0 26px; background: var(--accent); color: #fff; font-size: 16px; letter-spacing: .02em; }
.qgo .qbtn:hover { background: #fff; color: var(--navy); }
.qrow .rm { height: 50px; width: 50px; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: #c9d8f2; font-size: 22px; cursor: pointer; }
.qactions { margin-top: 16px; }
.qactions .add { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.qactions .plus { width: 22px; height: 22px; border: 1.5px solid #fff; border-radius: 50%; display: inline-grid; place-items: center; font-size: 16px; line-height: 1; }
.qactions .units { color: #e3ebf8; font-weight: 600; }
@media (max-width: 1100px) {
  .qrow, .qf.is-docs .qrow { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .qrow .qplace { grid-column: span 3; } .qspacer { display: none; }
  .qrow .qqty { grid-column: span 2; } .qrow .qc:not(.qplace):not(.qqty):not(.qgo) { grid-column: span 2; }
  .qf.is-docs .qrow .qc:not(.qplace):not(.qqty):not(.qgo) { grid-column: span 4; }
  .qrow .qgo { grid-column: 1 / -1; } .qgo .qbtn { width: 100%; }
  .qrow:not(.first) label { display: block; }
  .qrow:not(.first) .qgo { grid-column: span 6; } .qrow .rm { width: 100%; }
}
@media (max-width: 560px) { .qrow .qplace { grid-column: 1 / -1; } .qbar { padding: 18px 16px; } .qtab { padding: 12px 20px; font-size: 15px; } }

/* --- dashboard --- */
.dash-hello { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; color: var(--navy); margin: 4px 0 20px; letter-spacing: -.02em; }
[dir="rtl"] .dash-hello { letter-spacing: 0; }
.dash-band { position: relative; margin-inline: -16px; padding-inline: 16px; padding-bottom: 50px;
  background: linear-gradient(to bottom, transparent 0, transparent 135px, #e3edff 135px); }
.dash-band .wave { position: absolute; bottom: 0; inset-inline: 0; height: 60px; }
.ship-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ship-head h2 { font-size: 22px; color: var(--navy); margin: 0; }
.ship-tools { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
@media (max-width: 700px) { .ship-tools { flex: 1 1 100%; flex-wrap: wrap; min-width: 0; } .ship-tools .search-box { flex: 1 1 100%; width: 100%; min-width: 0; box-sizing: border-box; } .search-box input { min-width: 0; width: 100%; } }
.pill-select { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid #cfd6df; border-radius: 22px; padding: 0 12px; height: 40px; background: #fff; }
.pill-select svg, .search-box svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 18px; }
.pill-select select { border: 0; padding: 0 4px; height: 40px; background: transparent; font-weight: 500; color: var(--navy); cursor: pointer; width: auto; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid #cfd6df; border-radius: 22px; padding: 0 14px; height: 40px; width: min(280px, 100%); background: #fff; }
.search-box input { border: 0; padding: 0; height: 40px; outline: none; }
.scards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 860px) { .scards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.scard { display: flex; align-items: center; gap: 10px; text-align: start; padding: 11px 14px; min-width: 0; border-radius: 12px; background: #eef7ff; border: 1.5px solid #bfdcf7; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .12s, background .12s; }
.scard:hover { background: #e3f1ff; box-shadow: 0 4px 14px rgba(11,92,255,.10); }
.scard .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 34px; }
.scard .ico svg { width: 18px; height: 18px; }
.scard > :last-child { min-width: 0; }
.scard .v { font-size: 20px; font-weight: 800; line-height: 1.1; }
.scard .l { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard.c-blue .v { color: var(--accent); }
.scard.c-sky .v { color: #0a7fd1; }
.scard.c-red .v { color: var(--bad); }
.scard.c-amber .v { color: var(--warn); }
.scard.on { border-color: var(--accent); background: #dcecff; box-shadow: 0 0 0 1px var(--accent) inset; }
.scard .ico { background: #fff !important; }
.ico.red { background: var(--bad-bg); color: var(--bad); }
.ship-table { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.ship-table th { background: #fafbfd; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; padding: 14px 20px; }
.ship-table td { padding: 14px 20px; }
.dash-wrap { padding-top: 22px; padding-bottom: 90px; }
.shipments-bg { background: #f7f9fc; margin-inline: -16px; padding: 0 16px 30px; }

/* flags, pallets tab */
.flag { width: 26px; height: 19px; border-radius: 3px; object-fit: cover; flex: 0 0 26px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flag.none { display: grid; place-items: center; box-shadow: none; }
.flag.none svg { width: 20px; height: 20px; fill: none; stroke: #8a99ad; stroke-width: 1.6; }
.new-badge { display: inline-block; background: #ffd23f; color: var(--navy); font-size: 11px; font-weight: 800; border-radius: 4px; padding: 2px 6px; margin-inline-start: 6px; vertical-align: 2px; }
.qf.is-pallet .qrow { grid-template-columns: minmax(0,1.5fr) minmax(0,1.5fr) minmax(70px,.7fr) minmax(80px,.85fr) minmax(150px,1.4fr) minmax(80px,.85fr) auto; }
@media (min-width: 1101px) { .qf.is-pallet.is-custom .qrow { grid-template-columns: minmax(0,1.3fr) minmax(0,1.3fr) minmax(62px,.6fr) minmax(70px,.75fr) minmax(120px,1.1fr) repeat(3, minmax(66px,.7fr)) auto; } } /* wide screens only; phones use the stacked layout */
@media (max-width: 1100px) {
  .qf.is-pallet .qrow { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .qf.is-pallet .qrow .qqty { grid-column: span 2; } .qf.is-pallet .qrow .qsize { grid-column: span 4; }
  .qf.is-pallet .qrow .qc:not(.qplace):not(.qqty):not(.qgo):not(.qsize) { grid-column: span 3; }
  /* phones/tablets: Quantity + Weight on one line, Pallet size + Height on the next */
  .qf.is-pallet .qrow .qc:has(input[name=kg]) { grid-column: span 4 !important; }
  .qf.is-pallet .qrow .qc.qsize { grid-column: span 4 !important; }
  .qf.is-pallet .qrow .qc:has(input[name=h]) { grid-column: span 2 !important; }
  .qf.is-pallet .qrow .qc:has(input[name=l]), .qf.is-pallet .qrow .qc:has(input[name=w]) { grid-column: span 3 !important; }
  /* documents: the type list full width, then Custom's weight / length / width side by side */
  .qf.is-docs .qrow .qc.qdoc { grid-column: 1 / -1 !important; }
  .qf.is-docs .qrow .qc:has(input[name=kg]), .qf.is-docs .qrow .qc:has(input[name=l]), .qf.is-docs .qrow .qc:has(input[name=w]) { grid-column: span 2 !important; }
}

/* carrier logos */
.cmark { display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.cmark img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cmark.sm { width: 64px; height: 28px; padding: 3px 5px; border-radius: 6px; }
.cmark.md { width: 84px; height: 38px; padding: 4px 7px; }
.cmark.lg { width: 110px; height: 52px; padding: 6px 10px; }
.cmark.text { color: #fff; border: 0; font-weight: 800; font-size: 12px; text-align: center; line-height: 1.1; letter-spacing: .01em; }
.cmark.lg.text { font-size: 14px; }
.quote { grid-template-columns: 110px minmax(0,1fr) auto auto; padding: 16px 18px; }
@media (max-width: 640px) { .quote { grid-template-columns: 80px minmax(0,1fr) auto; } .quote .cmark.lg { width: 80px; height: 42px; } }

/* home page in dashboard shape */
.home-title { margin-top: 4px; }
.carrier-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 34px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; height: 86px; display: grid; place-items: center; padding: 12px; transition: box-shadow .15s, border-color .15s; }
.logo-tile:hover { border-color: #b9cdf7; box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.cmark.xl { width: 100%; height: 100%; border: 0; padding: 0; background: transparent; }
/* courier logos that start a quote for that courier only */
.logo-tile.bookable { position: relative; cursor: pointer; font: inherit; width: 100%; box-sizing: border-box; height: 86px; min-height: 86px; padding: 8px 12px 26px; }
.logo-tile.bookable .cmark.xl { height: 50px; }
.logo-tile.bookable .cmark.xl img { max-height: 50px; object-fit: contain; }
.logo-tile.bookable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-tile .logo-cta { position: absolute; inset: auto 0 7px; text-align: center; font-size: 12px; font-weight: 600; color: var(--accent); }
.logo-tile.bookable:hover .logo-cta { text-decoration: underline; }
.only-carrier { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #e7efff; color: var(--navy); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.only-carrier .cmark { flex: none; }
.only-carrier .link-btn { color: var(--accent); font-weight: 600; text-decoration: underline; }
.cmark.xl.text { border-radius: 8px; font-size: 15px; height: 46px; }
.home-steps { padding: 26px 0 10px; border-top: 1px solid var(--line); }
.sb-cta { margin-top: 6px; gap: 10px; }
.sb-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.side-min .sb-cta span { display: none; }
.side-min .sb-cta { padding: 10px 0; }
@media (max-width: 900px) { .side-min .sb-cta span { display: revert; } }

/* fix: country dropdowns must stay inside their own column (were covering "To:") */
.qplace { min-width: 0; }
.qlabel { min-width: 0; overflow: hidden; }
.qsel { flex: 1 1 0; min-width: 0; width: 0; text-overflow: ellipsis; }

/* ---------- journey box (tracking): plane or van on the route with a flashing light */
.journey { border-radius: 16px; padding: 16px 18px 14px; margin: 4px 0 16px; background: linear-gradient(180deg, #eaf3ff 0%, #f7faff 70%, #fff 100%); border: 1px solid #dfe9fb; overflow: hidden; }
.j-ends { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.j-ends > div:first-child, .j-ends > div:last-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.j-ends > div:last-child { justify-content: flex-end; text-align: end; }
.j-ends b { display: block; font-size: 15px; color: var(--navy); } .j-ends small { color: var(--muted); font-size: 12px; }
.j-now { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dfe9fb; border-radius: 20px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--navy); box-shadow: 0 2px 8px rgba(18,41,74,.06); white-space: nowrap; }
.j-dot { width: 9px; height: 9px; border-radius: 50%; animation: j-blink 1.1s infinite; }
.j-svg { display: block; width: 100%; height: auto; margin: 4px 0 2px; overflow: visible; }
.j-route { fill: none; stroke: #b9cdf0; stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.j-progress { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.j-stop { fill: #fff; stroke: #b9cdf0; stroke-width: 3; } .j-stop.on { fill: var(--accent); stroke: #fff; }
.j-strobe { fill: #fff; stroke: #ef4444; stroke-width: 1; animation: j-strobe 1.4s infinite; }
@keyframes j-strobe { 0%, 8% { opacity: 1; } 9%, 100% { opacity: .1; } }
.j-beacon { animation: j-blink 1.1s infinite; filter: drop-shadow(0 0 4px currentColor); }
.j-ring { fill: none; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: j-ping 2s infinite ease-out; }
.j-ring.r2 { animation-delay: 1s; }
.j-craft { animation: j-bob 3s infinite ease-in-out; }
.journey.j-done .j-dot, .journey.j-off .j-dot { animation: none; }
.journey.j-done .j-craft, .journey.j-done .j-beacon { animation: none; }
.journey.j-off { background: #f6f7f9; border-color: var(--line); } .journey.j-off .j-route { stroke: #d5d8de; }
.journey.j-issue { background: linear-gradient(180deg, #fff1f0 0%, #fffafa 70%, #fff 100%); border-color: #f8d5d1; }
.j-stages { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.j-stages span.past { color: var(--navy); } .j-stages span.now { color: var(--accent); font-weight: 800; }
.j-note { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--navy); }
.journey.j-issue .j-note { color: var(--bad); }
@keyframes j-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@keyframes j-ping { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes j-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 560px) {
  .j-ends { grid-template-columns: 1fr 1fr; } .j-now { grid-column: 1 / -1; grid-row: 2; justify-self: center; white-space: normal; }
  .j-stages { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .j-dot, .j-beacon, .j-strobe, .j-ring, .j-craft { animation: none !important; } .j-ring { opacity: 0; } }

/* ---------- exchange rates: ticker or small square */
.fx-ticker { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 1px solid #e3e9f3; border-radius: 8px; padding: 3px 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(18,41,74,.06); }
/* page heading on the left, moving line of rates on the right */
.title-row { display: flex; flex-direction: column; }
.title-row > :first-child { min-width: 0; }
/* thin line pulled up to the top edge of the page (main has 24px top padding) */
.title-row > .fx-wrap { order: -1; align-self: flex-end; width: min(640px, 100%); margin: -18px 0 4px; }
.fx-wrap .fx-meta { text-align: end; color: var(--muted); font-size: 10.5px; margin-top: 2px; } .fx-wrap .fx-meta a { color: inherit; }
@media (max-width: 900px) { .title-row > .fx-wrap { width: 100%; } }
.fx-lead { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11.5px; background: var(--navy); color: #fff; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.fx-live { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: j-blink 1.4s infinite; }
.fx-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.fx-run { display: inline-flex; gap: 28px; white-space: nowrap; animation: fx-scroll 40s linear infinite; padding-inline-end: 28px; }
.fx-ticker:hover .fx-run { animation-play-state: paused; }
.fx-i { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.2; }
.fx-i .flag { width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(18,41,74,.12); flex: 0 0 18px; }
.fx-i .cc { font-size: 10px; font-weight: 700; background: #eef1f6; border-radius: 3px; padding: 1px 3px; }
.fx-cc { color: var(--muted); font-weight: 600; }

.fx-c { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-c.up { color: #16a34a; } .fx-c.down { color: #dc2626; } .fx-c.flat { color: var(--muted); }

@keyframes fx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.fx-square { padding: 16px 18px; }
.fx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fx-head h3 { margin: 0; font-size: 16px; }
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.fx-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.fx-list li:nth-last-child(-n+2) { border-bottom: 0; }
.fx-code { font-size: 14px; } .fx-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; } .fx-val .fx-c { font-size: 11px; }
.fx-row:has(> .fx-square) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.fx-row > .fx-square { margin: 0; }
@media (max-width: 1000px) { .fx-row:has(> .fx-square) { grid-template-columns: 1fr; } }
.fx-list .flag { width: 24px; height: 17px; border-radius: 3px; }
.fx-n { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; } .fx-n small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-meta { margin-top: 8px; } .fx-meta a { color: inherit; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .fx-run { animation: none; } .fx-live { animation: none; } .fx-track { overflow-x: auto; } }

/* English-only fields */
.latin-warn { font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 4px 8px; margin-top: 4px; }
.en-note { margin-bottom: 14px; }
/* demo copy banner (DEMO_MODE=1 only) */
.demo-bar { position: sticky; top: 0; z-index: 80; background: #f59e0b; color: #1f1300; text-align: center; font-weight: 800; font-size: 13px; padding: 6px 10px; letter-spacing: .2px; }
/* searchable country picker (From / To) */
.qsel-native { display: none !important; }
.qplace { position: relative; overflow: visible; }
.qpick-btn { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; background: none; border: 0; padding: 0 2px; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.qpick-btn .qpick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qpick-btn svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.qpick-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.qpick-btn:focus-visible { outline: 2px solid #7fb0ff; outline-offset: 2px; border-radius: 4px; }
.qpick-pop { position: absolute; z-index: 60; top: 28px; inset-inline-start: 0; width: max(100%, 280px); background: #fff; color: var(--navy); border-radius: 12px; box-shadow: 0 18px 40px rgba(10,25,50,.28); padding: 8px; }
.qpick-search { display: flex; align-items: center; gap: 8px; border: 1px solid #cfd6df; border-radius: 9px; padding: 0 10px; height: 40px; }
.qpick-search svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.qpick-search input { border: 0 !important; outline: none; height: 38px !important; padding: 0; font-size: 15px !important; background: transparent; }
.qpick-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.qpick-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.qpick-list li .flag { width: 24px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(18,41,74,.12); flex: 0 0 24px; }
.qpick-list li.on, .qpick-list li:hover { background: #eef4ff; }
.qpick-list li[aria-selected="true"] { font-weight: 700; color: var(--accent); }
.qpick-list li.none { color: var(--muted); cursor: default; }

/* trust band: customer reviews (stars) and parcel protection badge — quotes page and home page */
.trust-band { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 16px; }
.trust-band a { text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.trust-band a:hover { text-decoration: none; opacity: .85; }
.trust-reviews span:last-child { color: var(--muted, #667085); font-size: 14px; }
.stars { color: #f5b301; letter-spacing: 1px; font-size: 18px; line-height: 1; }
.stars .off { color: #d0d5dd; }
.trust-protect { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-inline-start: auto; }
.trust-protect svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.trust-protect strong { display: block; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }
.trust-protect small { display: block; font-size: 12px; color: var(--muted, #667085); }
/* star rating picker (review form on delivered shipments) */
.star-pick { display: inline-flex; gap: 4px; margin: 4px 0 10px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 32px; line-height: 1; color: #d0d5dd; cursor: pointer; }
.star-pick label.on { color: #f5b301; }
.star-pick input:focus-visible + span { outline: 2px solid var(--accent); border-radius: 4px; }
