/*
 * Site-specific styles that used to live in Webflow page embeds, plus the
 * small pieces needed by the local Webflow-runtime replacement (js/main.js).
 */

/* Originally an inline embed on every page: keep Korean words unbroken. */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
b,
li,
a {
  word-break: keep-all;
}

/* ---------- terms / privacy-policy tables (original page embed) ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid #efefef;
  font-family: 'Pretendard', sans-serif;
}

.legal-table thead {
  background: #f8f8f8;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #efefef;
  border-right: 1px solid #efefef;
  vertical-align: top;
  line-height: 1.6;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: none;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table th {
  font-weight: 600;
  color: rgba(21, 21, 21, 0.95);
}

.legal-table td {
  color: rgba(21, 21, 21, 0.78);
}

@media (max-width: 767px) {
  .legal-table {
    font-size: 13px;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
  }
}

/* ---------- whattime booking widget (contact-success embed) ---------- */
@media (max-width: 767px) {
  .whattime-inline-widget {
    min-width: 320px !important;
    width: calc(100vw - 48px) !important;
  }
}

/* ---------- interactions driven by js/main.js ---------- */

/* FAQ accordion: rotate the arrow while open (was a Webflow IX2 animation). */
.w-dropdown .faq-icon,
.w-dropdown .dropdown-arrow {
  transition: transform 200ms ease;
}

.w-dropdown.w--open > .w-dropdown-toggle .faq-icon,
.w-dropdown.w--open > .w-dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}

/* Accordion panels open in place instead of floating like nav dropdowns.
 * Webflow collapsed them with an inline height:0 that its runtime animated;
 * we collapse via CSS only when JS is available so no-JS readers see the
 * answers. js/main.js drives the open/close height animation. */
.w-js .accordion-list {
  height: 0;
  overflow: hidden;
  transition: height 350ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .w-js .accordion-list {
    transition: none;
  }
}

/* Keep the page still while the mobile menu is open. */
body.nav-menu-open {
  overflow: hidden;
}

/* The runtime-free nav menu: keep site background instead of Webflow's gray. */
.w-nav-menu[data-nav-menu-open] {
  background: #fff;
}

/* History tab-accordions (about page): Webflow IX2 collapsed the body of
 * inactive tabs with inline styles; collapse them via CSS when JS runs. */
.w-js .w-tabs .w-tab-link .acordion-body {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 300ms ease;
}

.w-js .w-tabs .w-tab-link.w--current .acordion-body {
  height: auto;
  opacity: 1;
}

/* Notice shown when the (not yet wired) inquiry forms are submitted. */
.form-static-notice {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f4f6fb;
  color: #15151f;
  font-size: 14px;
  line-height: 1.6;
}
