/* Vchat Agenda 0.67.03: isolate scroll and day detail; no global modal or WP changes. */
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open{
  position:fixed!important;inset:0!important;display:flex!important;align-items:center!important;
  justify-content:center!important;padding:16px!important;box-sizing:border-box!important;
  z-index:2147483000!important;overflow:hidden!important;touch-action:auto!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-modal-dialog{
  display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
  width:min(720px,calc(100vw - 32px))!important;max-width:720px!important;
  max-height:calc(100dvh - 32px)!important;min-height:0!important;
  overflow:hidden!important;overscroll-behavior:contain!important;
  pointer-events:auto!important;touch-action:pan-y!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-modal-head{
  flex:0 0 auto!important;position:relative!important;top:auto!important;z-index:5!important;
  background:#fff!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open #vchat-modal-body{
  flex:1 1 auto!important;min-height:0!important;min-width:0!important;
  max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;padding:20px!important;scrollbar-gutter:stable!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open #vchat-modal-body .vchat-modal-actions{
  position:sticky!important;bottom:0!important;z-index:10!important;
  background:#fff!important;border-top:1px solid #e9e5f4!important;
  padding:13px 0 max(13px,env(safe-area-inset-bottom))!important;
  margin:16px 0 0!important;box-shadow:0 -8px 20px rgba(255,255,255,.9)!important;
}
/* Lock the calendar panel only while its own dialog is open. No effect on Inbox/CRM. */
#vchat-frontend-app.vchat-frontend-app:has(#vchat-modal.vchat-agenda-modal-active.is-open) [data-vchat-panel="booking"]{
  overflow:hidden!important;overscroll-behavior:none!important;
}
/* The "+N more" day action is a real button, not informational italic text. */
#vchat-frontend-app.vchat-frontend-app [data-vchat-panel="booking"] .vchat-booking-day-body>button.vchat-booking-more{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:6px!important;width:100%!important;max-width:100%!important;min-width:0!important;
  padding:6px 8px!important;margin:0!important;text-align:left!important;
  border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;
  color:#6656ce!important;font:750 10px/1.4 Inter,system-ui,sans-serif!important;
  cursor:pointer!important;box-shadow:none!important;transition:background .15s,border-color .15s!important;
}
#vchat-frontend-app.vchat-frontend-app [data-vchat-panel="booking"] .vchat-booking-day-body>button.vchat-booking-more:hover,
#vchat-frontend-app.vchat-frontend-app [data-vchat-panel="booking"] .vchat-booking-day-body>button.vchat-booking-more:focus-visible{
  background:#f1efff!important;border-color:#ded8fb!important;outline-offset:2px!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail,
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail *{
  box-sizing:border-box!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail{
  display:grid!important;gap:16px!important;min-width:0!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
  padding:16px!important;background:#f7f6ff!important;border:1px solid #e8e4ff!important;border-radius:16px!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header>div{min-width:0!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header span{color:#6656d4!important;font-size:10px!important;font-weight:800!important;letter-spacing:.08em!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header h3{
  margin:5px 0!important;padding:0!important;display:block!important;color:#232343!important;font-size:17px!important;font-weight:800!important;line-height:1.3!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header p{margin:0!important;font-size:12px!important;color:#78748d!important;line-height:1.45!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header .vchat-booking-day-detail-count{
  display:grid!important;place-items:center!important;flex:0 0 auto!important;width:40px!important;height:40px!important;
  border-radius:12px!important;background:#6258df!important;color:#fff!important;font-size:16px!important;font-weight:800!important;letter-spacing:0!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-list{display:grid!important;gap:8px!important;min-width:0!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open button.vchat-booking-day-detail-event{
  display:grid!important;grid-template-columns:58px minmax(0,1fr) auto 14px!important;align-items:center!important;gap:12px!important;
  width:100%!important;min-width:0!important;margin:0!important;padding:13px 14px!important;text-align:left!important;
  background:#fff!important;border:1px solid #e6e2f1!important;border-radius:13px!important;box-shadow:none!important;
  cursor:pointer!important;color:#25223d!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open button.vchat-booking-day-detail-event:hover,
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open button.vchat-booking-day-detail-event:focus-visible{
  background:#faf9ff!important;border-color:#a99af4!important;outline-offset:2px!important;
}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-time{font-size:13px!important;font-weight:850!important;color:#6657df!important;white-space:nowrap!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-info{display:grid!important;gap:4px!important;min-width:0!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-info strong{color:#262243!important;font-size:13px!important;font-weight:800!important;overflow-wrap:anywhere!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-info small{color:#85809b!important;font-size:11px!important;overflow-wrap:anywhere!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-status{padding:5px 8px!important;border-radius:999px!important;background:#f1efff!important;color:#6357b9!important;font-size:10px!important;font-weight:750!important;white-space:nowrap!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-status.is-confirmed{background:#eaf8f0!important;color:#21825c!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-status.is-cancelled{background:#f2f2f5!important;color:#797585!important}
#vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-arrow{color:#8d80d9!important;font-size:19px!important}
@media(max-width:600px){
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open{padding:8px!important;align-items:center!important}
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-modal-dialog{width:calc(100vw - 16px)!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;border-radius:18px!important}
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open #vchat-modal-body{padding:14px!important;scrollbar-gutter:auto!important}
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open button.vchat-booking-day-detail-event{grid-template-columns:52px minmax(0,1fr) 16px!important;gap:8px!important;padding:11px!important}
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-status{grid-column:2!important;grid-row:2!important;justify-self:start!important}
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-arrow{grid-column:3!important;grid-row:1!important}
  #vchat-frontend-app.vchat-frontend-app #vchat-modal.vchat-agenda-modal-active.is-open .vchat-booking-day-detail-header h3{font-size:15px!important}
}
