/* ClassIn Room Designer (room-designer.html). The ClassIn look: Gilroy, ClassIn green, white panels,
   pill controls. The 3D view fills the left, the steps sit on the right; phones stack them. */

@font-face { font-family: "Gilroy"; src: url("/wp-content/themes/overseaen/fonts/Gilroy-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/wp-content/themes/overseaen/fonts/Gilroy-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/wp-content/themes/overseaen/fonts/Gilroy-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/wp-content/themes/overseaen/fonts/Gilroy-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --ci-ink: #1C1F25; --ci-ink-70: rgba(28, 31, 37, .7); --ci-green: #00AA76; }

.dz { --dz-line: #E3E8E5; --dz-tint: #F4F7F5; --dz-act: #00734F; margin: 0; height: calc(100vh / var(--zoom, 1)); height: calc(100dvh / var(--zoom, 1)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr);
      background: #EEF2F0; color: var(--ci-ink); font-family: Gilroy, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.dz *, .dz *::before, .dz *::after { box-sizing: border-box; }
.dz button { font: inherit; color: inherit; }
.dz svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.dz-top { display: flex; align-items: center; gap: 20px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--dz-line); }
.dz-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; color: var(--ci-ink); text-decoration: none; }
.dz-brand img { display: block; }
.dz-brand span { padding-left: 12px; border-left: 1px solid var(--dz-line); font-size: 16px; line-height: 22px; font-weight: 700; }
.dz-steps { display: flex; gap: 4px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.dz-steps::-webkit-scrollbar { display: none; }
.dz-steps button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border: 0; border-radius: 999px; background: none;
                   font-size: 15px; font-weight: 600; color: var(--ci-ink-70); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.dz-steps button:hover { background: var(--dz-tint); color: var(--ci-ink); }
.dz-steps i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--dz-tint); font-style: normal; font-size: 13px; font-weight: 700; color: var(--ci-ink-70); }
.dz-steps .is-done i { background: #DDF4E8; color: var(--dz-act); }
.dz-steps [aria-current="step"] { background: var(--dz-act); color: #fff; }
.dz-steps [aria-current="step"] i { background: #fff; color: var(--dz-act); }
.dz-quote { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: #00734F; color: #fff;
            font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.dz-quote:hover { background: #005C3F; }
.is-embed .dz-brand { display: none; }
.is-embed .dz-steps { margin-left: 0; }

/* ---------- the 3D view ---------- */
.dz-main { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 0; }
.dz-stage { position: relative; overflow: hidden; min-height: 0; background: #EEF2F0; touch-action: none; }
.dz-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.dz-views { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.96);
            box-shadow: 0 10px 26px -14px rgba(0,0,0,.4); }
.dz-views button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--ci-ink-70); cursor: pointer; white-space: nowrap; }
.dz-views button:hover { color: var(--ci-ink); }
.dz-views [aria-pressed="true"] { background: var(--dz-act); color: #fff; }
.dz-lab { position: absolute; left: 0; top: 0; z-index: 1; margin: -15px 0 0 10px; padding: 5px 11px; border-radius: 999px; background: #fff; font-size: 13px; line-height: 18px;
          font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.dz-lab::before { content: ""; position: absolute; left: -14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ci-green); box-shadow: 0 0 0 3px #fff; }
.dz-lab[hidden] { display: none; }
.dz-lab.is-flip { translate: calc(-100% - 20px) 0; }
.dz-lab.is-flip::before { left: auto; right: -14px; }
.dz-caption { position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: calc(100% - 32px); margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(16,26,21,.74);
              color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.dz-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 16px; font-weight: 600; color: var(--ci-ink-70); }
.dz-stage.is-ready .dz-loading { display: none; }
.dz-stage:not(.is-ready) .dz-views, .dz-stage:not(.is-ready) .dz-caption { visibility: hidden; }

/* ---------- the steps ---------- */
.dz-panel { display: flex; flex-direction: column; min-height: 0; background: #fff; border-left: 1px solid var(--dz-line); }
.dz-panel__body { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 28px 24px; outline: none; }
.dz-k { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--dz-act); }
.dz-h { margin: 4px 0 0; font-size: 28px; line-height: 34px; font-weight: 700; outline: none; }
.dz-p { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--ci-ink-70); }
.dz-note { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ci-ink-70); }
.dz-fact { margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--dz-tint); font-size: 15px; line-height: 22px; font-weight: 700; }
.dz-tip { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: #FFF6E5; font-size: 14px; line-height: 20px; }
.dz-chip { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #DDF4E8; color: var(--dz-act); font-size: 12px; line-height: 16px; font-weight: 700; vertical-align: 2px; }

.dz-rooms { display: grid; gap: 8px; margin-top: 20px; }
.dz-rooms button { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 14px; border: 0; border-radius: 16px;
                   background: var(--dz-tint); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background-color .2s; }
.dz-rooms button:hover { box-shadow: inset 0 0 0 1.5px rgba(0,170,118,.45); }
.dz-rooms [aria-checked="true"] { background: #EAF8F0; box-shadow: inset 0 0 0 2px var(--ci-green); }
.dz-rooms__ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--ci-green); }
.dz-rooms b { font-size: 16px; line-height: 22px; }
.dz-rooms small { font-size: 13px; line-height: 18px; color: var(--ci-ink-70); }

.dz-field { display: block; margin-top: 22px; }
.dz-field__l { display: block; font-size: 15px; line-height: 21px; font-weight: 700; }
.dz-field--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dz-line); margin-top: 8px; }
.dz-field--row > span:first-child { min-width: 0; }
.dz-range { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.dz-range input[type="range"] { flex: 1; accent-color: #00734F; height: 44px; }
.dz-num { position: relative; flex: none; width: 92px; }
.dz-num input { width: 100%; height: 40px; padding: 0 30px 0 12px; border: 1px solid var(--dz-line); border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; text-align: right; }
.dz-num input:focus { outline: 2px solid var(--ci-green); outline-offset: 1px; }
.dz-num i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--ci-ink-70); }

.dz-seg { display: flex; gap: 4px; margin-top: 8px; padding: 4px; border-radius: 999px; background: var(--dz-tint); }
.dz-seg button { flex: 1; height: 38px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 600; color: var(--ci-ink-70); cursor: pointer; }
.dz-seg [aria-checked="true"] { background: #fff; color: var(--ci-ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.18), inset 0 0 0 1.5px var(--ci-green); }
.dz-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.dz-sizes button { position: relative; display: grid; gap: 2px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--dz-tint); text-align: left; cursor: pointer;
                   box-shadow: inset 0 0 0 1.5px transparent; }
.dz-sizes button:hover { box-shadow: inset 0 0 0 1.5px rgba(0,170,118,.45); }
.dz-sizes [aria-checked="true"] { background: #EAF8F0; box-shadow: inset 0 0 0 2px var(--ci-green); }
.dz-sizes b { font-size: 22px; line-height: 26px; }
.dz-sizes small { font-size: 13px; line-height: 18px; color: var(--ci-ink-70); }
.dz-sizes .dz-chip { position: absolute; top: 10px; right: 10px; margin: 0; }

.dz-toggle { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--dz-tint); cursor: pointer; }
.dz-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.dz-toggle__ui { position: relative; width: 46px; height: 28px; margin-top: 2px; border-radius: 999px; background: #C9D1CD; transition: background-color .2s; }
.dz-toggle__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.dz-toggle input:checked + .dz-toggle__ui { background: var(--ci-green); }
.dz-toggle input:checked + .dz-toggle__ui::after { transform: translateX(18px); }
.dz-toggle input:focus-visible + .dz-toggle__ui { outline: 2px solid var(--ci-green); outline-offset: 2px; }

.dz-stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 4px; border-radius: 999px; background: var(--dz-tint); }
.dz-stepper button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; font-weight: 600; cursor: pointer; box-shadow: 0 1px 4px -1px rgba(0,0,0,.2); }
.dz-stepper button:hover { color: var(--dz-act); }
.dz-stepper output { min-width: 30px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dz-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ci-ink-70); }
.dz-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.dz-sw--s1 { background: rgba(0,170,118,.45); box-shadow: inset 0 0 0 1.5px #00AA76; }
.dz-sw--t1 { background: rgba(59,130,246,.35); box-shadow: inset 0 0 0 1.5px #3B82F6; margin-left: 6px; }
.dz-sw--mic { background: rgba(245,158,11,.35); box-shadow: inset 0 0 0 1.5px #F59E0B; }

.dz-list { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.dz-list th, .dz-list td { padding: 11px 8px; border-bottom: 1px solid var(--dz-line); text-align: left; vertical-align: top; }
.dz-list thead th { font-size: 12px; font-weight: 700; color: var(--ci-ink-70); background: var(--dz-tint); }
.dz-list tbody th { font-weight: 700; }
.dz-list td:last-child, .dz-list th:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dz-acts { display: grid; gap: 8px; margin-top: 20px; }
.dz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--ci-green);
          color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.dz-btn:hover { background: var(--ci-green-dark); }
.dz-btn--line { background: #fff; color: var(--dz-act); box-shadow: inset 0 0 0 1.5px var(--dz-line); }
.dz-btn--line:hover { background: var(--dz-tint); }

.dz-panel__foot { padding: 14px 20px 16px; border-top: 1px solid var(--dz-line); }
.dz-sum { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--ci-ink-70); }
.dz-sum b { color: var(--ci-ink); }
.dz-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.dz-nav button { height: 48px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 600; cursor: pointer; }
.dz-back { background: var(--dz-tint); }
.dz-back:disabled { opacity: .45; cursor: default; }
.dz-next { background: #00734F; color: #fff !important; }
.dz-next:hover { background: #005C3F; }

@media (max-width: 860px) {
  /* align-content: start — while the panel is still empty the grid would otherwise stretch the
     top bar to fill the screen (239px, then back to 117px: a layout jump on tablets) */
  .dz { height: auto; min-height: calc(100vh / var(--zoom, 1)); grid-template-rows: auto auto; align-content: start; }
  .dz-top { position: sticky; top: 0; z-index: 5; flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
  .dz-brand span { display: none; }
  .dz-steps { order: 3; flex-basis: 100%; margin: 0; }
  .dz-quote { margin-left: auto; height: 36px; padding: 0 16px; font-size: 14px; }
  .dz-main { grid-template-columns: minmax(0, 1fr); }
  .dz-stage { height: calc(52vh / var(--zoom, 1)); height: calc(52svh / var(--zoom, 1)); touch-action: pan-y; }
  .dz-views { top: 10px; left: 10px; right: 10px; justify-content: space-between; }
  .dz-views button { flex: 1; padding: 0 6px; font-size: 13px; }
  .dz-caption { left: 10px; bottom: 10px; font-size: 13px; border-radius: 14px; }
  .dz-panel { border-left: 0; }
  .dz-panel__body { overflow: visible; padding: 22px 16px 18px; }
  .dz-panel__foot { position: sticky; bottom: 0; z-index: 3; background: #fff; box-shadow: 0 -10px 24px -18px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: reduce) { .dz * { transition: none !important; } }

/* page title for screen readers only */
.dz-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* touch screens: 44 px tap targets */
@media (hover: none), (max-width: 1100px) {
  .dz-quote { height: 44px; }
  .dz-steps button, .dz-views button, .dz-seg button { min-height: 44px; }
  .dz-num input { height: 44px; }
}
