/* Holiday Time premium pickers — city, time, date (see ht-pickers.js). Uses the page's tokens when present. */
.htp,.htp-pop{
  --htp-accent:var(--teal,#18AE97); --htp-accent-ink:var(--teal-ink,#0B7565); --htp-soft:var(--mint,#E9F7F4); --htp-soft-2:var(--mint-2,#D5F0EA);
  --htp-ink:var(--ink,#10283A); --htp-muted:var(--muted,#5D6F7C); --htp-faint:var(--faint,#8BA4B3); --htp-line:var(--line,#E4EBEF); --htp-surface:#fff;
  --htp-ring:rgba(24,174,151,.26); --htp-gold:#C9A227;
}
.htp{position:relative;width:100%;font:inherit}
.htp-native{position:absolute!important;inset-inline-start:0;bottom:0;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;border:0!important;padding:0!important;margin:0!important;overflow:hidden}

/* trigger */
.htp-trigger{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:7px 14px;background:var(--htp-surface);border:1px solid var(--htp-line);border-radius:14px;cursor:pointer;color:var(--htp-ink);transition:border-color .18s,box-shadow .18s,background .18s;text-align:start}
.htp-trigger:hover{border-color:color-mix(in srgb,var(--htp-accent) 45%,var(--htp-line))}
.htp-trigger:focus-visible,.htp.is-open .htp-trigger{border-color:var(--htp-accent);box-shadow:0 0 0 4px var(--htp-ring)}
.htp-trigger.is-invalid{border-color:#D14343;box-shadow:0 0 0 4px rgba(209,67,67,.12)}
.htp-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:none;background:var(--htp-soft);color:var(--htp-accent-ink)}
.htp-val{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.htp-val b{font-weight:700;font-size:15px;color:var(--htp-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.htp-val small{font-size:12px;color:var(--htp-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.htp-trigger.is-empty .htp-val b{font-weight:500;color:var(--htp-muted)}
.htp-trigger.is-empty .htp-ic{background:#F1F5F7;color:var(--htp-muted)}
.htp-chev{flex:none;color:var(--htp-muted);transition:transform .2s}
.htp.is-open .htp-chev{transform:rotate(180deg)}
/* inside a wrapper that already draws the border (partner join form) */
.htp--bare .htp-trigger{border:0;background:transparent;box-shadow:none!important;min-height:50px;border-radius:inherit}
.htp--bare{display:block}

/* popover */
.htp-back{display:none}
/* shown as a popover from inside a dialog (ht-pickers.js): drop the browser's popover box so it sits like before */
.htp-pop.htp-top{margin:0;inset:auto}
.htp-back.htp-top{margin:0;padding:0;border:0}
.htp-pop{position:fixed;top:0;left:0;z-index:2147483000;font-family:inherit;text-align:start;width:min(380px,calc(100vw - 32px));background:var(--htp-surface);border:1px solid var(--htp-line);border-radius:18px;
  box-shadow:0 24px 60px -18px rgba(16,40,58,.32),0 6px 18px -8px rgba(16,40,58,.14);padding:14px;color:var(--htp-ink);animation:htpIn .16s cubic-bezier(.2,.7,.2,1)}
.htp-pop--time{width:min(340px,calc(100vw - 32px))}
.htp-pop--date{width:min(348px,calc(100vw - 32px))}
@keyframes htpIn{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
.htp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-2px 2px 10px}
.htp-head b{font-size:15px;font-weight:800;color:var(--htp-ink)}
.htp-x{all:unset;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:var(--htp-muted);cursor:pointer}
.htp-x:hover{background:#F1F5F7;color:var(--htp-ink)}
.htp-x:focus-visible{box-shadow:0 0 0 3px var(--htp-ring)}

/* city */
.htp-search{display:flex;align-items:center;gap:8px;border:1px solid var(--htp-line);border-radius:12px;padding:0 12px;background:#F7FAFB;color:var(--htp-muted);margin-bottom:12px}
.htp-search:focus-within{border-color:var(--htp-accent);box-shadow:0 0 0 3px var(--htp-ring);background:#fff}
.htp-search input{all:unset;flex:1;min-width:0;height:42px;font-size:14.5px;color:var(--htp-ink)}
.htp-search input::placeholder{color:var(--htp-faint)}
.htp-cap{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;letter-spacing:.02em;color:var(--htp-muted);margin:2px 4px 8px}
.htp-cap svg{color:var(--htp-gold)}
.htp-cap--list{margin-top:12px}
.htp-chips{display:flex;flex-wrap:wrap;gap:6px}
.htp-chip{all:unset;cursor:pointer;padding:7px 13px;border-radius:999px;border:1px solid var(--htp-line);font-size:13.5px;font-weight:700;color:var(--htp-ink);background:#fff;transition:all .15s}
.htp-chip:hover{border-color:var(--htp-accent);color:var(--htp-accent-ink);background:var(--htp-soft)}
.htp-chip.is-sel{background:var(--htp-accent);border-color:var(--htp-accent);color:#fff}
.htp-chip:focus-visible{box-shadow:0 0 0 3px var(--htp-ring)}
.htp-list{list-style:none;margin:0;padding:0;max-height:260px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:2px}
.htp-opt{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;cursor:pointer}
.htp-opt:hover,.htp-opt.is-act{background:#F3F7F8}
.htp-opt.is-sel{background:var(--htp-soft)}
.htp-pin{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#F1F5F7;color:var(--htp-muted);flex:none}
.htp-opt.is-sel .htp-pin{background:var(--htp-accent);color:#fff}
.htp-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.35}
.htp-txt b{font-size:14.5px;font-weight:700}
.htp-txt small{font-size:12px;color:var(--htp-muted)}
.htp-tick{color:var(--htp-accent-ink);flex:none}
.htp-none{padding:18px 8px;text-align:center;color:var(--htp-muted);font-size:13.5px}

/* time */
.htp-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.htp-time{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 6px;border:1px solid var(--htp-line);border-radius:14px;background:#fff;transition:all .15s}
.htp-time b{font-size:18px;font-weight:800;color:var(--htp-ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.htp-time b em{font-style:normal;font-size:12px;font-weight:700;color:var(--htp-muted);margin-inline-start:4px}
.htp-time small{font-size:11.5px;color:var(--htp-muted)}
/* a whole day: compact chips grouped by the part of the day, scrolling */
.htp-tgroups{display:grid;gap:14px;max-height:min(340px,52vh);overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 4px;scroll-behavior:smooth}
.htp-tcap{display:block;margin:0 2px 8px;font-size:12px;font-weight:800;letter-spacing:.02em;color:var(--htp-muted)}
.htp-times--sm{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.htp-time--sm{padding:9px 4px;border-radius:12px}
.htp-time--sm b{font-size:15px}
.htp-time--sm b em{font-size:10.5px;margin-inline-start:3px}
.htp-time:hover{border-color:var(--htp-accent);background:var(--htp-soft)}
.htp-time:focus-visible{box-shadow:0 0 0 3px var(--htp-ring);border-color:var(--htp-accent)}
.htp-time.is-sel{background:linear-gradient(160deg,var(--htp-accent),var(--htp-accent-ink));border-color:transparent;box-shadow:0 10px 22px -12px rgba(11,117,101,.7)}
.htp-time.is-sel b,.htp-time.is-sel b em,.htp-time.is-sel small{color:#fff}

/* date */
.htp-cal-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.htp-nav{all:unset;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;border:1px solid var(--htp-line);color:var(--htp-ink);cursor:pointer}
.htp-nav:hover{background:var(--htp-soft);border-color:var(--htp-accent);color:var(--htp-accent-ink)}
.htp-nav:focus-visible{box-shadow:0 0 0 3px var(--htp-ring)}
.htp-nav[disabled]{opacity:.35;cursor:not-allowed}
.htp-month{text-align:center;line-height:1.3}
.htp-month b{display:block;font-size:15.5px;font-weight:800}
.htp-month small{font-size:11.5px;color:var(--htp-muted)}
.htp-dows,.htp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.htp-dows span{text-align:center;font-size:11px;font-weight:700;color:var(--htp-faint);padding:4px 0;white-space:nowrap;overflow:hidden}
.htp-day{all:unset;box-sizing:border-box;aspect-ratio:1;max-width:100%;display:grid;place-items:center;border-radius:12px;font-size:14px;font-weight:600;color:var(--htp-ink);cursor:pointer;font-variant-numeric:tabular-nums;position:relative}
.htp-day:hover{background:var(--htp-soft);color:var(--htp-accent-ink)}
.htp-day:focus-visible{box-shadow:0 0 0 3px var(--htp-ring)}
.htp-day.is-out{color:#B9C6CE}
.htp-day.is-today{box-shadow:inset 0 0 0 1.5px var(--htp-accent)}
.htp-day.is-today::after{content:"";position:absolute;bottom:5px;width:4px;height:4px;border-radius:50%;background:var(--htp-accent)}
.htp-day.is-sel{background:linear-gradient(160deg,var(--htp-accent),var(--htp-accent-ink));color:#fff;box-shadow:0 8px 18px -10px rgba(11,117,101,.8)}
.htp-day.is-sel::after{background:#fff}
.htp-day[disabled]{color:#CBD5DB;cursor:not-allowed;background:none;text-decoration:line-through;text-decoration-color:#DCE3E7}
.htp-foot{display:flex;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #EEF2F4}
.htp-link{all:unset;cursor:pointer;font-size:13.5px;font-weight:700;color:var(--htp-accent-ink);padding:6px 10px;border-radius:9px}
.htp-link:hover{background:var(--htp-soft)}
.htp-link:focus-visible{box-shadow:0 0 0 3px var(--htp-ring)}
.htp-link[disabled]{opacity:.4;cursor:not-allowed}
.htp-link--muted{color:var(--htp-muted)}

/* phones: bottom sheet */
@media (max-width:640px){
  .htp-back{display:block;position:fixed;inset:0;background:rgba(16,40,58,.42);z-index:2147482999;animation:htpFade .18s}
  .htp-pop{position:fixed;top:auto;bottom:0;left:0;right:0;width:auto;border-radius:22px 22px 0 0;padding:16px 16px calc(18px + env(safe-area-inset-bottom,0px));max-height:82vh;overflow-y:auto;animation:htpUp .22s cubic-bezier(.2,.7,.2,1)}
  .htp-pop::before{content:"";display:block;width:40px;height:4px;border-radius:4px;background:#D6DEE3;margin:-6px auto 12px}
  .htp-pop.htp-top{inset:auto 0 0 0}
  .htp-back.htp-top{inset:0;width:auto;height:auto}
  .htp-list{max-height:46vh}
  .htp-time{padding:14px 6px}
}
@keyframes htpUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes htpFade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.htp-pop,.htp-back{animation:none}.htp-chev{transition:none}}
.pr-in:has(.htp.is-open),.pr-in:has(.htp-trigger:focus-visible){border-color:var(--teal,#18AE97);box-shadow:0 0 0 4px rgba(24,174,151,.16)}

/* any dropdown (auto mode) */
.htp--choice .htp-ic{display:none}
.htp--choice .htp-trigger{min-height:48px;padding:6px 14px}
.htp--choice .htp-val b{font-weight:600}
.htp-pop--choice{width:min(360px,calc(100vw - 32px))}
.htp-list--choice{max-height:300px}
.htp-list--choice:focus{outline:none}
.htp-opt--c{padding:10px 12px;min-height:22px}
.htp-opt--c .htp-txt b{font-weight:600}
.htp-opt--c.is-sel .htp-txt b{font-weight:800;color:var(--htp-accent-ink)}
.htp-opt--c.is-ph .htp-txt b{color:var(--htp-muted);font-weight:500}
.htp-opt.is-dis{opacity:.45;cursor:not-allowed;background:none}
.htp-grp{list-style:none;font-size:11.5px;font-weight:800;color:var(--htp-muted);padding:10px 12px 4px;letter-spacing:.02em}
.htp-grp:first-child{padding-top:2px}
/* compact fields (admin forms, small selects) */
.htp--sm .htp-trigger{padding:4px 12px;gap:10px;border-radius:10px}
.htp--sm .htp-ic{width:28px;height:28px;border-radius:8px}
.htp--sm .htp-ic svg{width:15px;height:15px}
.htp--sm .htp-val b{font-size:14px}
.htp--sm .htp-val small{font-size:11px}
.htp.is-disabled .htp-trigger,.htp-trigger[disabled]{background:#F4F7F8;color:var(--htp-muted);cursor:not-allowed;opacity:.75}
/* admin: match the dashboard's field look */
html.ui-admin .htp-trigger{border-color:var(--bs-border-color,#dee2e6)}
html.ui-admin .htp--sm .htp-trigger{border-radius:var(--bs-border-radius,8px)}
@media (max-width:640px){.htp-list--choice{max-height:56vh}.htp-opt--c{padding:13px 12px}}
