/* Vchat Core 0.65.91-alpha: scoped Agenda modal geometry and actions. CSS ONLY. */
.vchat-frontend-app #vchat-modal:has(.vchat-booking-settings-standalone) .vchat-modal-dialog,
.vchat-frontend-app #vchat-modal:has(.vchat-calendar-manager-standalone) .vchat-modal-dialog{
  width:min(1000px,calc(100vw - 48px))!important;max-width:100%!important;
  max-height:min(88dvh,850px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
.vchat-frontend-app #vchat-modal:has(.vchat-booking-settings-standalone) .vchat-modal-head,
.vchat-frontend-app #vchat-modal:has(.vchat-calendar-manager-standalone) .vchat-modal-head{
  flex:none!important;min-height:64px!important;background:#fff!important;
}
.vchat-frontend-app #vchat-modal .vchat-modal-body:has(.vchat-booking-settings-standalone),
.vchat-frontend-app #vchat-modal .vchat-modal-body:has(.vchat-calendar-manager-standalone){
  flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:22px!important;overscroll-behavior:contain!important;
}
/* The legacy schedule grid reserves FOUR columns; the standalone editor has exactly TWO time inputs. */
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-hours-day{
  display:grid!important;grid-template-columns:minmax(110px,170px) minmax(0,1fr)!important;
  gap:16px!important;align-items:center!important;overflow:visible!important;padding:14px 16px!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-day-identity{
  min-width:0!important;display:flex!important;align-items:center!important;padding:0!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-day-identity strong{
  font-size:13px!important;line-height:1.4!important;color:#29243e!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-hours-interval{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;padding:0!important;
  border:0!important;background:transparent!important;align-items:end!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-hours-interval>label{
  display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;
  margin:0!important;gap:7px!important;font-size:11px!important;line-height:1.35!important;
  color:#68607c!important;font-weight:750!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone input[type=time]{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:46px!important;min-height:46px!important;box-sizing:border-box!important;
  padding:8px 12px!important;margin:0!important;border:1px solid #dcd6ed!important;
  border-radius:12px!important;background:#fff!important;color:#2d2840!important;
  font-size:15px!important;font-weight:700!important;line-height:1.4!important;
  text-align:left!important;overflow:visible!important;color-scheme:light!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone input[type=time]:focus{
  outline:2px solid rgba(103,83,216,.18)!important;border-color:#7565dc!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-modal-actions{
  position:sticky!important;bottom:-22px!important;z-index:3!important;display:flex!important;
  justify-content:flex-end!important;gap:10px!important;margin:16px -22px -22px!important;
  padding:15px 22px!important;background:#fff!important;border-top:1px solid #eae5f3!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-modal-actions button,
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:100px!important;min-height:40px!important;
  padding:10px 15px!important;border:1px solid #dcd5ed!important;border-radius:11px!important;
  background:#fff!important;color:#5847ac!important;font-size:12px!important;font-weight:800!important;
  line-height:1.2!important;white-space:normal!important;box-shadow:none!important;cursor:pointer!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-modal-actions button.primary,
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone button.primary{
  background:#6356d9!important;border-color:#6356d9!important;color:#fff!important;
}
.vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-modal-actions button:hover,
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone button:hover{
  filter:brightness(.97)!important;transform:none!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone button:disabled{
  opacity:.48!important;cursor:not-allowed!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-limit{
  display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;
  gap:18px!important;align-items:center!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-limit>div{
  flex:1 1 180px!important;min-width:0!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-limit button{
  flex:0 0 auto!important;min-width:170px!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-table-wrap{
  width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;
  border:1px solid #e4deef!important;border-radius:14px!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-table{
  width:100%!important;min-width:650px!important;table-layout:auto!important;border-collapse:collapse!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-table th,
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-table td{
  box-sizing:border-box!important;vertical-align:middle!important;padding:14px!important;
  text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
.vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-table td:last-child{
  min-width:142px!important;
}
@media(max-width:700px){
 .vchat-frontend-app #vchat-modal:has(.vchat-booking-settings-standalone) .vchat-modal-dialog,
 .vchat-frontend-app #vchat-modal:has(.vchat-calendar-manager-standalone) .vchat-modal-dialog{
   width:100%!important;max-height:92dvh!important;border-radius:20px 20px 0 0!important;
 }
 .vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-hours-day{
   grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
 }
 .vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-hours-interval{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;
 }
 .vchat-frontend-app #vchat-modal .vchat-calendar-manager-standalone .vchat-calendar-limit button{
   flex:1 1 100%!important;
 }
}
@media(max-width:390px){
 .vchat-frontend-app #vchat-modal .vchat-booking-settings-standalone .vchat-booking-hours-interval{
   grid-template-columns:1fr!important;
 }
}
