/* Booking management is separate from the existing search widget. */
.mfj-booking-widget-stack { min-width: 0; display: grid; gap: 14px; }
.mfj-manage-launch {
  width: 100%; min-height: 54px; padding: 14px 22px; display: flex;
  align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--gold, #c9932d); border-radius: 999px;
  background: rgba(255, 255, 255, .97); color: #704b0d;
  font-size: .93rem; font-weight: 800; line-height: 1.3; text-decoration: none;
  box-shadow: 0 8px 24px rgba(4, 16, 31, .1);
  transition: background-color .16s ease, border-color .16s ease;
}
.mfj-manage-launch:hover { background: #f6ecd8; border-color: #9d6b13; }
.mfj-manage-launch svg { flex: 0 0 auto; width: 20px; height: 20px; }
.mfj-manage-dialog:not([open]) { display: none; }
.mfj-manage-dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
  margin: auto; padding: 36px 32px 28px; overflow: auto;
  border: 1px solid #e5e9ee; border-radius: 24px;
  background: #fff; color: #101722; box-shadow: 0 24px 80px rgba(4, 16, 31, .3);
}
.mfj-manage-dialog::backdrop { background: rgba(7, 17, 31, .62); backdrop-filter: blur(3px); }
.mfj-manage-dialog h2 { margin: 8px 38px 16px 0; font-size: clamp(1.8rem, 4vw, 2rem); line-height: 1.13; letter-spacing: -.04em; }
.mfj-manage-description { margin: 0 0 28px; color: #5f6d7d; font-size: .96rem; line-height: 1.6; }
.mfj-manage-close {
  position: absolute; top: 18px; inset-inline-end: 18px; width: 38px; height: 38px;
  padding: 9px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: #f1f4f7; color: #536274; cursor: pointer;
}
.mfj-manage-close:hover { background: #e7edf2; }
.mfj-manage-close svg { width: 20px; height: 20px; }
.mfj-manage-form { display: grid; gap: 20px; margin: 0; }
.mfj-manage-field { display: grid; gap: 9px; color: #46566b; font-size: .91rem; font-weight: 750; }
.mfj-manage-field input {
  width: 100%; min-height: 54px; min-width: 0; padding: 13px 15px;
  border: 1px solid #ced9e5; border-radius: 12px; background: #fff;
  color: #101722; font-size: 1rem; font-weight: 450; line-height: 1.45;
}
.mfj-manage-field input::placeholder { color: #7c8796; opacity: 1; }
.mfj-manage-field input:focus { border-color: #c9932d; outline: 3px solid rgba(201, 147, 45, .35); outline-offset: 2px; }
.mfj-manage-submit {
  min-height: 54px; margin-top: 2px; padding: 14px 20px; display: flex;
  align-items: center; justify-content: center; gap: 10px;
  border: 1px solid #c9932d; border-radius: 999px;
  background: #c9932d; color: #101722; font-size: .98rem; font-weight: 850; cursor: pointer;
}
.mfj-manage-submit:hover { background: #d4a33f; border-color: #d4a33f; }
.mfj-manage-submit svg { width: 20px; height: 20px; }
.mfj-manage-help { margin: 24px 0 0; color: #5f6d7d; font-size: .87rem; text-align: center; }
.mfj-manage-help a { color: #8a5b0c; font-weight: 750; text-decoration: none; white-space: nowrap; }
.mfj-manage-help a:hover { text-decoration: underline; }
.mfj-manage-launch:focus-visible, .mfj-manage-close:focus-visible, .mfj-manage-submit:focus-visible, .mfj-manage-help a:focus-visible {
  outline: 3px solid #c9932d; outline-offset: 4px;
}
html.mfj-manage-dialog-open { overflow: hidden; }
@media (max-width: 1080px) { .mfj-booking-widget-stack { max-width: 760px; } }
@media (max-width: 560px) {
  .mfj-manage-launch { min-height: 52px; padding-inline: 18px; }
  .mfj-manage-dialog {
    width: 100%; max-width: none; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
    margin: auto 0 0; padding: 30px 22px calc(26px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
  }
  .mfj-manage-dialog h2 { font-size: 1.8rem; }
  .mfj-manage-description { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .mfj-manage-launch { transition: none; } }
