:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#0f172a;background:#f7f8fa;font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:0;border-radius:12px;background:#f97316;color:white;padding:14px 18px;font-weight:750;cursor:pointer}button:hover{background:#ea580c}button:disabled{opacity:.5;cursor:wait}input,textarea,select{width:100%;border:1px solid #dbe0e7;border-radius:11px;padding:13px;background:white;color:#0f172a;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #fdba74;outline-offset:1px}label{display:block;font-size:13px;font-weight:650}label>span{display:block;margin-bottom:7px}h1{font-size:clamp(30px,4vw,43px);line-height:1.1;letter-spacing:-.04em;margin:10px 0 16px}h2{font-size:20px}p{line-height:1.65}.hidden{display:none!important}.ex-header{height:76px;padding:0 4%;background:white;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:28px;position:relative;z-index:1300}.ex-brand{font-size:21px;font-weight:900;text-decoration:none;letter-spacing:-.04em;white-space:nowrap}.ex-brand b{color:#f97316}.ex-header nav{display:flex;gap:26px;margin-left:auto;font-size:14px;font-weight:600}.ex-header nav a{text-decoration:none}.ex-header>select{width:78px}.ex-layout{display:grid;grid-template-columns:minmax(380px,480px) minmax(0,1fr);max-width:1550px;margin:auto;gap:28px;padding:32px 4% 50px}.ex-order-panel{background:white;border:1px solid #e5e7eb;border-radius:24px;padding:28px;min-width:0}.ex-eyebrow{color:#c2410c;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin:0}.ex-intro{font-size:14px;color:#64748b;margin-bottom:24px}.ex-route-input{display:grid;grid-template-columns:28px 1fr;gap:10px;align-items:center;margin-bottom:18px}.ex-point{display:grid;place-items:center;width:26px;height:26px;background:#f97316;color:white;border-radius:50%;font-size:12px;font-weight:800;margin-top:20px}.ex-point.end{background:#0f172a}.ex-source{font-size:10px;color:#94a3b8;margin:0 0 18px 38px}.ex-options{border-top:1px solid #e5e7eb;padding:15px 0;font-size:13px}.ex-options summary{cursor:pointer;font-weight:650}.ex-options label,.ex-options input,.ex-options textarea{margin-top:12px}.ex-secondary{background:#fff7ed;color:#9a3412;width:100%;padding:12px}.ex-secondary:hover{background:#ffedd5}.ex-price-card{border-radius:18px;background:#f8fafc;border:1px solid #e5e7eb;margin:20px 0;padding:20px;font-size:14px}.ex-price-card p{color:#64748b;margin:0}.ex-total{font-size:36px;font-weight:900;letter-spacing:-.04em}.ex-subtitle{color:#64748b;font-size:12px;margin:5px 0 16px}.ex-line{display:flex;justify-content:space-between;gap:18px;font-size:12px;line-height:1.6;margin:9px 0}.ex-line strong{white-space:nowrap}.ex-line.primary{border-top:1px solid #dbe0e7;padding-top:12px;font-weight:700}.ex-consent{display:flex;gap:9px;align-items:flex-start;font-size:11px;font-weight:400;line-height:1.5;margin:16px 0}.ex-consent input{width:15px;margin:2px 0 0;flex:none;accent-color:#f97316}.ex-consent span{margin:0}#guest-submit{width:100%;font-size:16px;padding:17px}.ex-fine{font-size:11px;color:#64748b;line-height:1.6}.ex-rules{margin-top:26px;padding-top:20px;border-top:1px solid #e5e7eb}.ex-rules h2{font-size:15px}.ex-rules p{font-size:12px;color:#64748b}.ex-map-panel{align-self:start;position:sticky;top:20px;min-width:0}.ex-map-tools{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.ex-map-tools button{background:white;color:#334155;border:1px solid #dbe0e7;padding:9px 12px;font-size:11px}.ex-map-tools .map-point-active{outline:2px solid #f97316}#delivery-map-canvas{height:calc(100vh - 230px);min-height:420px;max-height:840px;background:#e8edf0;border:1px solid #e2e8f0;border-radius:22px;z-index:0}#map-status{font-size:12px;color:#475569;margin:12px 0}.ex-map-note{font-size:11px;color:#94a3b8}.map-marker{border:3px solid white;border-radius:50%;background:#f97316;color:white;text-align:center;line-height:28px;font-weight:800;box-shadow:0 2px 6px #0005}.map-marker.delivery{background:#0f172a}.map-poi{border:1px solid #64748b;border-radius:50%;background:white;text-align:center;color:#475569;font-size:11px;line-height:16px;box-shadow:0 1px 3px #0004;cursor:pointer}.map-town{background:transparent;border:0;color:#475569;font-weight:700;font-size:12px;white-space:nowrap;text-shadow:1px 1px white}.map-object-button{font-size:12px;padding:8px;margin:4px}.address-control{position:relative}.address-results{position:absolute;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:white;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 12px 30px #0f172a26;z-index:1400;max-height:300px;overflow:auto;font-weight:450;min-width:min(380px,80vw)}.address-results li{padding:12px;border-radius:8px;cursor:pointer;line-height:1.4}.address-results li:hover,.address-results li.selected{background:#fff7ed}.address-results li strong{display:block;font-size:13px;font-weight:650}.address-results li span{display:block;font-size:11px;color:#64748b;margin-top:4px}.address-results li.empty{cursor:default;color:#64748b;font-size:12px}.ex-notice{font-size:13px;padding:14px;border-radius:12px;background:#fff7ed;margin:14px 0;line-height:1.6}.ex-notice.error{background:#fef2f2;color:#991b1b}.ex-footer{max-width:1440px;margin:auto;padding:20px 4% 40px;display:flex;gap:22px;align-items:center;flex-wrap:wrap;color:#64748b;font-size:12px}.ex-footer button{padding:0;color:#64748b;background:none;font-size:12px}.ex-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.ex-chat-open{position:fixed;bottom:22px;right:24px;z-index:1600;box-shadow:0 8px 30px #f9731640}.ex-chat{position:fixed;bottom:88px;right:24px;width:360px;max-width:calc(100vw - 28px);max-height:75vh;background:white;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 15px 60px #0f172a30;z-index:1601;overflow:auto}.ex-chat-head{position:sticky;top:0;background:#0f172a;color:white;display:flex;justify-content:space-between;align-items:center;padding:16px 20px}.ex-chat-head button{padding:0;background:none;font-size:26px}.ex-chat-body{padding:20px;font-size:13px}.ex-chat-choices{display:flex;gap:8px;flex-wrap:wrap}.ex-chat-choices button{font-size:11px;background:#f1f5f9;color:#334155;padding:9px}.ex-chat form label{margin-top:12px}.ex-chat form button{width:100%;font-size:13px}dialog{max-width:500px;width:90%;border:1px solid #e2e8f0;border-radius:18px;padding:28px;font-size:14px}dialog::backdrop{background:#0f172a70}.ex-status{grid-column:1/-1;max-width:760px;width:100%;margin:20px auto;background:white;padding:32px;border:1px solid #e5e7eb;border-radius:22px}.ex-status-badge{display:inline-block;padding:9px 14px;border-radius:30px;background:#fff7ed;color:#9a3412;font-weight:750;font-size:14px}.ex-history{padding-left:20px;font-size:13px;line-height:1.9;color:#475569}.ex-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.ex-actions a{font-size:13px}.dispatch-card{padding:20px;border:1px solid #e2e8f0;border-left:4px solid #f97316;border-radius:12px;margin:18px 0;font-size:14px}.dispatch-card p{margin:8px 0;white-space:pre-line}.dispatch-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.dispatch-actions button{font-size:12px;padding:10px}.dispatch-card textarea{margin-top:12px}.dispatch-phone{font-size:20px;font-weight:750}.dispatch-note{font-size:13px;color:#64748b}#express-policy-form{margin-top:20px}@media(max-width:1000px){.ex-layout{grid-template-columns:minmax(340px,440px) 1fr;gap:18px;padding:22px 20px}.ex-header nav{gap:16px;font-size:12px}.ex-order-panel{padding:22px}}@media(max-width:740px){.ex-header{height:66px;padding:0 16px;gap:14px}.ex-header nav{gap:12px;margin-left:auto}.ex-header nav a[data-i18n="company"]{display:none}.ex-brand{font-size:17px}.ex-header>select{width:62px;padding:9px}.ex-layout{display:flex;flex-direction:column;padding:16px 12px 30px;gap:16px}.ex-order-panel{padding:22px 18px;border-radius:20px}.ex-map-panel{position:static;order:2}.ex-map-panel #delivery-map-canvas{height:340px;min-height:340px}.ex-map-tools button{font-size:10px;padding:8px}.ex-footer{padding:12px 18px 100px;gap:16px}.ex-chat{right:14px;bottom:82px}.ex-chat-open{right:16px;bottom:18px}.ex-status{padding:24px}.address-results{position:static;min-width:0;width:100%;max-height:220px;overscroll-behavior:contain}.ex-total{font-size:32px}}

