* { box-sizing: border-box }
body { margin: 0; color: #17253b; background: #f3f6fc; font: 16px system-ui, sans-serif }
header { background: #112c54; color: #fff; padding: 18px max(5vw, 20px); border-bottom: 4px solid #ea580c; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px }
header a { color: inherit; text-decoration: none; font-weight: 750 }
header span { color: #dce8fa; font-size: .85rem }
main { max-width: 1100px; margin: auto; padding: clamp(26px, 6vw, 70px) 20px }
h1 { margin: 0; font: 600 clamp(2.4rem, 6vw, 4rem)/1.08 Georgia, serif; letter-spacing: -.045em }
h2 { margin: 0; font-size: 1.25rem }
.intro, section p, form p { color: #475a71; line-height: 1.5 }
.layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 20px; margin-top: 32px }
section, #route { background: #fff; padding: clamp(18px, 4vw, 28px); border: 1px solid #d7e0ee; border-radius: 18px }
#editor > summary { margin-bottom: 12px; font-weight: 650 }
#messages { display: flex; flex-direction: column; min-height: 76px; max-height: 320px; overflow: auto; margin: 14px 0 }
#delivery-work-status { margin: 8px 0 }
#paste-whatsapp { margin: 12px 0 }
#dropoff-input-switch { color: #174879; font-weight: 650 }
#paste-whatsapp-form label { margin: 12px 0 4px }
#pasted-drop-location { margin: 0 0 10px }
#pasted-drop-status:empty { display: none }
#messages p { width: fit-content; max-width: 90%; margin: 4px 0; padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere }
#messages .assistant { background: #edf2fa }
#messages .customer { align-self: end; background: #174879; color: #fff }
.compose-row { display: flex; align-items: center; gap: 8px; margin-top: 5px }
.compose-row input { flex: 1; min-width: 0 }
.compose-row button { flex-shrink: 0 }
#speech-status { margin: 4px 0 8px; font-size: .82rem }
.address { grid-column: 1 / -1 }
fieldset { border: 1px solid #d5e0d5; border-radius: 12px; margin: 0 0 16px; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px }
legend, label { font-weight: 600 }
label { display: grid; gap: 5px; font-size: .86rem }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #8fa2ba; padding: 9px; border-radius: 8px; font: inherit }
textarea { resize: vertical }
button, #actions a { display: inline-block; margin: 3px 2px 3px 0; cursor: pointer; border: 1px solid #174879; border-radius: 8px; padding: 10px 13px; background: #174879; color: #fff; font: 600 .9rem system-ui }
button.secondary { background: #fff; color: #174879 }
#actions a.secondary-action { border-color: transparent; background: transparent; color: #174879 }
:focus-visible { outline: 3px solid #c24739; outline-offset: 3px }
button:disabled { opacity: .6; cursor: wait }
dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 }
dd { margin: 0; font-variant-numeric: tabular-nums }
.total { border-top: 1px solid #d5e0d5; font-size: 1.2rem; font-weight: 700 }
details { margin-top: 20px }
summary { cursor: pointer }
details label { margin-top: 10px }
details input { margin: 5px 0 }
@media(max-width: 720px) { .layout { grid-template-columns: 1fr } }
@media(max-width: 420px) { fieldset { grid-template-columns: repeat(2, minmax(0,1fr)) } }
#delivery-account { max-width: 690px; margin: 0 auto 24px }
#delivery-account h1 { font-size: clamp(1.35rem, 4vw, 2rem); margin-bottom: 14px }
#delivery-account form { margin-top: 14px }
#delivery-account input { margin-bottom: 7px }
.profile-fields { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 12px 0 }
#pickup-map { width: 100%; height: min(55vh, 350px); border-radius: 12px; margin: 12px 0 }
#pickup-map-search { margin-top: 12px }
#pickup-search-results { padding: 0; list-style: none }
#pickup-search-results button { width: 100%; text-align: left; white-space: normal }
#pickup-search-status { margin: 4px 0; color: #52667b }
[hidden] { display: none !important }
.speech-language { width: auto; max-width: 100%; margin: 4px 0 }
