/* /book on a phone: see nl-phone.js. Everything is scoped to body.nl-phone, which only a phone gets. */
.nl-nudge { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px); padding: 5px 18px 5px 8px; background: #fff; border: 2px solid var(--orange); border-radius: 999px; box-shadow: 0 8px 24px rgba(17, 17, 17, .2); color: var(--ink); cursor: pointer; text-align: left; animation: nl-nudge-in .3s ease-out; }
.nl-nudge[hidden] { display: none; }
.nl-nudge-road { position: relative; flex: none; width: 38px; height: 52px; overflow: hidden; border-radius: 19px; background: radial-gradient(circle, var(--orange) 1.7px, transparent 2.2px) center top / 6px 10px repeat-y #FFF3EA; }
.nl-nudge-road img { position: absolute; left: 50%; top: 0; width: 46px; height: 23px; max-width: none; margin-left: -23px; animation: nl-drive 1.9s linear infinite; }
.nl-nudge-t { min-width: 0; display: grid; line-height: 1.2; }
.nl-nudge-t b { font-size: 16px; font-weight: 900; }
.nl-nudge-t small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
@keyframes nl-drive { from { transform: translateY(-36px) rotate(90deg); } to { transform: translateY(62px) rotate(90deg); } }
@keyframes nl-nudge-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .nl-nudge, .nl-nudge-road img { animation: none; } .nl-nudge-road img { transform: translateY(14px) rotate(90deg); } }