.admin-section:has(#pricing-form){display:none}#calculate{width:100%;margin-top:16px;font-size:16px;padding:16px}.ex-layout:has(.ex-status:not(.hidden)){grid-template-columns:1fr}
.ex-footer .ex-app-download{font-weight:700}@media(max-width:740px){.ex-header nav{gap:8px}.ex-header nav a[data-i18n="company"]{display:none}}

.order-message-list {list-style:none;padding:0;max-height:20rem;overflow:auto}
.order-message-list li {padding:.65rem 0;border-bottom:1px solid #cbd5e1;overflow-wrap:anywhere}
.order-message-list p {margin:.25rem 0;white-space:pre-wrap}
.order-message-form textarea {display:block;width:100%;margin:.4rem 0;box-sizing:border-box}
#operator-order-messages {width:min(32rem,90vw);max-height:85vh}

.ex-status{box-sizing:border-box;min-width:0;overflow-wrap:anywhere}
.ex-status .ex-line strong{white-space:normal;text-align:right}
.ex-status button{max-width:100%;white-space:normal}

.ex-footer .legal-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem}

.address-map-choice{margin-top:6px;padding:6px 10px;font-size:12px}.address-field small{display:block;color:#475569;margin-top:5px}.address-field small.hidden{display:none}

.ex-iphone-install {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #9a3412;
  font: inherit;
  font-weight: 750;
  text-align: start;
  cursor: pointer;
}
.ex-header nav {
  align-items: center;
  color: #334155;
}

.ex-header nav a,
.ex-header nav .ex-iphone-install {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .ex-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    gap: 4px 12px;
    padding-block: 8px;
  }

  .ex-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    margin-left: 0;
  }
}

