/* Shared white/black date-time picker; host adapters retain the canonical fields. */
.booking-datetime,.booking-datetime *,.booking-datetime-panel,.booking-datetime-panel *{box-sizing:border-box}
.booking-datetime{min-width:0;display:grid;gap:6px;color:#111}
.booking-datetime-label{font-size:12px;font-weight:700;line-height:1.4}
.booking-datetime-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:46px;padding:11px 12px;background:#fff;color:#111;border:1px solid #aaa;border-radius:7px;text-align:left;font:inherit;font-size:13px;line-height:1.4;cursor:pointer}
.booking-datetime-trigger:disabled{cursor:not-allowed;opacity:.55}
.booking-datetime-icon{width:20px;flex:0 0 20px;display:block}
.booking-datetime-icon svg{display:block;width:20px;height:20px}
.booking-datetime-value{min-width:0;overflow-wrap:anywhere}
.booking-datetime-error,.booking-datetime-panel-error{margin:2px 0 0;color:#111;font:650 12px/1.5 Arial,Helvetica,sans-serif}
.booking-datetime-panel{position:fixed;z-index:500;width:min(700px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:18px;border:1px solid #aaa;border-radius:11px;background:#fff;color:#111;box-shadow:0 12px 40px #0003;font:14px/1.45 Arial,Helvetica,sans-serif}
.booking-datetime-panel[hidden],.booking-datetime-error[hidden],.booking-datetime-panel-error[hidden]{display:none!important}
.booking-datetime-panel button,.booking-datetime-panel input{font:inherit;color:#111;background:#fff;border:1px solid #bbb;border-radius:6px;box-shadow:none}
.booking-datetime-panel :is(button,input):focus-visible,.booking-datetime-trigger:focus-visible{outline:2px solid #111;outline-offset:3px}
.booking-datetime-navigation{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;gap:12px;margin-bottom:14px}
.booking-datetime-month-arrow{min-width:38px;min-height:38px;font-size:24px!important;line-height:1;cursor:pointer}
.booking-datetime-month-arrow:disabled{opacity:.3;cursor:default}
.booking-datetime-month-announcement{text-align:center;font-weight:650;font-size:12px}
.booking-datetime-calendars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.booking-datetime-calendar{min-width:0}
.booking-datetime-calendar h3{margin:0 0 10px;text-align:center;color:#111;font:700 15px/1.4 Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:0}
.booking-datetime-weekdays,.booking-datetime-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.booking-datetime-weekdays{margin-bottom:6px;font-size:11px;text-align:center;color:#444}
.booking-datetime-week{margin-top:3px}
.booking-datetime-cell{min-width:0;display:grid;place-items:stretch}
.booking-datetime-day{width:100%;min-height:34px;padding:4px;border-color:transparent!important;cursor:pointer;text-align:center;font-size:12px!important}
.booking-datetime-day:hover:not(:disabled){border-color:#111!important}
.booking-datetime-day[aria-current=date]{text-decoration:underline;text-underline-offset:4px}
body .booking-datetime-panel .booking-datetime-day.is-selected{border:2px solid #111!important;background:#111!important;color:#fff!important;border-radius:50%!important;width:34px;justify-self:center;font-weight:750}
.booking-datetime-day:disabled{color:#aaa;cursor:default}
.booking-datetime-time-row{display:grid;grid-template-columns:1fr 150px;align-items:center;gap:6px 14px;margin-top:18px;padding-top:16px;border-top:1px solid #ddd}
.booking-datetime-clock-label{font-weight:650;font-size:13px}
.booking-datetime-time{width:100%;min-height:44px;padding:8px 10px}
.booking-datetime-timezone{grid-column:1/-1;color:#555;font-size:11px}
.booking-datetime-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.booking-datetime-actions button{min-height:44px;min-width:100px;padding:10px 18px;font-weight:700;cursor:pointer}
.booking-datetime-actions .booking-datetime-done{border:2px solid #111}
/* Opt-in from host integration only. Do not use hidden, display:none, disabled
   or type=hidden: those can cause the host's native validity checks to be skipped. */
[data-booking-datetime-source][data-booking-datetime-enhanced="true"]{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(max-width:620px){
 .booking-datetime-panel{width:calc(100vw - 24px);padding:14px}
 .booking-datetime-calendars{grid-template-columns:minmax(0,1fr);gap:0}
 .booking-datetime-day{min-height:40px;font-size:13px!important}
 body .booking-datetime-panel .booking-datetime-day.is-selected{width:40px}
 .booking-datetime-month-arrow{min-height:42px}
 .booking-datetime-navigation{margin-bottom:12px}
 .booking-datetime-time-row{grid-template-columns:1fr 138px}
}

/* Independent time editor. Native named fields and existing calendar remain canonical. */
.booking-datetime-panel [hidden]{display:none!important}
.booking-datetime-panel .booking-datetime-time-source{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.booking-datetime-time-button{width:100%;min-height:44px;padding:9px 12px;text-align:center;cursor:pointer;font-weight:650!important}
.booking-datetime-panel[data-time-editing=true]{width:min(420px,calc(100vw - 24px))}
.booking-datetime-time-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.booking-datetime-time-head h3{margin:0!important;font:700 15px/1.4 Arial,Helvetica,sans-serif!important;color:#111!important;text-transform:none!important;letter-spacing:0!important}
.booking-datetime-time-formats{display:flex;flex:none;gap:4px}
.booking-datetime-time-formats button{min-width:44px;min-height:36px;padding:5px 9px;cursor:pointer}
.booking-datetime-time-columns{display:grid;grid-template-columns:1fr 1.2fr .85fr;gap:12px}
.booking-datetime-time-columns[data-hour-format="24"]{grid-template-columns:1fr 1.2fr}
.booking-datetime-time-column{min-width:0}
.booking-datetime-time-column-title{min-height:46px;display:flex;flex-direction:column;justify-content:flex-start;gap:3px;font-weight:700;font-size:12px;text-align:center;align-items:center}
.booking-datetime-panel .booking-datetime-minute-detail{border:0;border-radius:0;background:transparent;padding:0 2px;min-height:22px;color:#444;font-size:10px;line-height:1.2;text-decoration:underline;cursor:pointer}
.booking-datetime-time-options{display:grid;grid-auto-rows:minmax(38px,auto);gap:4px;max-height:224px;max-height:min(224px,37dvh);overflow:auto;overscroll-behavior:contain;padding:3px 4px 4px;scrollbar-gutter:stable}
.booking-datetime-time-options button{width:100%;min-height:38px;padding:7px 5px;cursor:pointer;text-align:center;font-variant-numeric:tabular-nums}
body .booking-datetime-panel .booking-datetime-time-option.is-selected,body .booking-datetime-panel .booking-datetime-time-formats button[aria-pressed=true]{background:#111!important;color:#fff!important;border-color:#111!important;font-weight:700}
.booking-datetime-time-actions{position:sticky;bottom:0;background:#fff;padding-top:10px;border-top:1px solid #ddd}
.booking-datetime-time-actions .booking-datetime-time-save{background:#111;color:#fff;border-color:#111}
@media(max-width:620px){.booking-datetime-time-columns{gap:8px}.booking-datetime-time-options{grid-auto-rows:minmax(44px,auto)}.booking-datetime-time-options button{min-height:44px}.booking-datetime-time-head{gap:8px}.booking-datetime-time-head h3{font-size:14px!important}}
@media(max-height:480px){.booking-datetime-time-options{max-height:94px}.booking-datetime-time-head{margin-bottom:8px}.booking-datetime-time-column-title{min-height:40px}.booking-datetime-time-actions{margin-top:10px}}

.booking-datetime-time-note{margin:10px 0 0;color:#555;font-size:11px;line-height:1.4}
.booking-datetime-panel[data-time-side-by-side=true]{display:grid;width:min(1100px,calc(100vw - 24px));grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);grid-template-areas:"navigation editor" "calendars editor" "time error" "main-actions time-actions";gap:12px 18px}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-navigation{grid-area:navigation;margin:0}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-calendars{grid-area:calendars;align-self:start}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-time-row{grid-area:time;margin-top:0;padding-top:12px}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-time-editor{grid-area:editor;min-width:0;border-left:1px solid #ddd;padding-left:18px}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-panel-error{grid-area:error;align-self:end}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-time-actions{grid-area:time-actions;position:static;align-self:end;margin:0;padding-left:18px}
.booking-datetime-panel[data-time-side-by-side=true]>.booking-datetime-actions:not(.booking-datetime-time-actions){grid-area:main-actions;align-self:end;margin:0}
.booking-datetime-panel .booking-datetime-done:disabled{opacity:.45;cursor:not-allowed}

/* On one-month screens, the navigation already names the month. Keep the
   calendar heading for its grid's accessible name without a second visual title. */
@media(max-width:620px){.booking-datetime-calendar>h3{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}}

/* Give the minute-precision action a full touch target, including landscape. */
@media(max-width:960px){.booking-datetime-panel .booking-datetime-minute-detail{min-width:44px;min-height:44px;padding:6px 4px;font-size:11px}.booking-datetime-time-column-title{min-height:62px}}