/* One screen at a time. The map, the running summary and everything else below the form wait until the end. */
body.nl-phone .nl-off { display: none !important; }
body.nl-phone .mapcol, body.nl-phone .nl-sum, body.nl-phone .progrow { display: none !important; }
body.nl-phone .pane.nl-slide { animation: nl-slide .22s ease-out; }
@keyframes nl-slide { from { opacity: .3; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.nl-phone .pane.nl-slide { animation: none; } }
body.nl-phone .nl-pg { height: 5px; background: #EFEDE8; border-radius: 3px; overflow: hidden; margin: 0 0 12px; }
body.nl-phone .nl-pg span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 3px; transition: width .25s; }
body.nl-phone:not(.nl-hint-on) #bkHint, body.nl-phone #carryNote, body.nl-phone #distLine, body.nl-phone #msLead, body.nl-phone .pane[data-key="where"] > h3 { display: none !important; }
body.nl-phone:not(.nl-b-book) .bookrail { display: none !important; }
body.nl-phone #calculator { min-height: calc(100svh - 215px); }
body.nl-phone .addrcol { padding: 12px 14px; margin: 0; }
body.nl-phone .addrcol h4 { font-size: 19px; margin: 0 0 6px; }
body.nl-phone .field { margin-bottom: 8px; }
body.nl-phone .pcmsg { font-size: 13px; line-height: 1.25; margin: 4px 0; min-height: 0; }
body.nl-phone .addrsum { padding: 6px 10px; margin: 0 0 6px; font-size: 14px; line-height: 1.25; }
body.nl-phone .pcrow { margin-bottom: 0; }
body.nl-phone .field label { margin-bottom: 3px; }
body.nl-phone .field input, body.nl-phone .field select { min-height: 48px; }
body.nl-phone .nl-q { margin: 10px 0 0; }
body.nl-phone .nl-qh { font-size: 13.5px; line-height: 1.3; margin-bottom: 6px; }
body.nl-phone .nl-chip { min-height: 48px; padding: 7px 11px; }
/* sizes: one row each, the two routes that end in a call side by side */
body.nl-phone #sizeOpts { gap: 5px; }
body.nl-phone #sizeOpts .ms-card { padding: 6px 12px 6px 8px; min-height: 0; }
body.nl-phone #sizeOpts .ms-card { display: flex !important; align-items: center; gap: 10px; }
body.nl-phone #sizeOpts .ms-card .ms-tile { width: 46px !important; height: 46px !important; min-height: 0 !important; flex: none; margin: 0 !important; }
body.nl-phone #sizeOpts .ms-card .ms-tile img { width: 100%; height: 100%; object-fit: contain; }
body.nl-phone #sizeOpts .ms-g { display: none; }
body.nl-phone #msChangeWay { display: none !important; }   /* Back does the same */
body.nl-phone .nl-fix { margin-top: 8px; font-size: 14px; }
body.nl-phone .nl-fix summary { font-weight: 600; font-size: 14px; letter-spacing: -.01em; color: var(--ink); cursor: pointer; padding: 2px 0; }
body.nl-phone .nl-fix p { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
/* how: three ways, smaller pictures */
body.nl-phone #howOpts { gap: 8px; }
body.nl-phone #howOpts .ms-card { padding: 8px 12px 8px 8px; min-height: 0; }
body.nl-phone #howOpts .ms-tile { width: 76px; height: 76px; flex: none; }
/* keys, loads and extras */
body.nl-phone #keysBox > h3:first-child { margin-top: 0 !important; }
body.nl-phone #keysOpts { gap: 7px; }
body.nl-phone #keysOpts .opt { padding: 8px 12px; min-height: 0; }
body.nl-phone #msFollow > h3 { margin: 0 0 8px !important; }
body.nl-phone #msFollow .togglecard, body.nl-phone #msFollow > .qty { padding: 9px 12px; margin: 0 0 7px; min-height: 0; }
body.nl-phone #msFollow .tl b, body.nl-phone #msFollow .ql b { font-size: 15px; line-height: 1.25; }
body.nl-phone #msFollow .tl small, body.nl-phone #msFollow .ql small { font-size: 13px; line-height: 1.3; }
body.nl-phone #msFollow > .qty { display: flex; align-items: center; gap: 10px; }
body.nl-phone #msFollow > .qty .ql { flex: 1 1 auto; min-width: 0; }
body.nl-phone #msFollow > .qty .ql b { display: block; }
body.nl-phone #msFollow > p { margin: -2px 0 7px; }
body.nl-phone #msFollow > .stepnote { padding: 9px 12px; font-size: 13.5px; line-height: 1.35; margin: 0; }
/* the calendar */
body.nl-phone .pane[data-key="date"] > h3 { margin-bottom: 6px; }
body.nl-phone .cal { padding: 8px 6px 6px !important; }
body.nl-phone .calhead { margin-bottom: 0; }
body.nl-phone .calgrid { gap: 3px !important; }
body.nl-phone .calday { height: 39px !important; aspect-ratio: auto !important; min-height: 0 !important; }
body.nl-phone .callegend { margin-top: 4px; }
/* who are we moving */
body.nl-phone .pane[data-key="you"] .panelead { font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
body.nl-phone .pane[data-key="you"] .row2 { gap: 0; }
body.nl-phone .pane[data-key="you"] .consent { padding: 10px 12px; font-size: 14px; line-height: 1.35; margin: 0 0 8px; }
/* man and van */
body.nl-phone #mvMen .opt, body.nl-phone #mvHours .opt { padding: 7px 8px; min-height: 48px; }
body.nl-phone #calculator #mvHours { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body.nl-phone #calculator #mvHours .opt[data-v="2"] { grid-column: auto; }
body.nl-phone #mvSub .ms-plain { font-size: 13.5px; line-height: 1.35; margin: 8px 0 0; }
/* the office and 5-bed cards and the note sit under the sizes, so there's no screen just for them (Ali, 5 Nov) */
body.nl-phone.nl-way-home #calculator .ms-cards.ms-routes { display: grid !important; grid-template-columns: 1fr 1fr; margin-top: 6px; gap: 6px; align-items: stretch; }
body.nl-phone.nl-way-home #calculator .ms-routes .ms-card { padding: 6px 9px; min-height: 0; align-items: flex-start; }
body.nl-phone.nl-way-home #calculator .ms-routes .ms-tile { display: none !important; }
body.nl-phone.nl-way-home #calculator .ms-routes .ms-t { font-size: 14.5px; line-height: 1.2; }
body.nl-phone.nl-way-home #calculator .ms-routes .ms-p { font-size: 13.5px; line-height: 1.2; }
body.nl-phone.nl-way-home #calculator .ms-routes .ms-g { font-size: 12px; line-height: 1.25; margin-top: 1px; }
body.nl-phone #calculator #sizeOpts .ms-card { padding: 4px 12px 4px 8px; min-height: 0; }
body.nl-phone .nl-fix { margin-top: 6px; }
/* the three ways of pricing fit one screen */
body.nl-phone #calculator #msHow .ms-lead { display: none; }
body.nl-phone #calculator #howOpts { gap: 8px; }
body.nl-phone #calculator #howOpts .ms-card { padding: 7px 12px 7px 8px; min-height: 0; }
body.nl-phone #calculator #howOpts .ms-tile { width: 76px !important; height: 76px !important; }
/* by item: the two ways stacked, the student example under its card, and once there's a list the van card takes the screen */
body.nl-phone:not(.nl-way-home) #calculator .ms-cards.ms-routes { display: flex !important; flex-direction: column; gap: 8px; margin-top: 0; }
body.nl-phone #calculator #msCardItems, body.nl-phone #calculator #msCardSmall { padding: 8px 12px 8px 8px; min-height: 0; }
body.nl-phone #calculator #msCardItems .ms-tile, body.nl-phone #calculator #msCardSmall .ms-tile { display: grid !important; width: 64px !important; height: 64px !important; flex: none; }
body.nl-phone #calculator #msStudent { margin: 0; padding: 0 4px; font-size: 13.5px; line-height: 1.35; }
body.nl-phone.nl-has-van #calculator .ms-cards.ms-routes { display: none !important; }
body.nl-phone #calculator #msVan { padding: 10px 12px; margin: 0; }
body.nl-phone #calculator #msVan .ms-van { max-width: 230px; margin-bottom: 6px; }
body.nl-phone #calculator #msVan .ms-vst { font-size: 14px; line-height: 1.35; margin: 4px 0; }
body.nl-phone #calculator #msVan .ms-tosmall { padding: 4px 0; min-height: 0; font-size: 14px; }
body.nl-phone #calculator #msVan .ms-edit { margin-top: 4px; }
body.nl-phone.nl-has-van #calculator #msHead { display: none !important; }
body.nl-phone .nl-qh[hidden] { display: none !important; }
body.nl-phone #calculator #msVan .ms-van { max-width: 200px; }
/* one item or a small load: the question and its options take the screen */
body.nl-phone.nl-small-on #calculator #msHead, body.nl-phone.nl-small-on #calculator #msCardItems, body.nl-phone.nl-small-on #calculator #msStudent, body.nl-phone.nl-small-on #calculator #msCardSmall { display: none !important; }
body.nl-phone #calculator #smSub { margin: 0; padding: 0; border: 0; }
body.nl-phone #calculator #smSub h4 { margin: 0 0 8px; font-size: 22px; }
body.nl-phone #calculator #smWhat { gap: 6px; }
body.nl-phone #calculator #smWhat .opt { min-height: 50px; padding: 6px 12px; }
body.nl-phone #calculator #smQtyWrap, body.nl-phone #calculator #smSizeWrap { margin-top: 8px; }
body.nl-phone #calculator #smWhat { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
body.nl-phone #calculator #smWhat .opt { align-items: flex-start; }
body.nl-phone #calculator #smWhat .ms-tile { display: none; }