.google-address-input:focus-within {
  position: relative;
  z-index: 20;
}
.google-address-input gmp-basic-place-autocomplete::part(prediction-list) {
  background: #fff;
  color: #172033;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0f172a30;
  max-height: min(240px, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.google-address-input gmp-basic-place-autocomplete::part(prediction-item) {
  background-color: #fff;
}
.google-address-input gmp-basic-place-autocomplete::part(prediction-item-selected) {
  background-color: #fff7ed;
}

/* The installed Android app needs a direct link to the company site in its header. */
.knoks-android .ex-header nav a[data-i18n="company"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.knoks-android .ex-header nav .ex-app-download,
.knoks-android .ex-header nav .ex-iphone-install {
  display: none;
}

/* Keep the address widget within its grid column on narrow screens. */
.ex-route-input .address-field,
.google-address-input {
  min-inline-size: 0;
}
.google-address-input gmp-basic-place-autocomplete {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

@media (pointer: coarse) {
  .address-results {
    position: static;
    width: 100%;
    min-width: 0;
    max-height: 220px;
    overscroll-behavior: contain;
  }
}


#booking-map-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  border: 0;
  background: white;
  overflow: auto;
  overscroll-behavior: contain;
}
#booking-map-dialog #booking-map-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}
#booking-map-dialog .booking-map-stage {
  position: relative;
  min-height: 0;
}
.booking-map-surface { position: relative; }
#booking-map-dialog .booking-map-surface { height: 100%; }
.booking-map-controls {
  position: absolute;
  inset: auto 10px 10px auto;
  z-index: 1;
  display: grid;
  gap: 8px;
}
.booking-map-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #172554;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  box-shadow: 0 2px 10px #0f172a32;
}
.booking-map-control:hover { background: #f1f5f9; }
.booking-map-control:focus-visible { outline: 2px solid #172554; outline-offset: 2px; }
.booking-map-location span {
  inline-size: 23px;
  block-size: 23px;
  background: currentColor;
  clip-path: polygon(94% 6%, 63% 96%, 44% 56%, 4% 37%);
}
.booking-map-center span {
  position: relative;
  width: 23px;
  height: 23px;
  background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.booking-map-center span::before,
.booking-map-center span::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.booking-map-center span::before {
  inset: 3px;
  border: 2px solid currentColor;
  background: #fff;
}
.booking-map-center span::after { inset: 9px; background: currentColor; }
#booking-map-dialog #delivery-map-canvas {
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
}
#booking-map-slot #delivery-map-canvas {
  height: max(440px, calc(100vh - 130px));
  height: max(440px, calc(100svh - 130px));
  min-height: 0;
  max-height: none;
}
#booking-map-content .ex-map-tools {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto minmax(0, 1.2fr);
  gap: 6px;
  margin-bottom: 8px;
}
#booking-map-dialog .ex-map-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  padding: 6px;
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
}
#booking-map-content .ex-map-tools button,
#booking-map-actions summary {
  min-block-size: 44px;
  min-inline-size: 0;
  padding: 6px 8px;
  font-size: .8125rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#booking-map-content .map-point-active {
  background: #fff4e7;
  color: #7c2d12;
  outline: 1px solid #c2410c;
  outline-offset: -1px;
}
#booking-map-actions {
  position: relative;
}
#booking-map-actions summary {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  list-style: none;
  border: 1px solid #dbe0e7;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}
