/* SalonPro multi-master booking — fullscreen overlay widget */
.sp-overlay{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background:rgba(20,24,40,.45);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1f2430;-webkit-font-smoothing:antialiased}
.sp-overlay *{box-sizing:border-box;margin:0}
.sp-panel{display:flex;flex-direction:column;background:#fff;width:460px;max-width:100%;height:min(700px,94vh);border-radius:20px;overflow:hidden;box-shadow:0 20px 60px rgba(10,15,40,.3)}
@media(max-width:640px){.sp-overlay{background:#fff}.sp-panel{width:100%;height:100%;height:100dvh;max-height:none;border-radius:0;box-shadow:none}}

.sp-top{display:flex;align-items:center;gap:10px;height:54px;flex:0 0 auto;padding:0 12px;border-bottom:1px solid #eef0f5}
.sp-top h3{font-size:16px;font-weight:600;flex:1;text-align:center}
.sp-ico{width:38px;height:38px;border:none;background:#f3f4f8;border-radius:11px;font-size:18px;line-height:1;cursor:pointer;color:#3a4256;display:flex;align-items:center;justify-content:center}
.sp-ico:hover{background:#e8eaf2}
.sp-ico.ghost{visibility:hidden}

.sp-body{flex:1 1 auto;overflow-y:auto;padding:16px;-webkit-overflow-scrolling:touch}
.sp-foot{flex:0 0 auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eef0f5;background:#fff}

.sp-btn{display:block;width:100%;padding:15px;background:#5b6ef5;color:#fff;border:none;border-radius:13px;font-size:16px;font-weight:600;cursor:pointer}
.sp-btn:disabled{opacity:.45;cursor:not-allowed}

.sp-field{margin-bottom:14px}
.sp-field label{display:block;font-size:12px;color:#6b7280;margin-bottom:6px;font-weight:500}
.sp-overlay select,.sp-overlay input{width:100%;padding:13px;border:1px solid #d8dbe3;border-radius:11px;font-size:15px;background:#fff;color:#1f2430}
.sp-overlay select:focus,.sp-overlay input:focus{outline:none;border-color:#5b6ef5;box-shadow:0 0 0 3px rgba(91,110,245,.15)}
.sp-2{display:flex;gap:12px}.sp-2>*{flex:1}
.sp-muted{color:#8b90a0;font-size:13px}
.sp-err{background:#fdecec;border:1px solid #f3b6b6;color:#b3261e;border-radius:11px;padding:11px;margin-top:12px;font-size:14px}

/* calendar */
.sp-cal-head{display:flex;align-items:center;justify-content:space-between;margin:6px 0 12px}
.sp-cal-head b{font-size:15px;text-transform:capitalize}
.sp-nav{width:34px;height:34px;border:none;background:#f3f4f8;border-radius:10px;font-size:16px;cursor:pointer;color:#3a4256}
.sp-nav:disabled{opacity:.3;cursor:default}
.sp-dow{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:6px}
.sp-dow span{text-align:center;font-size:11px;color:#9aa0b0;font-weight:600}
.sp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.sp-day{position:relative;aspect-ratio:1/1;border-radius:11px;border:1.5px solid #eceef4;overflow:hidden;cursor:pointer;display:flex;align-items:center;justify-content:center;background:#fafbfd}
.sp-day .n{position:relative;z-index:2;font-size:14px;font-weight:600}
.sp-day .fill{position:absolute;left:0;right:0;bottom:0;z-index:1;border-radius:0}
.sp-day.empty{visibility:hidden}
.sp-day.off{cursor:default;background:#f4f5f8;border-color:#f0f1f5}
.sp-day.off .n{color:#c2c6d2;font-weight:500}
.sp-day.sel{border-color:#5b6ef5;box-shadow:0 0 0 2px rgba(91,110,245,.25)}
.sp-day.today .n{text-decoration:underline}
.sp-legend{display:flex;align-items:center;gap:6px;margin-top:14px;font-size:12px;color:#8b90a0}
.sp-legend i{width:14px;height:14px;border-radius:4px;display:inline-block}

/* times — 3 columns */
.sp-cols{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.sp-col{border-radius:14px;padding:10px 8px;min-height:80px}
.sp-col h4{font-size:12px;font-weight:700;text-align:center;margin-bottom:10px;letter-spacing:.3px}
.sp-col.morning{background:#fff7ec}.sp-col.morning h4{color:#b9791f}
.sp-col.day{background:#eef6ff}.sp-col.day h4{color:#2f6fb0}
.sp-col.evening{background:#f0eefc}.sp-col.evening h4{color:#5b46b0}
.sp-time{display:block;width:100%;padding:10px 4px;margin-bottom:7px;border:1px solid rgba(20,30,60,.08);border-radius:9px;background:#fff;cursor:pointer;font-size:14px;font-weight:600;text-align:center}
.sp-time:hover{border-color:#5b6ef5}
.sp-time.sel{background:#5b6ef5;border-color:#5b6ef5;color:#fff}
.sp-col .none{font-size:12px;color:#b3b8c6;text-align:center;padding:8px 0}

/* guests */
.sp-summary{font-size:14px;background:#f6f7fb;border-radius:12px;padding:13px;margin-bottom:14px;line-height:1.5}
.sp-guest{border:1px solid #eceef4;border-radius:14px;padding:13px;margin-bottom:12px}
.sp-guest .sp-gt{font-size:13px;font-weight:600;color:#5b6ef5;margin-bottom:10px}

/* success */
.sp-ok{text-align:center;padding:20px 6px}
.sp-ok .chk{width:64px;height:64px;border-radius:50%;background:#e8f8ef;color:#16a34a;font-size:34px;display:flex;align-items:center;justify-content:center;margin:6px auto 16px}
.sp-ok h3{font-size:19px;margin-bottom:8px}
.sp-ok .det{font-size:14px;color:#5b6070;line-height:1.7;background:#f6f7fb;border-radius:12px;padding:12px;margin-top:14px;text-align:left}
.sp-loading{text-align:center;color:#9aa0b0;padding:30px 0;font-size:14px}

/* launch button (on host page) */
.sp-launch{display:inline-block;padding:14px 24px;background:#5b6ef5;color:#fff;border:none;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit}
.sp-launch:hover{background:#4a5ce0}
/* guest mode segmented control */
.sp-seg{display:flex;gap:6px;margin-bottom:14px}
.sp-seg button{flex:1;padding:11px 6px;border:1px solid #d8dbe3;background:#fff;border-radius:10px;font-size:12.5px;font-weight:600;color:#3a4256;cursor:pointer;line-height:1.25}
.sp-seg button.on{background:#5b6ef5;border-color:#5b6ef5;color:#fff}
.sp-note{background:#f6f7fb;border-radius:10px;padding:11px 12px;font-size:13px;color:#5b6070;margin-bottom:12px;line-height:1.5}
.sp-dots{display:flex;gap:6px;justify-content:center;margin:2px 0 14px}
.sp-dots i{width:7px;height:7px;border-radius:50%;background:#dfe2ec}
.sp-dots i.on{background:#5b6ef5}
