/* Task #15: anchored date/time picker, mobile bottom sheet.
   Scope to v3 class so existing search and checkout layouts are unaffected. */
.atd-dt-root[hidden]{display:none!important}
.atd-dt-root{position:fixed;inset:0;z-index:2000;font-family:Manrope,Arial,Helvetica,sans-serif}
.atd-dt-root *{box-sizing:border-box}
.atd-dt-backdrop{position:absolute;inset:0;background:rgba(3,12,30,.24)}
.atd-dt-dialog{position:fixed;width:min(570px,calc(100vw - 20px));max-height:min(640px,calc(100dvh - 20px));overflow:hidden;border:1px solid #dbdfed;border-radius:16px;background:#fff;color:#162a48;box-shadow:0 28px 65px #061a3b50;display:flex;flex-direction:column;outline:0}
.atd-dt-head{padding:19px 21px 14px;border-bottom:1px solid #e8ecf3;display:flex;justify-content:space-between;align-items:start;gap:14px}
.atd-dt-kicker{font-size:10px;letter-spacing:.12em;font-weight:900;color:#8650bf}
.atd-dt-head h2{font-size:19px;letter-spacing:-.045em;color:#061a3b;line-height:1.2;margin:6px 0 0;font-weight:900}
.atd-dt-close{width:30px;height:30px;display:grid;place-items:center;background:#f1f3f9;color:#334764;border:0;border-radius:9px;font:25px Arial,sans-serif;cursor:pointer;flex:none}
.atd-dt-body{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(160px,.8fr);gap:0;min-height:0;overflow:auto}
.atd-dt-cal{padding:16px 18px;border-right:1px solid #e6eaf1}
.atd-dt-month{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:15px;color:#162a48}
.atd-dt-month strong{font-size:13px;font-weight:900}
.atd-dt-month button{width:29px;height:29px;border:1px solid #dce2ee;background:#fff;border-radius:8px;color:#52309d;font-size:22px;cursor:pointer}
.atd-dt-month button:disabled{opacity:.34;cursor:not-allowed}
.atd-dt-weekdays,.atd-dt-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.atd-dt-weekdays{margin-bottom:6px}
.atd-dt-weekdays span{font-size:10px;color:#7a879b;font-weight:850;padding:4px 0}
.atd-dt-days button,.atd-dt-empty{aspect-ratio:1/1;min-width:0;display:grid;place-items:center;border-radius:8px;font-size:11px}
.atd-dt-days button{background:#fff;border:1px solid transparent;color:#2a3b55;cursor:pointer;font-family:inherit;font-weight:750}
.atd-dt-days button:not(:disabled):hover,.atd-dt-slots button:not(:disabled):hover{border-color:#8755d0;background:#f5effc}
.atd-dt-days button[aria-pressed="true"]{background:#5c33ae!important;color:#fff!important;border-color:#5c33ae!important}
.atd-dt-days button.atd-dt-today{border-color:#d4c3ed}
.atd-dt-days button:disabled{opacity:.32;cursor:not-allowed}
.atd-dt-times{padding:17px 15px 14px;min-width:0;display:flex;flex-direction:column;min-height:0}
.atd-dt-time-head strong{display:block;color:#162a48;font-size:13px;font-weight:900}
.atd-dt-time-head span{font-size:10px;color:#74849a;display:block;margin-top:3px}
.atd-dt-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:5px;overflow-y:auto;overscroll-behavior:contain;margin-top:10px;padding:1px 3px 3px 0;max-height:290px}
.atd-dt-slots button{min-height:32px;border:1px solid #e0e5ee;border-radius:7px;color:#2a3c56;background:#fff;font:750 11px Manrope,Arial,sans-serif;cursor:pointer}
.atd-dt-slots button[aria-pressed="true"]{background:#5c33ae!important;border-color:#5c33ae!important;color:#fff!important}
.atd-dt-slots button:disabled{opacity:.32;cursor:not-allowed}
.atd-dt-bottom{display:flex;align-items:center;justify-content:space-between;gap:13px;border-top:1px solid #e6eaf1;padding:13px 19px;background:#f9fafe}
.atd-dt-bottom strong{font-size:12px;font-weight:900;display:block;color:#162a48}
.atd-dt-bottom small{font-size:9px;line-height:1.5;color:#73819a;display:block;margin-top:4px}
.atd-dt-done{background:#075de7;border:0;border-radius:9px;color:#fff;min-height:39px;padding:10px 15px;font:850 11px Manrope,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.atd-dt-done:disabled{opacity:.42;cursor:not-allowed}
.atd-dt-root :is(button):focus-visible{outline:3px solid #00ad80;outline-offset:2px}
.atd-dt-handle{display:none}
@media(max-width:640px){
 body.atd-dt-open{overflow:hidden}
 .atd-dt-backdrop{background:rgba(3,12,30,.58)}
 .atd-dt-dialog{left:0!important;top:auto!important;right:0!important;bottom:0!important;width:100%;max-height:min(88dvh,780px);border-radius:19px 19px 0 0;box-shadow:0 -15px 55px #061a3b55}
 .atd-dt-handle{display:block;background:#d3d7e1;border-radius:10px;width:36px;height:4px;flex:none;align-self:center;margin:9px auto 0}
 .atd-dt-head{padding:12px 15px}
 .atd-dt-head h2{font-size:17px}
 .atd-dt-body{grid-template-columns:1fr;overflow-y:auto}
 .atd-dt-cal{padding:12px 16px;border-right:0;border-bottom:1px solid #e4e8f1}
 .atd-dt-month{margin-bottom:8px}
 .atd-dt-days button,.atd-dt-empty{aspect-ratio:auto;min-height:31px}
 .atd-dt-times{padding:11px 15px}
 .atd-dt-slots{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;gap:7px;padding:5px 0 9px;scroll-snap-type:x proximity}
 .atd-dt-slots button{flex:0 0 62px;min-height:38px;scroll-snap-align:start}
 .atd-dt-bottom{padding:12px 14px;align-items:stretch}
 .atd-dt-bottom>div{align-self:center}
 .atd-dt-done{min-width:140px}
}
@media(max-width:370px){
 .atd-dt-bottom{flex-direction:column;align-items:stretch}
 .atd-dt-bottom>div{align-self:stretch}
 .atd-dt-done{width:100%}
 .atd-dt-cal{padding:9px 11px}
}
@media(prefers-reduced-motion:reduce){.atd-dt-root *{scroll-behavior:auto!important}}

/* UAT #5: exact-minute fallback alongside fast 15-minute chips. */
.atd-dt-custom-label{display:block;margin:14px 0 6px;color:#172d4c;font:850 12px/1.4 Manrope,Arial,sans-serif}
.atd-dt-times #atd-dt-custom-time{
 display:block;width:100%;max-width:190px;min-height:39px;
 border:1px solid #cbd5e8;border-radius:8px;background:#fff;color:#1b2f4e;
 font:750 13px/1.2 Manrope,Arial,sans-serif;padding:7px 9px;
}
.atd-dt-times #atd-dt-custom-time:focus-visible{outline:3px solid #8054cc;outline-offset:2px}
.atd-dt-custom-hint{display:block;font:500 10px/1.55 Manrope,Arial,sans-serif;color:#65768e;margin:5px 0 0}
@media(max-width:640px){
 .atd-dt-custom-label{margin-top:10px}
 .atd-dt-times #atd-dt-custom-time{max-width:none;min-height:44px}
}