#booking-map-actions summary::-webkit-details-marker { display: none; }
#booking-map-actions summary::after { content: '▾'; }
#booking-map-actions[open] summary::after { content: '▴'; }
#booking-map-actions:not([open]) .booking-map-menu { display: none; }
.booking-map-menu {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  display: grid;
  gap: 4px;
  min-inline-size: 10rem;
  max-inline-size: min(14rem, 70vw);
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 4px 18px #0f172a26;
}
#booking-map-content .booking-map-menu button { text-align: start; }
#booking-map-content .ex-map-tools :is(button, summary):focus-visible {
  outline: 2px solid #172554;
  outline-offset: 1px;
}
#booking-map-dialog .booking-map-feedback {
  position: absolute;
  inset: 6px 6px auto 64px;
  z-index: 1;
  pointer-events: none;
}
#booking-map-dialog .booking-map-feedback p:not([hidden]):not(:empty) {
  width: fit-content;
  margin: 0 0 4px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: .8125rem;
  line-height: 1.35;
}
#booking-map-content .booking-map-data-sources { display: none; }
@media (max-width: 540px), (pointer: coarse) and (max-height: 520px) {
  #booking-map-content .booking-map-attribution {
    position: relative;
    padding-block: 2px;
  }
  #booking-map-content .booking-map-attribution .google-roadmap-credits { display: none; }
  #booking-map-content .booking-map-data-sources { display: block; }
  .booking-map-data-sources summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    color: #1e40af;
    font: 600 18px/1 system-ui, sans-serif;
    list-style: none;
    cursor: pointer;
  }
  .booking-map-data-sources summary::-webkit-details-marker { display: none; }
  .booking-map-data-sources summary:hover { background: #eff6ff; }
  .booking-map-data-sources summary:focus-visible { outline: 2px solid #1e40af; outline-offset: -2px; }
  .booking-map-data-sources:not([open]) .booking-map-source-panel { display: none; }
  .booking-map-source-panel {
    position: absolute;
    inset-block-end: calc(100% + 5px);
    inset-inline-start: 0;
    width: min(18rem, calc(100vw - 44px));
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 16px #0f172a26;
    font-size: .75rem;
  }
  .booking-map-source-panel p { margin: 4px 0 0; line-height: 1.4; }
}
@media (pointer: coarse) {
  #booking-map-content .leaflet-control-zoom a {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
}
.google-booking-address,
.google-booking-address__widget,
.google-booking-address__details,
.google-booking-address__results {
  display: block;
  min-width: 0;
  max-width: 100%;
}
.address-control [hidden] {
  display: none !important;
}
.google-booking-address:focus-within {
  position: relative;
  z-index: 3;
}
.google-booking-address__widget::part(prediction-list) {
  max-height: min(240px, 35vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.google-booking-address__status {
  color: #475569;
  font-size: 13px;
}
.google-booking-address__edit,
.google-booking-address__manual,
.google-booking-address__search-number {
  font-size: 12px;
  padding: 6px 10px;
  margin-top: 6px;
}
@media (max-width: 740px) {
  #booking-map-slot {
    position: static;
    align-self: stretch;
    isolation: isolate;
    background: #f8fafc;
  }
  #booking-map-slot #delivery-map-canvas {
    height: max(350px, 76vh);
    height: max(350px, 76svh);
  }
  #booking-map-slot #map-status {
    margin: 8px 0 0;
    line-height: 1.4;
  }
}
.ex-layout, .ex-order-panel, .address-field, .address-control { min-width: 0; }
body { overflow-x: clip; }
.booking-field-error { display: block; color: #991b1b; font-size: 13px; margin: 4px 0 8px; }
[aria-invalid="true"] { border-color: #b91c1c; outline: 2px solid #b91c1c; }
@media (pointer: coarse) {
  main input, main textarea, main select, dialog input, dialog textarea, dialog select { font-size: 16px; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 600px) {
  #booking-map-slot #delivery-map-canvas {
    height: max(300px, 82vh);
    height: max(300px, 82svh);
  }
}

#request-status {
  max-width: none;
  margin: 0;
}
.ex-layout:has(#request-status:not(.hidden)) {
  max-width: none;
  padding-inline: clamp(12px, 2vw, 32px);
}
.tracking-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.tracking-map-toolbar h2 {
  margin: 0;
}
.tracking-map-stage { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .5rem; }
.tracking-stop-timer:not([hidden]) {
  display: grid; place-content: center;
  gap: .25rem; padding: .5rem; text-align: center; color: #064e3b;
  background: #ecfdf3; border: 3px solid #059669; border-radius: .75rem;
  font-variant-numeric: tabular-nums;
}
.tracking-stop-timer strong { font-size: clamp(2rem, 7vw, 3.5rem); line-height: 1; }
.tracking-stop-timer.error { color: #fff; background: #be123c; border-color: #881337; }
#request-status.review-only > :not(#status-details),
body:has(#request-status:not(.hidden)) :is(#chat-open, #chat-panel) { display: none !important; }
#request-status.review-only form { display: grid; gap: 12px; }
.ex-header #customer-account-open { font-size: 13px; padding: 6px 10px; }
#pickup-tracking-map {
  height: max(280px, calc(100vh - 235px));
  height: max(280px, calc(100svh - 235px));
  border-radius: 12px;
}
#pickup-tracking-map .tracking-stop-marker {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 2px solid white;
  border-radius: 12px;
  background: #b91c1c;
  color: white;
  box-shadow: 0 1px 4px #0f172a66;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
#tracking-map-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #0f172a;
  background: #fff;
}
#tracking-map-dialog #pickup-tracking {
  display: grid;
  grid-template-rows: auto auto minmax(150px, 1fr) auto;
  overflow: auto;
  gap: 8px;
  height: 100%;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
}
#tracking-map-dialog #pickup-tracking-text,
#tracking-map-dialog #tracking-map-unavailable {
  margin: 0;
}
#tracking-map-dialog .tracking-map-stage { min-height: 0; grid-template-rows: auto minmax(100px, 1fr); }
#tracking-map-dialog #pickup-tracking-map {
  height: 100%;
  min-height: 0;
}

