.mkt-popup {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  font-family: var(--hc-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.mkt-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, .42);
  opacity: 0;
  transition: opacity .22s ease;
}

.mkt-popup__panel {
  position: absolute;
  display: grid;
  gap: 16px;
  width: min(440px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 32px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(26, 23, 20, .10);
  border-radius: 28px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 32px 90px -48px rgba(26, 23, 20, .62), 0 1px 0 rgba(255,255,255,.9) inset;
  color: var(--hc-ink, #1a1714);
  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}

.mkt-popup.is-open .mkt-popup__backdrop { opacity: 1; }
.mkt-popup.is-open .mkt-popup__panel { opacity: 1; transform: translateY(0) scale(1); }
.mkt-popup.is-closing .mkt-popup__panel { opacity: 0; transform: translateY(10px) scale(.98); }

.mkt-popup--modal .mkt-popup__panel,
.mkt-popup--fullscreen .mkt-popup__panel {
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 14px)) scale(.98);
}

.mkt-popup--modal.is-open .mkt-popup__panel,
.mkt-popup--fullscreen.is-open .mkt-popup__panel {
  transform: translate(-50%, -50%) scale(1);
}

.mkt-popup--slide-in .mkt-popup__panel {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
}

.mkt-popup--banner-top .mkt-popup__panel,
.mkt-popup--banner-bottom .mkt-popup__panel {
  left: 50%;
  width: min(760px, calc(100vw - 32px));
}

.mkt-popup--banner-top .mkt-popup__panel { top: max(18px, env(safe-area-inset-top)); transform: translate(-50%, -10px); }
.mkt-popup--banner-bottom .mkt-popup__panel { bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 10px); }
.mkt-popup--banner-top.is-open .mkt-popup__panel,
.mkt-popup--banner-bottom.is-open .mkt-popup__panel { transform: translate(-50%, 0); }

.mkt-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(26, 23, 20, .06);
  color: inherit;
  cursor: pointer;
}

.mkt-popup__media { min-height: 64px; display: grid; place-items: center; }
.mkt-popup__img { display: block; max-width: 100%; max-height: 210px; object-fit: contain; border-radius: 18px; }
.mkt-popup__orb { width: 64px; height: 64px; border-radius: 999px; background: radial-gradient(circle at 32% 24%, #fff 0, #d4b896 35%, #8b7355 100%); }
.mkt-popup__title { margin: 0 34px 8px 0; font-size: clamp(22px, 4vw, 30px); line-height: 1.12; }
.mkt-popup__content { color: var(--hc-ink-soft, rgba(26,23,20,.7)); line-height: 1.55; }
.mkt-popup__content > :first-child { margin-top: 0; }
.mkt-popup__content > :last-child { margin-bottom: 0; }
.mkt-popup__form { display: grid; gap: 10px; margin-top: 12px; }
.mkt-popup__form input,
.mkt-popup__form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(26, 23, 20, .14);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

@media (max-width: 640px) {
  .mkt-popup__panel {
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 108px - env(safe-area-inset-bottom, 0px));
  }

  .mkt-popup--slide-in .mkt-popup__panel,
  .mkt-popup--banner-bottom .mkt-popup__panel {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
