#appointmentLookup{width:fit-content;max-width:100%;margin:0 auto 22px;padding:0!important;border:2px solid #e30a17;border-radius:14px;background:#fffdf8}
#appointmentLookup[hidden],#lookupDialog [hidden]{display:none!important}
#lookupOpen{display:block;width:auto;max-width:100%;border:0;background:transparent;color:#e30a17;text-align:center;padding:12px 20px;font-size:20px;font-weight:500;line-height:1.5;cursor:pointer}
#lookupDialog{box-sizing:border-box;width:min(660px,calc(100vw - 24px));max-width:660px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #d9d3c7;border-radius:18px;background:#fffdf8;color:#142e50;overflow:hidden;margin:auto;box-shadow:0 24px 90px #00162e40}
#lookupDialog::backdrop{background:rgba(9,24,42,.6)}
body.lookup-modal-open{overflow:hidden}
#lookupDialog .lookup-top{display:flex;align-items:flex-start;gap:16px;padding:22px 24px 16px;border-bottom:1px solid #e5dfd4}
#lookupTitle{margin:0;flex:1;font-size:24px;line-height:1.3;text-align:left}
#lookupClose{flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid #d9d3c7;border-radius:50%;background:#fff;color:#142e50;font-size:28px;line-height:1;cursor:pointer}
#lookupContent{padding:20px 24px 24px;max-height:calc(100dvh - 135px);overflow:auto;overscroll-behavior:contain}
#lookupDialog form{margin:0}#lookupDialog p{line-height:1.65;text-align:left}#lookupDialog p:empty{display:none}
#lookupDialog label{display:block;margin:12px 0 6px;font-weight:600}
#lookupDialog input,#lookupDialog select{box-sizing:border-box;width:100%;min-width:0;font-size:18px;min-height:48px}
#lookupDialog .lookup-phone{display:flex;border:1px solid #a7b3bf;border-radius:9px;background:#fff;overflow:hidden}
#lookupDialog .lookup-prefix{display:flex;align-items:center;padding:0 14px;border-right:1px solid #d5dbe1;font-weight:600;color:#142e50;font-size:18px}
#lookupDialog .lookup-phone input{border:0;border-radius:0;width:100%;padding:12px;background:#fff}
#lookupDialog .lookup-phone:focus-within{outline:3px solid #c9b886;outline-offset:2px}
#lookupDialog .lookup-current{padding:14px 16px;margin-bottom:18px;border-left:4px solid #bcaa76;border-radius:8px;background:#f3f0e8}
#lookupDialog .lookup-current p{margin:5px 0;white-space:pre-line}#lookupDialog .lookup-current small{font-size:15px}
#lookupDialog .lookup-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
#lookupDialog button.refresh,#lookupDialog button.primary{min-height:46px;padding:10px 15px;white-space:normal;font-size:16px;line-height:1.4;cursor:pointer}
#lookupDialog .lookup-danger{color:#b31523;border-color:#b31523;background:#fff}
#lookupResults{display:grid;gap:12px}#lookupResults>button{text-align:left;line-height:1.6}
#lookupSlots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
#lookupSlots button{padding:11px 8px;min-height:45px;font-size:17px}
#lookupSelected,#lookupConfirmTime{white-space:pre-line;font-weight:600}
#lookupDialog button:focus-visible,#lookupDialog select:focus-visible{outline:3px solid #bcaa76;outline-offset:3px}
#lookupDialog button:disabled{opacity:.55;cursor:wait}
@media(max-width:600px){#lookupOpen{padding:10px 14px;font-size:16px}#lookupTitle{font-size:21px}#lookupDialog .lookup-top{padding:18px 16px 14px}#lookupContent{padding:16px}#lookupDialog .lookup-actions>button{flex:1 1 180px}#lookupSlots{grid-template-columns:repeat(3,minmax(0,1fr))}}

#lookupDialog .lookup-phone select{width:44%;flex:0 0 44%;appearance:auto;border:0;border-right:1px solid #d5dbe1;border-radius:0;padding:10px 8px;font-size:15px;background:#fff;color:#142e50;cursor:pointer}
#lookupDialog .lookup-phone input{flex:1;min-width:0}

#lookupDialog #lookupDoneText.cancellation-confirmed{font-size:22px;font-weight:700;line-height:1.45;color:#193251;margin:18px 0}