#customer-account-dialog {
  width: min(500px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  color: #0f172a;
  background: white;
}
#customer-account-dialog::backdrop {
  background: #0f172a80;
}
.customer-account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.customer-account-header h2 {
  margin: 0;
}
#customer-account-form {
  display: grid;
  gap: 12px;
}
#customer-account-form input {
  width: 100%;
}
.customer-account-terms {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 14px;
}
.customer-account-terms > a { font-weight: 700; text-underline-offset: .18em; }
.customer-account-terms > p { margin: 5px 0 6px; color: #475569; line-height: 1.45; }
.customer-account-terms .ex-consent { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; }
.customer-account-terms .ex-consent > span { margin: 0; }
#customer-account-form .customer-account-terms input[type="checkbox"] { inline-size: 18px; block-size: 18px; flex: 0 0 18px; margin: 0; }
.customer-account-password-field > label {
  margin-bottom: 7px;
}
.customer-account-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
#customer-account-password {
  min-width: 0;
  font-size: 16px;
}
#customer-account-password-toggle {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
}
.customer-account-password-field > small {
  display: block;
  margin-top: 6px;
}
@media (max-width: 480px) {
  .customer-account-password-row {
    grid-template-columns: minmax(0, 1fr);
  }
  #customer-account-password-toggle {
    justify-self: start;
  }
}
#customer-account-dialog [hidden] {
  display: none;
}
.customer-account-orders {
  display: grid;
  gap: 8px;
  padding-inline-start: 20px;
}

.sandbox-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-width: 0;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.sandbox-payment-methods legend {
  padding-inline: 5px;
  font-size: 13px;
  font-weight: 650;
}
.sandbox-payment-methods label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.sandbox-payment-methods input {
  width: auto;
  accent-color: #f97316;
}
.sandbox-payment-methods label > span {
  margin: 0;
}
.sandbox-payment-dialog {
  width: min(720px, calc(100% - 24px));
  max-width: 720px;
  padding: 12px;
}
.sandbox-payment-dialog iframe {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
}

