.mb-booking-modal[hidden] { display: none !important; }
.mb-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.mb-booking-backdrop { position: absolute; inset: 0; background: rgba(21, 24, 28, .68); }
.mb-booking-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .24);
}
.mb-booking-header {
  min-height: 72px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid #e7e8ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mb-booking-header > div { min-width: 0; }
.mb-booking-header span { display: block; color: #267a52; font-size: 12px; font-weight: 700; }
.mb-booking-header h2 { margin: 3px 0 0; color: #202428; font-size: 20px; line-height: 1.2; letter-spacing: 0; }
.mb-booking-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #202428;
  background: #f1f3f4;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.mb-booking-frame-wrap { position: relative; min-height: 480px; overflow: auto; background: #fbfaff; }
.mb-booking-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #4d5459; text-align: center; }
.mb-booking-frame-wrap.is-loaded .mb-booking-loading { display: none; }
.mb-booking-frame { width: 100%; height: min(720px, calc(100dvh - 156px)); min-height: 480px; border: 0; display: block; background: #fbfaff; }
.mb-booking-footer {
  min-height: 60px;
  padding: 8px 14px;
  border-top: 1px solid #e7e8ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.mb-booking-footer a,
.mb-booking-callback {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #267a52;
  font-weight: 700;
}
.mb-booking-callback { border: 0; padding: 6px 4px; background: transparent; cursor: pointer; }
.mb-booking-modal[data-booking-success="true"] .mb-booking-callback { display: none; }
.mb-booking-inline {
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.mb-booking-inline button { min-height: 48px; cursor: pointer; }
.mb-booking-inline-primary { border: 0; }
.mb-booking-inline-secondary {
  border: 1px solid #267a52;
  border-radius: 4px;
  padding: 10px 18px;
  color: #267a52;
  background: #fff;
  font-weight: 700;
}
.mb-booking-modal :focus-visible,
.mb-booking-inline :focus-visible { outline: 3px solid #135d96; outline-offset: 3px; }

@media (max-width: 620px) {
  .mb-booking-modal { padding: 0; place-items: stretch; }
  .mb-booking-dialog { width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .mb-booking-header { padding-left: 16px; }
  .mb-booking-header h2 { font-size: 18px; }
  .mb-booking-frame { height: calc(100dvh - 132px); }
  .mb-booking-footer { min-height: 60px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .mb-booking-footer a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .mb-booking-modal *, .mb-booking-inline * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
