.m8m-appt-locked { overflow: hidden; }
.m8m-appt-modal { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 22px; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.m8m-appt-modal.is-open { visibility: visible; opacity: 1; }
.m8m-appt-backdrop { position: absolute; inset: 0; background: rgba(13, 17, 23, .72); backdrop-filter: blur(7px); }
.m8m-appt-dialog { position: relative; width: min(980px, 100%); max-height: calc(100vh - 44px); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.32); transform: translateY(18px) scale(.985); transition: transform .25s ease; outline: 0; }
.m8m-appt-modal.is-open .m8m-appt-dialog { transform: translateY(0) scale(1); }
.m8m-appt-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px 15px 24px; border-bottom: 1px solid #e9ecef; }
.m8m-appt-header h2 { margin: 0; color: #171717; font: 600 clamp(18px, 2.2vw, 24px)/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.m8m-appt-close { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f2f3f5; color: #171717; cursor: pointer; font: 300 31px/1 Arial, sans-serif; transition: background .18s ease, transform .18s ease; }
.m8m-appt-close:hover, .m8m-appt-close:focus-visible { background: #e5e7eb; transform: rotate(4deg); }
.m8m-appt-body { height: min(var(--m8m-frame-height), calc(100vh - 112px)); background: #fff; }
.m8m-appt-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.m8m-appt-shortcode-button { appearance: none; border: 0; border-radius: 8px; padding: 13px 22px; background: #171717; color: #fff; cursor: pointer; font: 600 15px/1.2 system-ui, sans-serif; }
@media (max-width: 767px) {
  .m8m-appt-modal { padding: 0; align-items: end; }
  .m8m-appt-dialog { width: 100%; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .m8m-appt-header { min-height: 60px; padding: 10px 12px 10px 18px; }
  .m8m-appt-body { height: calc(94dvh - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .m8m-appt-modal, .m8m-appt-dialog { transition: none; }
}

