/* Book a call (js/book.js), inside the shared pop-up (.fx-pop in site.css): one size for every step and every day picked,
   and what's longer than the room scrolls inside it. */
.bk-pop{--pop-w:600px;--pop-h:620px}
.bk{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.bk-head{flex:none;display:flex;align-items:flex-start;gap:12px;padding:20px 24px 16px;border-bottom:1px solid var(--line)}
.bk-title{margin:0;font-size:18px;line-height:26px;font-weight:700;color:var(--text)}
.bk-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px;font-size:13px;line-height:20px;color:var(--n600)}
.bk-meta span{display:inline-flex;align-items:center;gap:6px}
.bk-meta svg{flex:none;width:16px;height:16px;color:var(--primary)}
.bk-x{flex:none;display:grid;place-items:center;width:36px;height:36px;margin:-4px -8px 0 auto;padding:0;border:0;border-radius:10px;background:none;color:var(--n600);transition:background-color .16s}
.bk-x svg{width:18px;height:18px}
.bk-main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.bk-step{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0}

/* the strip of days, marked as tabs */
.bk-days{flex:none;display:flex;gap:8px;padding:16px 24px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-bottom:1px solid var(--line);scroll-padding:0 24px}
.bk-days::-webkit-scrollbar{display:none}
.bk-d{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:64px;height:68px;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--n700);transition:background-color .16s,border-color .16s,color .16s}
.bk-d small{font-size:11.5px;line-height:16px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--n500);transition:color .16s}
.bk-d b{font-size:20px;line-height:28px;font-weight:700}
.bk-d[aria-selected="true"]{background:var(--primary);border-color:var(--primary);color:#fff}
.bk-d[aria-selected="true"] small{color:var(--secondary)}

/* the day's times */
.bk-times{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 24px}
.bk-dh{margin:0 0 10px;font-size:14px;line-height:21px;font-weight:600;color:var(--text)}
.bk-ts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bk-t{display:flex;align-items:center;justify-content:safe center;height:44px;padding:0 4px;border:1px solid var(--n300);border-radius:10px;background:#fff;font-size:14px;line-height:22px;font-weight:600;color:var(--primary);white-space:nowrap;transition:border-color .16s,background-color .16s}
.bk-tz{flex:none;margin:0;padding:10px 24px;border-top:1px solid var(--line);font-size:12.5px;line-height:18px;color:var(--n600)}
.bk-note{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:var(--primary-50);font-size:13.5px;line-height:20px;color:var(--n700)}
.bk-note.bad{background:#FBEDEC;color:var(--bad)}

/* while the times load: their room, already in place */
.bk-ph{display:block;border-radius:10px;background:var(--primary-50)}
.bk-ph-d{flex:none;width:64px;height:68px;border-radius:12px}
.bk-ph-h{width:180px;height:12px;margin:4.5px 0 14.5px;border-radius:6px}
.bk-ph-t{height:44px}

/* their details */
.bk-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 24px}
.bk-when{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--primary-50)}
.bk-when b{display:block;font-size:14px;line-height:21px;font-weight:600;color:var(--text)}
.bk-when span{display:block;font-size:13px;line-height:20px;color:var(--n600)}
.bk-change{flex:none;margin-left:auto;height:32px;padding:0 10px;border:0;border-radius:8px;background:none;font-size:13px;line-height:20px;font-weight:600;color:var(--primary);transition:background-color .16s}
.bk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-top:16px}
.bk-f{display:block;min-width:0}
.bk-f.full{grid-column:1 / -1}
.bk-f > span{display:block;margin-bottom:6px;font-size:13.5px;line-height:20px;font-weight:500;color:var(--n700)}
.bk-f em{margin-left:2px;font-style:normal;color:var(--primary)}
.bk-f input,.bk-f textarea{display:block;width:100%;height:44px;padding:0 13px;border:1px solid var(--n300);border-radius:10px;background:#fff;color:var(--text);font:400 16px/24px var(--font)}
.bk-f textarea{height:auto;min-height:72px;max-height:180px;padding:9px 13px;resize:none;overscroll-behavior-y:contain}
.bk-hp{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bk-err{margin:14px 0 0;font-size:13.5px;line-height:20px;font-weight:500;color:var(--bad)}
.bk-err a,.bk-ok p a,.bk-sub a{color:var(--primary);text-decoration:underline}
.bk-foot{flex:none;display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid var(--line)}

/* a question about their call */
.bk-ask h3{margin:0;font-size:18px;line-height:26px;font-weight:700;color:var(--text)}
.bk-sub{margin:6px 0 0;font-size:14px;line-height:22px;color:var(--n600)}

/* booked, moved, and the other ends */
.bk-ok{overflow-y:auto;overscroll-behavior:contain}
.bk-ok-in{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;padding:24px;text-align:center}
.bk-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--primary);color:#fff}
.bk-mark svg{width:26px;height:26px}
.bk-ok h3{margin:16px 0 0;font-size:20px;line-height:28px;font-weight:700;color:var(--text)}
.bk-ok-in > h3:first-child{margin-top:0}
.bk-ok p{margin:6px 0 0;max-width:360px;font-size:14px;line-height:22px;color:var(--n600);text-wrap:pretty}
.bk-card{width:100%;max-width:380px;margin-top:18px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;text-align:left}
.bk-ask .bk-card{max-width:none;margin-top:14px}
.bk-card div{display:flex;gap:10px;padding:4px 0;font-size:14px;line-height:21px;color:var(--n700)}
.bk-card svg{flex:none;width:18px;height:18px;margin-top:1.5px;color:var(--primary)}
.bk-card span,.bk-card a{min-width:0;overflow-wrap:anywhere}
.bk-card a{color:var(--primary);font-weight:600}
.bk-acts{display:flex;justify-content:center;margin-top:20px}

@media (hover:hover){
  .bk-x:hover,.bk-change:hover{background:var(--primary-50)}
  .bk-d:hover:not([aria-selected="true"]),.bk-t:hover{border-color:var(--primary)}
}

@media (max-width:640px){
  .bk-head{padding:6px 20px 14px}
  .bk-days{padding:12px 20px;scroll-padding:0 20px}
  .bk-times{padding:14px 20px}
  .bk-ts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bk-tz{padding:10px 20px}
  .bk-scroll{padding:14px 20px}
  .bk-grid{grid-template-columns:minmax(0,1fr)}
  .bk-foot{padding:12px 20px 16px}
  .bk-foot .fx-btn{flex:1 1 auto;min-width:0}
  /* two buttons stack, the main one on top */
  .bk-foot.two{flex-direction:column-reverse}
}