#quote-form .ex-route-input {
  --booking-point-width: 28px;
  --booking-route-gap: 11px;
  grid-template-columns: var(--booking-point-width) minmax(0, 1fr);
  align-items: start;
  gap: var(--booking-route-gap);
  margin-block-end: 10px;
}
#quote-form .ex-route-input .ex-point {
  margin-top: 29px;
}
#quote-form .booking-route-origin {
  margin-block-end: 0;
}
.booking-origin-actions,
#quote-form .booking-route-destination label[for="delivery_address"] {
  padding-inline-end: 52px;
}
#quote-form .booking-route-destination label[for="delivery_address"] {
  min-block-size: 24px;
}
.booking-swap-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* The tap target extends into the reserved right edge of both address blocks. */
  block-size: 12px;
}
#quote-form .booking-swap-addresses {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
}
#quote-form .booking-swap-addresses span {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}
#quote-form .booking-swap-addresses svg { display: block; }
#quote-form .booking-swap-addresses:hover span { background: #eef2f6; }
#quote-form > .ex-options { padding: 0; }
#quote-form > .ex-options[open] { padding-block-end: .75rem; }
#quote-form > .ex-options > summary {
  min-block-size: 44px;
  padding-block: .75rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.4;
}
#quote-form :is(input:not([type="checkbox"]), textarea, select) { min-block-size: 46px; }
#guest-note { resize: vertical; min-block-size: 72px; line-height: 1.45; }
#quote-result, .booking-cargo-step {
  margin-block: .875rem;
  padding: clamp(.875rem, 3.6vw, 1.25rem);
  background: #fff;
  border-color: #dce3eb;
}
#booking-quote-title, #booking-cargo-title {
  margin: 0 0 .375rem;
  color: #0f172a;
  font-size: 1.0625rem;
  line-height: 1.3;
}
#booking-quote-title:focus { outline-offset: 4px; }
#quote-result p {
  color: #475569;
  font-size: .8125rem;
  line-height: 1.45;
}
.booking-quote-breakdown { margin-block: .75rem; }
.booking-quote-breakdown .ex-line {
  align-items: baseline;
  gap: .75rem;
  margin-block: .375rem;
  font-size: .875rem;
}
.booking-quote-breakdown strong, .booking-quote-basis strong { font-variant-numeric: tabular-nums; }
.booking-quote-total {
  color: #0f172a;
  font-weight: 700;
}
.booking-quote-total .ex-total {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  line-height: 1.2;
}
.booking-quote-basis, .booking-quote-schedule {
  border-block-start: 1px solid #e2e8f0;
  margin-block-start: .625rem;
}
.booking-quote-basis summary {
  min-block-size: 44px;
  padding-block: .75rem;
  color: #334155;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.booking-quote-basis p + p { margin-block-start: .375rem; }
.booking-quote-schedule .ex-line strong {
  text-align: end;
  white-space: normal;
}
.booking-quote-schedule p + p { margin-block-start: .375rem; }
.booking-cargo-step h2 { margin-block-end: .75rem; }
.booking-cargo-step textarea, .booking-cargo-step :is(input, select) {
  min-block-size: 46px;
  scroll-margin-block: 1rem 3rem;
}
#booking-cargo-measure {
  min-inline-size: 0;
  margin: .75rem 0 0;
  padding: 0;
  border: 0;
}
.booking-cargo-quantity-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .625rem;
  margin-block-start: .75rem;
}
.booking-cargo-quantity-row :is(input, select) { padding-inline: .625rem; }
#quote-form .address-control > input[readonly] {
  border-color: #b9c9c2;
  background: #f6faf8;
  color: #18392d;
}
#quote-form .address-map-choice,
#quote-form .google-booking-address__edit,
#quote-form .google-booking-address__manual {
  width: auto;
  min-height: 44px;
  margin-inline-end: 8px;
  padding: 5px 0;
  background: transparent;
  color: #87401c;
  font-weight: 650;
}
#quote-form .address-map-choice:hover,
#quote-form .google-booking-address__edit:hover,
#quote-form .google-booking-address__manual:hover {
  text-decoration: underline;
}
#quote-form :is(#pickup-map-choice, #delivery-map-choice) {
  display: block;
  max-inline-size: 100%;
  margin-block-start: 2px;
  margin-inline-end: 0;
  text-align: start;
  overflow-wrap: anywhere;
}
.google-booking-address__house {
  margin-top: 10px;
}
.google-booking-address__status {
  margin: 6px 0 0;
}

