.moahome-module-launchers[hidden],
[data-moahome-section][hidden],
[data-moahome-map-link][hidden],
[data-moahome-navigation][hidden],
[data-moahome-navigation-provider][hidden] {
  display: none !important;
}

.moahome-module-launchers {
  position: fixed;
  z-index: 900;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.moahome-module-launchers > .moahome-module-launcher {
  box-sizing: border-box;
  appearance: none;
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  max-width: 132px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: #155eef;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .22);
  font: 800 14px/1 Pretendard, "Noto Sans KR", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: width 180ms ease, gap 180ms ease, border-radius 180ms ease, transform 180ms ease;
}

.moahome-module-launchers > .moahome-module-launcher--booking { background: #17352c; }
.moahome-module-launchers > .moahome-module-launcher > svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.moahome-module-launchers > .moahome-module-launcher > strong { max-width: 0; overflow: hidden; opacity: 0; transition: max-width 180ms ease, opacity 140ms ease; }
.moahome-module-launchers > .moahome-module-launcher:hover, .moahome-module-launchers > .moahome-module-launcher:focus-visible { width: 132px; gap: 9px; border-radius: 26px; transform: translateY(-2px); }
.moahome-module-launchers > .moahome-module-launcher:hover > strong, .moahome-module-launchers > .moahome-module-launcher:focus-visible > strong { max-width: 82px; opacity: 1; }

body.moahome-module-open { overflow: hidden; }

.moahome-module-layer,
.moahome-module-layer * { box-sizing: border-box; }

.moahome-module-layer {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: end;
  padding: 24px;
  opacity: 0;
  background: rgba(8, 15, 25, .52);
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

.moahome-module-layer.visible { opacity: 1; }

.moahome-module-dialog {
  width: min(100%, 560px);
  max-height: min(860px, calc(100dvh - 48px));
  overflow: auto;
  border-radius: 10px;
  color: #172033;
  background: #fff;
  box-shadow: 0 28px 90px rgba(8, 15, 25, .3);
  transform: translateX(18px);
  transition: transform 220ms ease;
}

.moahome-module-booking { width: min(100%, 760px); }
.moahome-module-layer.visible .moahome-module-dialog { transform: translateX(0); }

.moahome-module-dialog > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid #e4e7ec;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.moahome-module-dialog > header small,
.moahome-module-dialog > header h2 { display: block; margin: 0; letter-spacing: 0; }
.moahome-module-dialog > header small { margin-bottom: 5px; color: #667085; font-size: 10px; font-weight: 850; }
.moahome-module-dialog > header h2 { color: #172033; font-size: 23px; line-height: 1.25; }
.moahome-module-dialog > header button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  color: #344054;
  background: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.moahome-module-body { padding: 24px; }
.moahome-module-description { margin: 0 0 22px; color: #667085; font-size: 14px; line-height: 1.65; }
.moahome-module-loading, .moahome-module-empty, .moahome-module-error { min-height: 180px; display: grid; place-items: center; color: #667085; text-align: center; }
.moahome-module-error { color: #b42318; }

.moahome-module-form { display: grid; gap: 15px; }
.moahome-module-form label { display: grid; gap: 7px; min-width: 0; }
.moahome-module-form label > span { color: #344054; font-size: 12px; font-weight: 800; }
.moahome-module-form label em { color: #d92d20; font-style: normal; }
.moahome-module-form input:not([type="checkbox"]),
.moahome-module-form textarea,
.moahome-module-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  font: inherit;
}
.moahome-module-form textarea { resize: vertical; }
.moahome-module-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; }
.moahome-module-field-textarea { grid-column: 1 / -1; }
.moahome-module-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.moahome-module-consent { grid-template-columns: auto 1fr; align-items: start; }
.moahome-module-consent input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--moahome-module-accent, #155eef); }
.moahome-module-consent a { color: var(--moahome-module-accent, #155eef); text-decoration: underline; text-underline-offset: 2px; }
.moahome-module-form > button,
.moahome-module-success button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--moahome-module-accent, #155eef);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}
.moahome-module-form > button:disabled { cursor: wait; opacity: .55; }
.moahome-security-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.moahome-turnstile:empty { display: none; }
.moahome-turnstile { max-width: 100%; overflow: visible; }
.moahome-module-feedback { min-height: 18px; margin: 0; color: #b42318; font-size: 12px; }
.moahome-module-success { min-height: 260px; display: grid; align-content: center; gap: 10px; text-align: center; }
.moahome-module-success strong { font-size: 24px; }
.moahome-module-success p { margin: 0 0 14px; color: #667085; }
.moahome-module-success button { width: min(100%, 220px); margin: 0 auto; }
.moahome-module-success-link { width: min(100%, 220px); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; border-radius: 6px; color: #fff; background: var(--moahome-module-accent, #155eef); font-size: 14px; font-weight: 850; text-decoration: none; }
.moahome-module-success-link + button { border: 1px solid #d0d5dd; color: #344054; background: #fff; }

.moahome-booking-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.moahome-booking-meta span { padding: 8px 10px; border: 1px solid #e4e7ec; border-radius: 5px; color: #475467; font-size: 12px; font-weight: 750; }
.moahome-booking-step { display: grid; gap: 12px; margin-bottom: 24px; }
.moahome-booking-step > strong, .moahome-booking-form > strong { color: #172033; font-size: 14px; }
.moahome-date-options, .moahome-slot-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.moahome-date-options button, .moahome-slot-options button {
  min-height: 48px;
  padding: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #344054;
  background: #fff;
  cursor: pointer;
}
.moahome-slot-options button { display: grid; gap: 4px; text-align: left; }
.moahome-slot-options button small { color: #667085; }
.moahome-date-options button.active, .moahome-slot-options button.active { color: #155eef; border-color: #84adff; background: #eff4ff; }
.moahome-slot-options p { grid-column: 1 / -1; color: #667085; font-size: 13px; }
.moahome-booking-form { padding-top: 22px; border-top: 1px solid #e4e7ec; }

.moahome-news-list { display: grid; }
.moahome-news-list article { display: grid; gap: 7px; padding: 20px 0; border-bottom: 1px solid #e4e7ec; }
.moahome-news-list article:first-child { padding-top: 0; }
.moahome-news-list article small { color: #155eef; font-size: 11px; font-weight: 850; }
.moahome-news-list article strong { color: inherit; font-size: 17px; line-height: 1.4; }
.moahome-news-list article p { margin: 0; color: #667085; font-size: 13px; line-height: 1.65; }

@media (max-width: 560px) {
  .moahome-module-launchers {
    right: 12px;
    bottom: 12px;
  }

  body.mh-has-nav-dock .moahome-module-launchers {
    bottom: calc(88px + max(12px, env(safe-area-inset-bottom)));
  }

  .moahome-module-launchers > .moahome-module-launcher { width: 48px; min-width: 48px; max-width: 48px; height: 48px; min-height: 48px; max-height: 48px; padding: 0; }
  .moahome-module-launchers > .moahome-module-launcher:hover, .moahome-module-launchers > .moahome-module-launcher:focus-visible { width: 48px; gap: 0; border-radius: 50%; transform: none; }
  .moahome-module-launchers > .moahome-module-launcher:hover > strong, .moahome-module-launchers > .moahome-module-launcher:focus-visible > strong { max-width: 0; opacity: 0; }

  .moahome-module-layer { align-items: end; padding: 0; }
  .moahome-module-dialog, .moahome-module-booking {
    width: 100%;
    max-height: 92dvh;
    border-radius: 10px 10px 0 0;
    transform: translateY(28px);
  }
  .moahome-module-layer.visible .moahome-module-dialog { transform: translateY(0); }
  .moahome-module-dialog > header { min-height: 76px; padding: 16px 18px; }
  .moahome-module-dialog > header h2 { font-size: 20px; }
  .moahome-module-body { padding: 18px; }
  .moahome-module-field-grid { grid-template-columns: 1fr; }
  .moahome-module-field-textarea { grid-column: auto; }
  .moahome-module-fields { grid-template-columns: 1fr; }
  .moahome-date-options, .moahome-slot-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
