/* Nuantu's shared H5 control standard, adapted from Boxfu with Nuantu colors. */
:root{--nt-control-height:46px;--nt-control-radius:10px;--nt-control-padding:12px;--nt-control-font:14px;--nt-control-bg:#f8faf9;--nt-control-border:#d9e2e3;--nt-control-ink:#3c5564;--nt-control-muted:#617571;--nt-control-accent:#5d7c8e;--nt-control-selected:#edf3f5;--nt-control-error:#a85e52;--nt-control-focus:#7692a2;--nt-control-check-color:#4e7183;--nt-control-check-border:#aabcc1;--nt-control-check-size:18px;--nt-control-check-radius:5px}
input,textarea,select,button{-webkit-tap-highlight-color:transparent;font-family:var(--font-ui)}
input:not([type=radio]):not([type=checkbox]):not([type=hidden]),textarea{appearance:none;-webkit-appearance:none;font-weight:400;letter-spacing:normal;caret-color:var(--nt-control-accent)}
input::placeholder,textarea::placeholder{color:var(--nt-control-muted);opacity:1;font-weight:400}
input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{appearance:none;-webkit-appearance:none}
input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{appearance:none;margin:0}
.preference-field{gap:7px;margin:14px 0;color:#748892;line-height:1.6;font-size:12px}
.account-dialog .preference-field input:not([type=checkbox]),.nt-select-trigger{min-height:var(--nt-control-height);padding:11px var(--nt-control-padding);border:1px solid var(--nt-control-border);border-radius:var(--nt-control-radius);background:var(--nt-control-bg);color:var(--nt-control-ink);font-size:var(--nt-control-font);line-height:22px;box-shadow:none}
.account-dialog .password-control{background:var(--nt-control-bg);border-color:var(--nt-control-border)}
.account-dialog .password-control input:not([type=checkbox]){background:none;border:0;border-radius:0;box-shadow:none}
.nt-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;transition:border-color .18s,background .18s,box-shadow .18s}
.nt-select-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nt-select-trigger>i{width:7px;height:7px;flex:none;margin-right:3px;border-right:1.5px solid #839ba9;border-bottom:1.5px solid #839ba9;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
.nt-select-trigger[aria-expanded=true]>i{transform:translateY(2px) rotate(225deg)}
.nt-select-trigger[aria-expanded=true]{background:var(--nt-control-selected);border-color:#8da6b5}
.nt-select-trigger.is-placeholder{color:var(--nt-control-muted)}
.nt-select-trigger:disabled,input:disabled,textarea:disabled{opacity:.5;cursor:not-allowed}
.booking-card input:not([type=radio]):not([type=checkbox]):not([type=hidden]),.booking-card textarea,.booking-card .picker{border-color:var(--nt-control-border);background:var(--nt-control-bg);color:var(--nt-control-ink);font-size:var(--nt-control-font)}
.booking-card .input-with-action{background:var(--nt-control-bg);border-color:var(--nt-control-border)}
.booking-card .input-with-action input:not([type=hidden]){background:none}
.booking-card .picker>span:not(.picker-chevron){font-size:var(--nt-control-font);font-family:var(--font-ui);font-weight:400}
.booking-card .picker{padding-inline:var(--nt-control-padding)}
input:focus-visible,textarea:focus-visible,.nt-select-trigger:focus-visible,.booking-card .picker:focus-visible{outline:2px solid #8da6b5;outline-offset:2px}
.booking-card .input-with-action input:focus-visible,.account-dialog .password-control input:focus-visible{outline:none}
.booking-card .booking-options input:focus-visible+span,.booking-check input:focus-visible+.check-mark,.people-options input:focus-visible+span,.segmented input:focus-visible+span{outline:2px solid #8da6b5;outline-offset:2px}
.account-consent{position:relative;flex-wrap:wrap;padding-bottom:2px;line-height:1.8;cursor:pointer}
.account-consent>span:not(.nt-control-error){flex:1;min-width:0}
:is(.account-consent,.booking-card) input[type=checkbox]:not(.booking-check input){
  appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;vertical-align:middle;flex:none;
  width:var(--nt-control-check-size);height:var(--nt-control-check-size);padding:0;border:1px solid var(--nt-control-check-border);
  border-radius:var(--nt-control-check-radius);background:#fff;cursor:pointer;
}
:is(.account-consent,.booking-card) input[type=checkbox]:not(.booking-check input):checked{background:var(--nt-control-check-color);border-color:var(--nt-control-check-color)}
:is(.account-consent,.booking-card) input[type=checkbox]:not(.booking-check input):checked::after{
  content:"";width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;transform:translateY(-1px) rotate(45deg);
}
:is(.account-consent,.booking-card) input[type=checkbox]:not(.booking-check input):disabled{cursor:not-allowed}
:is(.account-consent,.booking-card) input[type=checkbox]:not(.booking-check input):focus-visible{outline:2px solid var(--nt-control-focus);outline-offset:2px}
.nt-control-error{display:block;width:100%;font-size:11px;line-height:1.6;color:var(--nt-control-error);margin-top:1px}
[aria-invalid=true]:not(button[role=option]){border-color:#bd8b81!important}
.nt-choice-sheet{width:var(--overlay-width);max-width:398px;max-height:calc(100dvh - 70px);padding:8px 18px calc(18px + env(safe-area-inset-bottom,0px));border:0;background:#fcfcfa;color:var(--nt-control-ink);overflow:auto;overscroll-behavior:contain}
.nt-choice-sheet .sheet-header{padding-bottom:12px;border-color:#e3e9e9}
.nt-choice-sheet .sheet-header h2{font-size:20px;margin:3px 0 0;line-height:1.5;color:#3b5260}
.nt-choice-sheet .sheet-close{font-size:23px}
.nt-choice-options{display:grid;gap:7px;padding-top:12px}
.nt-choice-option{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:49px;width:100%;padding:12px 14px;border:1px solid transparent;border-radius:11px;background:#f2f5f4;color:#657c88;text-align:left;font-size:14px;line-height:22px;transition:background .18s,border-color .18s,color .18s}
.nt-choice-option>span{min-width:0;overflow-wrap:anywhere}
.nt-choice-option>i{position:relative;display:block;flex:none;width:18px;height:18px;border:1px solid #bfcfd5;border-radius:50%;background:#fff}
.nt-choice-option[aria-selected=true]{border-color:#a8bfcc;background:#e8f0f4;color:#3e5f73;font-weight:600}
.nt-choice-option[aria-selected=true]>i{border-color:#617f92;background:#617f92}
.nt-choice-option[aria-selected=true]>i:after{content:'';position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #fff;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.nt-choice-option:disabled{opacity:.4;cursor:not-allowed}
.nt-choice-option:focus-visible,.nt-choice-sheet button:focus-visible{outline:2px solid #8da6b5;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.nt-select-trigger,.nt-select-trigger>i,.nt-choice-option{transition:none}}

.booking-card [aria-invalid="true"]:focus-visible{outline:none}
.booking-card .input-with-action:has(input[aria-invalid="true"]){border-color:#c78879;background:#fff9f6;outline:none;box-shadow:none}
.booking-card .input-with-action input[aria-invalid="true"]{background:transparent!important}

/* Highlight the visible control itself when entering booking details. */
.booking-card input:not([type=radio]):not([type=checkbox]):not([type=hidden]):focus,
.booking-card #collection-delivery .route-entry #pickup-address:focus,
.booking-card textarea:focus,
.booking-card .input-with-action:focus-within,
#address-sheet .address-field input:focus,
#address-sheet .address-searchbar:focus-within,
.order-tools-card .order-search:focus-within,
.account-dialog .password-control:focus-within,
.account-dialog .preference-field>input:not([type=checkbox]):focus{
  border-color:var(--nt-control-focus);
  outline:none;
  box-shadow:none;
}
.booking-card .input-with-action input:focus{border-color:transparent}
.booking-card .input-with-action:has(input[aria-invalid="true"]){border-color:#c78879}

.order-tools-card .order-search input:focus-visible,.account-dialog .password-control input:focus-visible{outline:none}
.account-dialog .password-control:has(input[aria-invalid=true]){border-color:#bd8b81}
.account-dialog .password-control input[aria-invalid=true]{outline:none}

/* Keep the page still while a modal is open, including stacked picker dialogs. */
html:has(dialog:modal){overflow:hidden;overscroll-behavior:none}
dialog:modal,.schedule-dialog #sheet-body{overscroll-behavior:contain}
dialog:is(#registration-sheet,#address-sheet,#app-dialog,.account-dialog,.nt-choice-sheet){
  --nt-sheet-action-size:40px;
  --nt-sheet-action-bg:#edf2ef;
  --nt-sheet-action-ink:#506b78;
}
dialog:is(#registration-sheet,#address-sheet,#app-dialog,.account-dialog,.nt-choice-sheet)
:is(.sheet-close,[data-address-close],[data-close]){
  display:grid;place-items:center;flex:none;
  width:var(--nt-sheet-action-size);height:var(--nt-sheet-action-size);
  min-width:var(--nt-sheet-action-size);min-height:var(--nt-sheet-action-size);
  padding:0;border:0;border-radius:12px;background:var(--nt-sheet-action-bg);
  color:var(--nt-sheet-action-ink);line-height:1;
}
dialog:is(#registration-sheet,#address-sheet,#app-dialog,.account-dialog,.nt-choice-sheet)
:is(.sheet-close,[data-address-close],[data-close]):focus-visible{
  outline:2px solid var(--nt-control-focus);outline-offset:2px;
}
#registration-sheet.schedule-dialog{--nt-sheet-action-size:36px}