button.order-chat-button { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
button.order-chat-button:hover { background: #1e40af; }
.order-chat-dialog { box-sizing: border-box; width: min(36rem, 94vw); max-height: 85vh; overflow: auto; }

#customer-driver-link[hidden] { display: none; }
#booking-entry-dialog {
  position: fixed;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  block-size: 100dvh;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  overflow: auto;
  color: #0f172a;
  background: radial-gradient(ellipse at 85% 15%, #fae8d8, transparent 52%), #f4f6f9;
}
#booking-entry-dialog[open] { display: grid; place-items: center; place-items: safe center; }
.booking-entry-content {
  inline-size: min(100%, 25rem);
  padding: clamp(20px, 6vw, 36px);
  border: 1px solid #e3e7ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 64px #17255417;
}
.customer-account-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-inline-start: auto;
}
.booking-entry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
  margin-block-end: 1rem;
}
.booking-entry-brand { display: block; width: 100%; max-width: 108px; height: auto; }
select[data-language-picker] { width: auto; max-width: 9rem; min-block-size: 44px; padding: .5rem; }
#booking-entry-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 5.6vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.booking-entry-actions { display: grid; gap: .5rem; }
#booking-entry-dialog .booking-entry-action:not([hidden]) {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-block-size: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: start;
  text-decoration: none;
}
#booking-entry-dialog .booking-entry-action:hover { background: #f8fafc; }
#booking-entry-dialog #booking-entry-google { grid-template-columns: 18px minmax(0, 1fr) auto; border-color: #747775; color: #1f1f1f; font-weight: 500; }
#booking-entry-dialog #booking-entry-google[aria-disabled="true"] { border-color: #e1e6ee; background: #f8fafc; cursor: default; }
#booking-entry-google-soon { color: #576478; font-size: .71875rem; }
#booking-entry-dialog #booking-entry-guest { background: #9a431b; color: #fff; border-color: #9a431b; }
#booking-entry-dialog #booking-entry-guest:hover { background: #803512; }
.customer-account-remember:not([hidden]) { display: flex; align-items: center; gap: 9px; min-block-size: 40px; }
.customer-account-remember input { width: 17px; height: 17px; margin: 0; accent-color: #9a431b; }
.customer-account-remember span { margin: 0; }
.booking-entry-icon { position: relative; width: 18px; height: 18px; }
.booking-entry-envelope::before {
  content: '';
  position: absolute;
  inset: 3px 1px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.booking-entry-envelope::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  inline-size: 8px;
  block-size: 8px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  rotate: 45deg;
}
.booking-entry-arrow::before {
  content: '';
  position: absolute;
  inset: 8px 2px auto;
  height: 2px;
  background: currentColor;
}
.booking-entry-arrow::after {
  content: '';
  position: absolute;
  inset: 5px 2px auto auto;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-start: 2px solid currentColor;
  rotate: 45deg;
}
.booking-entry-actions :focus-visible { outline: 3px solid #172554; outline-offset: 2px; }
#booking-entry-status { margin: 0 0 1rem; color: #991b1b; }
#customer-account-dialog.customer-console-page {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  box-sizing: border-box; margin: 0; border: 0; border-radius: 0; overflow: auto;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, calc((100% - 52rem) / 2));
}
.customer-console-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.customer-console-nav [aria-pressed="true"] { color: #fff; background: #1e40af; border-color: #1e40af; }
.customer-console-heading { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.customer-account-orders > li { padding: .85rem; border: 1px solid #cbd5e1; border-radius: .75rem; margin-block: .5rem; }
.customer-account-orders > li > p { margin: .4rem 0; overflow-wrap: anywhere; }

.customer-order-lookup { margin-top: 1.25rem; }
.customer-order-lookup form { display: grid; gap: .65rem; margin-top: .75rem; }

.manual-address-suggestions { display: grid; gap: .25rem; list-style: none; padding: .25rem 0; margin: 0; }
.manual-address-suggestions[hidden] { display: none; }
@media (max-width: 740px), (pointer: coarse) {
  .ex-header {
    min-height: 66px;
    height: auto;
    padding-block: 8px;
    flex-wrap: wrap;
  }
  .ex-header nav { flex-wrap: wrap; }
  .ex-header .ex-chat-open {
    position: static;
    z-index: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    box-shadow: none;
  }
}
.manual-address-suggestions button { width: 100%; text-align: start; overflow-wrap: anywhere; }

.invoice-link-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}
.invoice-link-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.invoice-preview {
  box-sizing: border-box;
  width: min(54rem, calc(100% - 1rem));
  max-width: none;
  max-height: 86vh;
  max-height: 86dvh;
  overflow: auto;
}

.invoice-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
  padding-block: .25rem;
}

.invoice-preview-actions [hidden] { display: none; }
.invoice-pdf-pages canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: .75rem;
}
.invoice-preview iframe { display: block; width: 100%; height: 60vh; height: 60dvh; border: 0; }


#booking-account-step:not([hidden]) {
  margin-block: .75rem;
  padding: .75rem;
  border: 1px solid #93c5fd;
  border-radius: .625rem;
  background: #eff6ff;
}
#booking-account-step p { margin: 0 0 .5rem; }
#booking-account-continue { min-height: 44px; }
#customer-forgot-password { margin-top: .75rem; min-height: 44px; }

