:root { color-scheme: light; }
body { margin: 0; background: #f4f7f5; color: #102d32; }
.prepay-page { max-width: 1640px; margin: 0 auto; padding: 22px 24px 36px; font: 16px/1.45 Inter, Arial, sans-serif; }
.prepay-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.prepay-heading h1 { margin: 0; font-size: 32px; line-height: 1.16; }
.prepay-heading p:last-child { margin: 7px 0 0; color: #496268; }
.prepay-heading a, .prepay-embed-head a { color: #006c71; font-weight: 700; white-space: nowrap; }
.prepay-kicker { margin: 0 0 5px; color: #08777a; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.prepay-workspace { display: grid; grid-template-columns: minmax(340px, 410px) minmax(0, 1fr); grid-template-areas: "tools map"; min-height: 670px; border: 1px solid #cadad8; background: white; }
.prepay-tools { grid-area: tools; min-width: 0; border-right: 1px solid #cadad8; display: flex; flex-direction: column; }
.prepay-map-wrap { grid-area: map; min-width: 0; display: flex; flex-direction: column; }
.prepay-form { padding: 18px; display: grid; gap: 10px; border-bottom: 1px solid #dfebe9; }
.prepay-form h2 { margin: 0 0 2px; font-size: 19px; }
.prepay-field { display: grid; gap: 5px; min-width: 0; }
.prepay-field label { font-size: 14px; font-weight: 700; }
.prepay-field input, .prepay-field select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 43px; padding: 8px 10px; border: 1px solid #a7bfbc; border-radius: 4px; background: white; color: #102d32; font: inherit; }
.prepay-field input::placeholder { color: #627779; }
.prepay-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.prepay-actions, .prepay-near-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prepay-actions button, .prepay-near-actions button, .prepay-map-toolbar button, .prepay-card button { min-height: 42px; padding: 8px 12px; border: 1px solid #0a7075; border-radius: 4px; background: #0a7075; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.prepay-actions button.secondary, .prepay-near-actions button.secondary, .prepay-map-toolbar button { background: white; color: #0a676c; }
.prepay-actions button:hover, .prepay-near-actions button:hover, .prepay-map-toolbar button:hover, .prepay-card button:hover { filter: brightness(.92); }
.prepay-actions button:focus-visible, .prepay-near-actions button:focus-visible, .prepay-map-toolbar button:focus-visible, .prepay-card button:focus-visible, .prepay-card a:focus-visible { outline: 3px solid #e5aa42; outline-offset: 2px; }
.prepay-status { min-height: 48px; margin: 0; padding: 12px 18px; color: #425f63; border-bottom: 1px solid #dfebe9; font-size: 14px; }
.prepay-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 18px; border-bottom: 1px solid #dfebe9; font-size: 13px; }
.prepay-pager[hidden] { display: none; }
.prepay-pager button { padding: 5px 8px; border: 1px solid #a7bfbc; border-radius: 4px; background: white; color: #0a676c; font: inherit; cursor: pointer; }
.prepay-pager button:disabled { opacity: .5; cursor: default; }
.prepay-results { max-height: 600px; overflow: auto; }
.prepay-card { padding: 15px 18px; border-bottom: 1px solid #dfe9e7; }
.prepay-card.is-selected { background: #eff8f5; box-shadow: inset 4px 0 #0b7773; }
.prepay-card h3 { margin: 0 0 5px; font-size: 18px; line-height: 1.27; }
.prepay-card p { margin: 4px 0; font-size: 14px; color: #39565b; }
.prepay-card .prepay-card-type { color: #08716d; font-weight: 800; font-size: 12px; text-transform: uppercase; }
.prepay-card .prepay-card-distance { color: #0c4f6c; font-weight: 700; }
.prepay-card dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 3px 8px; margin: 8px 0; font-size: 13px; }
.prepay-card dt { color: #587074; }
.prepay-card dd { margin: 0; overflow-wrap: anywhere; }
.prepay-card a { color: #006d72; }
.prepay-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 9px; }
.prepay-card button { min-height: 36px; padding: 5px 9px; background: white; color: #0a676c; }
.prepay-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.prepay-badge { padding: 3px 6px; background: #e9f6ee; border: 1px solid #bfddca; border-radius: 3px; color: #245d3b; font-size: 12px; line-height: 1.35; }
.prepay-badge.chain { background: #fff4df; border-color: #dfc58c; color: #684b16; }
.prepay-caution { padding: 7px 9px; border-left: 3px solid #ba8131; background: #fff8ea; }
.prepay-map-toolbar { min-height: 54px; padding: 6px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #cadad8; }
.prepay-map-toolbar span { font-size: 14px; color: #3b5960; }
.prepay-map { flex: 1; min-height: 590px; background: #dbe8e5; }
.prepay-map-foot { margin: 0; padding: 10px 13px; border-top: 1px solid #cadad8; color: #425f63; background: #f7faf9; font-size: 12px; line-height: 1.45; }
.prepay-map-foot a { color: #006d72; }
.prepay-noscript { padding: 16px; }
.leaflet-popup-content { font: 14px/1.4 Inter, Arial, sans-serif; }
.leaflet-popup-content strong { display: block; font-size: 16px; }
.leaflet-popup-content p { margin: 5px 0; }
.prepay-embed { background: white; }
.prepay-embed .prepay-page { max-width: none; padding: 0; }
.prepay-embed-head { min-height: 46px; padding: 7px 14px; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #f5faf8; border-bottom: 1px solid #cadad8; font: 14px Inter, Arial, sans-serif; }
.prepay-embed-head strong { color: #0b6f6d; }
.prepay-embed .prepay-workspace { border: 0; min-height: 610px; }
.prepay-embed .prepay-map { min-height: 520px; }
@media (max-width: 900px) {
  .prepay-page { padding: 16px 12px 24px; }
  .prepay-heading { display: block; }
  .prepay-heading a { display: inline-block; margin-top: 8px; }
  .prepay-workspace { grid-template-columns: 1fr; grid-template-areas: "tools" "map"; }
  .prepay-tools { display: contents; }
  .prepay-form { order: 1; }
  .prepay-map-wrap { order: 2; }
  .prepay-status { order: 3; }
  .prepay-pager { order: 4; }
  .prepay-results { order: 5; max-height: none; }
  .prepay-map { height: 42vh; min-height: 320px; flex: none; }
  .prepay-embed .prepay-map { height: 360px; min-height: 300px; }
}
@media (max-width: 480px) {
  .prepay-heading h1 { font-size: 27px; }
  .prepay-form-row { grid-template-columns: 1fr; }
  .prepay-map-toolbar { align-items: start; }
  .prepay-map-toolbar button { flex: none; }
}