/* Booking actions retain readable text across pointer and keyboard states. */
#quote-form button[type="submit"],
#customer-account-open,
#booking-account-continue,
#customer-account-form button,
#customer-reset-submit,
#customer-forgot-password,
#accept-final-offer,
#guest-submit {
  background: #a83909;
  color: #fff;
}
:is(#quote-form button[type="submit"], #customer-account-open, #booking-account-continue,
    #customer-account-form button, #customer-reset-submit, #customer-forgot-password,
    #accept-final-offer, #guest-submit):hover {
  background: #862d07;
  color: #fff;
}
:is(#quote-form button[type="submit"], #customer-account-open, #booking-account-continue,
    #customer-account-form button, #customer-reset-submit, #customer-forgot-password,
    #accept-final-offer, #guest-submit):focus-visible {
  outline: 3px solid #172554;
  outline-offset: 3px;
}
.manual-address-suggestions [aria-selected="true"] button {
  background: #172554;
  color: #fff;
}

.booking-address-error {
  margin: .4rem 0;
  color: #991b1b;
}
.ex-order-panel .ex-fine {
  color: #475569;
  font-size: .8125rem;
}
#booking > .ex-actions:has(> [data-resume-customer-order][hidden]) {
  display: none;
}
.booking-service {
  margin-block: .625rem .875rem;
  color: #475569;
  font-size: .8125rem;
  line-height: 1.4;
}
.booking-service h1 {
  margin: 0 0 .25rem;
  color: #334155;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: normal;
}
.booking-service p {
  margin: 0;
}
.booking-service p + p { margin-block-start: .5rem; }
.booking-help-question {
  display: block;
  color: #334155;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.4;
}
#booking-loader-limit { overflow-wrap: anywhere; }
.booking-pickup-warning {
  margin: .375rem 0 .25rem;
  margin-inline-start: calc(0px - var(--booking-point-width) - var(--booking-route-gap));
  padding: .5rem .625rem;
  border-inline-start: 2px solid #d6a65d;
  border-radius: 6px;
  background: #fff7ea;
  color: #59411d;
  font-size: .8125rem;
  line-height: 1.4;
}
.customer-account-footer {
  display: flex;
  justify-content: flex-end;
  margin-block-start: 1rem;
  padding-block-start: .5rem;
  border-block-start: 1px solid #e2e8f0;
}
#customer-account-signout {
  width: auto;
  min-block-size: 44px;
}
.ex-order-panel label {
  font-size: .875rem;
}
#quote-form :is(input, select, button), #guest-order-form :is(input, select, textarea, button) {
  scroll-margin-block: 1rem 3rem;
}
.address-control [aria-invalid="true"] {
  outline: 2px solid #991b1b;
  outline-offset: 2px;
}

.ex-actions {
  margin-block-start: 1rem;
  gap: .75rem;
}
.ex-actions button {
  min-block-size: 44px;
  max-inline-size: 100%;
  background: #a83909;
  color: #fff;
}
.ex-actions button:hover {
  background: #862d07;
  color: #fff;
}
.ex-actions :is(button, a):focus-visible {
  outline: 3px solid #172554;
  outline-offset: 3px;
}

#status-details {
  scroll-margin-block-start: 1rem;
}

@media (max-height: 520px) {
  #customer-account-dialog:not(.customer-console-page) {
    box-sizing: border-box;
    overflow: auto;
    padding: .75rem;
  }
  #customer-account-dialog:not(.customer-console-page) .customer-account-header {
    margin-bottom: .4rem;
  }
  #customer-account-dialog:not(.customer-console-page) #customer-account-status {
    margin-block: .4rem;
    padding-block: .4rem;
  }
  #customer-account-dialog:not(.customer-console-page) #customer-account-form {
    gap: .4rem;
  }
  #customer-account-dialog:not(.customer-console-page) .customer-account-password-field > label {
    margin-bottom: .25rem;
  }
  #customer-account-dialog:not(.customer-console-page) #customer-account-form > .ex-actions {
    margin-block-start: .2rem;
  }
  #customer-account-dialog:not(.customer-console-page) #customer-account-form > .ex-actions button {
    min-height: 44px;
  }
}

#request-status .ex-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid #475569;
  border-radius: .625rem;
  font-size: inherit;
}

.customer-account-header {
  flex-wrap: wrap;
}
.customer-account-header .customer-order-lookup {
  min-width: 0;
  margin: 0;
}
.customer-account-header .customer-order-lookup[open] {
  flex-basis: 100%;
}
.customer-account-header .customer-order-lookup summary {
  display: list-item;
  padding: .45rem .25rem;
  color: #1e40af;
  cursor: pointer;
  text-decoration: underline;
}
.customer-account-header .customer-order-lookup summary:focus-visible {
  outline: 3px solid #172554;
  outline-offset: 2px;
}
