.soho-sub-popup {
  position: relative;
  z-index: 100000;
}

.soho-sub-popup__overlay[hidden],
.soho-sub-popup__preview-trigger[hidden] {
  display: none !important;
}

.soho-sub-popup__overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 44px);
  background: rgb(from var(--soho-popup-overlay) r g b / var(--soho-popup-overlay-opacity));
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 240ms ease;
  overscroll-behavior: contain;
}

.soho-sub-popup__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 238, 190, 0.13), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(158, 37, 54, 0.16), transparent 28%);
}

.soho-sub-popup.is-open .soho-sub-popup__overlay {
  opacity: 1;
  visibility: visible;
}

.soho-sub-popup__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  width: min(980px, 94vw);
  min-height: 560px;
  max-height: min(720px, 90vh);
  overflow: hidden;
  color: var(--soho-popup-text);
  background: var(--soho-popup-panel);
  border: 1px solid color-mix(in srgb, var(--soho-popup-accent) 52%, transparent);
  border-radius: 4px;
  box-shadow: 0 28px 90px rgba(15, 3, 7, 0.42);
  transform: translateY(20px) scale(0.985);
  transition: transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1);
  isolation: isolate;
}

.soho-sub-popup.is-open .soho-sub-popup__dialog {
  transform: translateY(0) scale(1);
}

.soho-sub-popup__dialog::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 5;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--soho-popup-accent) 34%, transparent);
}

.soho-sub-popup__media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #2a1719;
}

.soho-sub-popup__image,
.soho-sub-popup__image responsive-image,
.soho-sub-popup__image .f-image {
  width: 100%;
  height: 100%;
}

.soho-sub-popup__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.soho-sub-popup__image--desktop img {
  object-position: 40% 50%;
}

.soho-sub-popup__image--mobile {
  display: none;
}

.soho-sub-popup__image-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 6, 10, 0.08) 65%, rgba(31, 8, 13, 0.42) 100%),
    linear-gradient(0deg, rgba(23, 8, 9, 0.22), transparent 44%);
  pointer-events: none;
}

.soho-sub-popup__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(54px, 6vw, 78px) clamp(38px, 5.5vw, 72px) clamp(40px, 5vw, 62px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--soho-popup-accent) 16%, transparent), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--soho-popup-panel) 95%, white), var(--soho-popup-panel));
}

.soho-sub-popup__content::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 30px;
  left: 30px;
  height: 1px;
  background:
    radial-gradient(circle at 8px 50%, transparent 0 4px, var(--soho-popup-accent) 5px 6px, transparent 7px),
    linear-gradient(90deg, var(--soho-popup-accent), color-mix(in srgb, var(--soho-popup-accent) 24%, transparent) 70%, transparent);
  opacity: 0.62;
}

.soho-sub-popup__close {
  position: absolute;
  z-index: 8;
  top: 22px;
  right: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--soho-popup-heading);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.soho-sub-popup__close:hover {
  background: color-mix(in srgb, var(--soho-popup-accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--soho-popup-accent) 34%, transparent);
  transform: rotate(4deg);
}

.soho-sub-popup__close:focus {
  outline: 0;
}

.soho-sub-popup__close:focus-visible {
  border-color: color-mix(in srgb, var(--soho-popup-accent) 60%, transparent);
  outline: 2px solid color-mix(in srgb, var(--soho-popup-accent) 62%, transparent);
  outline-offset: 2px;
}

.soho-sub-popup__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.soho-sub-popup__ornament {
  width: 42px;
  height: 60px;
  margin-bottom: 22px;
  overflow: visible;
}

.soho-sub-popup__ornament path,
.soho-sub-popup__ornament circle {
  fill: none;
  stroke: var(--soho-popup-accent);
  stroke-width: 1.4;
}

.soho-sub-popup__ornament circle {
  fill: color-mix(in srgb, var(--soho-popup-accent) 12%, transparent);
}

.soho-sub-popup__ornament .soho-sub-popup__ornament-cap {
  fill: var(--soho-popup-accent);
  stroke: none;
}

.soho-sub-popup__ornament .soho-sub-popup__ornament-shine {
  opacity: 0.68;
}

.soho-sub-popup__ornament .soho-sub-popup__ornament-star {
  fill: var(--soho-popup-accent);
  stroke: none;
}

.soho-sub-popup__eyebrow {
  margin: 0 0 15px;
  color: color-mix(in srgb, var(--soho-popup-heading) 72%, var(--soho-popup-accent));
  font-family: var(--font-stack-body, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.soho-sub-popup__title {
  max-width: 9.5em;
  margin: 0;
  color: var(--soho-popup-heading) !important;
  font-family: var(--font-stack-header, Georgia, serif);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.soho-sub-popup__copy {
  max-width: 36em;
  margin-top: 22px;
  color: var(--soho-popup-text);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}

.soho-sub-popup__copy p {
  margin: 0;
}

.soho-sub-popup__form {
  display: block;
  width: 100%;
  margin-top: 30px;
}

.soho-sub-popup__form-body {
  width: 100%;
}

.soho-sub-popup__field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--soho-popup-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.soho-sub-popup__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.soho-sub-popup__input {
  min-width: 0;
  height: 52px;
  padding: 0 17px;
  color: var(--soho-popup-heading);
  background: var(--soho-popup-field) !important;
  border: 1px solid var(--soho-popup-border) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-size: 15px;
}

.soho-sub-popup__input::placeholder {
  color: color-mix(in srgb, var(--soho-popup-text) 62%, transparent);
}

.soho-sub-popup__input:focus {
  border-color: var(--soho-popup-accent) !important;
  outline: 2px solid color-mix(in srgb, var(--soho-popup-accent) 35%, transparent);
  outline-offset: 2px;
}

.soho-sub-popup__submit {
  display: inline-flex;
  min-height: 52px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--soho-popup-button-text);
  background: var(--soho-popup-button);
  border: 1px solid var(--soho-popup-button);
  border-radius: 2px;
  font-family: var(--font-stack-body, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
}

.soho-sub-popup__submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.soho-sub-popup__submit[aria-busy="true"] {
  cursor: wait;
  opacity: 0.76;
  transform: none;
}

.soho-sub-popup__submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.soho-sub-popup__privacy {
  margin: 12px 0 0;
  color: color-mix(in srgb, var(--soho-popup-text) 75%, transparent);
  font-size: 12px;
  line-height: 1.55;
}

.soho-sub-popup__decline {
  align-self: flex-start;
  margin-top: 20px;
  padding: 3px 0;
  color: color-mix(in srgb, var(--soho-popup-heading) 78%, transparent);
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--soho-popup-accent) 46%, transparent);
  font-size: 12px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.soho-sub-popup__decline:hover {
  color: var(--soho-popup-heading);
  border-bottom-color: var(--soho-popup-heading);
}

.soho-sub-popup .notification.warning,
.soho-sub-popup .notification.success {
  display: none;
  width: 100%;
  margin: 0 0 16px;
  padding: 13px 14px;
  gap: 10px;
  align-items: flex-start;
  color: var(--soho-popup-heading);
  background: color-mix(in srgb, var(--soho-popup-accent) 12%, var(--soho-popup-panel));
  border: 1px solid color-mix(in srgb, var(--soho-popup-accent) 42%, var(--soho-popup-border));
  border-radius: 2px;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.55;
}

.soho-sub-popup .notification.warning.show,
.soho-sub-popup .notification.success.show {
  display: flex;
}

.soho-sub-popup .notification.warning svg,
.soho-sub-popup .notification.success svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.soho-sub-popup .notification.success {
  margin: 22px 0 0;
  padding: 22px;
  background: color-mix(in srgb, #1c4637 8%, var(--soho-popup-panel));
}

.soho-sub-popup .notification.success .notification--error-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.soho-sub-popup .notification.success strong {
  color: var(--soho-popup-heading);
  font-family: var(--font-stack-header, Georgia, serif);
  font-size: 22px;
  font-weight: 400;
}

.soho-sub-popup.is-success .soho-sub-popup__form-body,
.soho-sub-popup.is-success .soho-sub-popup__privacy,
.soho-sub-popup.is-success .soho-sub-popup__decline,
.soho-sub-popup.is-success .soho-sub-popup__copy {
  display: none;
}

.soho-sub-popup.is-success .soho-sub-popup__intro {
  margin-bottom: 0;
}

.soho-sub-popup.is-success .soho-sub-popup__content {
  justify-content: flex-start;
}

.soho-sub-popup__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.soho-sub-popup__preview-trigger {
  position: fixed;
  z-index: 100001;
  bottom: 22px;
  left: 22px;
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  align-items: center;
  gap: 8px;
  color: #fff9ef;
  background: #5a1422;
  border: 1px solid #d9b76e;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(32, 6, 12, 0.24);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.soho-sub-popup__preview-trigger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.soho-sub-popup--postcard .soho-sub-popup__dialog {
  grid-template-columns: minmax(0, 1fr);
  width: min(760px, 92vw);
  min-height: 550px;
  background: #2a1719;
}

.soho-sub-popup--postcard .soho-sub-popup__media {
  position: absolute;
  inset: 0;
}

.soho-sub-popup--postcard .soho-sub-popup__image-shade {
  background:
    linear-gradient(90deg, rgba(25, 7, 10, 0.08), rgba(25, 7, 10, 0.42)),
    linear-gradient(0deg, rgba(25, 7, 10, 0.48), transparent 60%);
}

.soho-sub-popup--postcard .soho-sub-popup__content {
  width: 57%;
  min-height: 550px;
  margin-left: auto;
  background: color-mix(in srgb, var(--soho-popup-panel) 95%, transparent);
  backdrop-filter: blur(5px);
}

.soho-sub-popup--postcard .soho-sub-popup__field-row {
  grid-template-columns: 1fr;
}

.soho-sub-popup--postcard .soho-sub-popup__submit {
  width: 100%;
}

body.soho-sub-popup-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .soho-sub-popup__overlay {
    padding: 14px;
  }

  .soho-sub-popup__dialog,
  .soho-sub-popup--postcard .soho-sub-popup__dialog {
    grid-template-columns: minmax(0, 1fr);
    width: min(560px, 94vw);
    min-height: 0;
    max-height: min(860px, 92dvh);
    overflow-y: auto;
  }

  .soho-sub-popup__media {
    height: clamp(230px, 34dvh, 330px);
  }

  .soho-sub-popup--postcard .soho-sub-popup__media {
    position: relative;
    inset: auto;
  }

  .soho-sub-popup--postcard .soho-sub-popup__content {
    width: 100%;
    min-height: 0;
    margin-left: 0;
    background: var(--soho-popup-panel);
    backdrop-filter: none;
  }

  .soho-sub-popup__content {
    padding: 42px 28px 30px;
    overflow: visible;
  }

  .soho-sub-popup__content::before {
    top: 21px;
    right: 20px;
    left: 20px;
  }

  .soho-sub-popup__close {
    top: 12px;
    right: 12px;
    background: color-mix(in srgb, var(--soho-popup-panel) 84%, transparent);
  }

  .soho-sub-popup__ornament {
    width: 34px;
    height: 48px;
    margin-bottom: 17px;
  }

  .soho-sub-popup__title {
    font-size: clamp(36px, 10vw, 50px);
  }

  .soho-sub-popup__copy {
    margin-top: 16px;
    font-size: 15px;
  }

  .soho-sub-popup__form {
    margin-top: 23px;
  }
}

@media (max-width: 600px) {
  .soho-sub-popup__overlay {
    padding: 10px;
    align-items: end;
  }

  .soho-sub-popup__dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 4px 4px 0 0;
  }

  .soho-sub-popup__media {
    height: clamp(210px, 31dvh, 280px);
  }

  .soho-sub-popup__image--desktop {
    display: none;
  }

  .soho-sub-popup__image--mobile {
    display: block;
  }

  .soho-sub-popup__content {
    padding: 38px 22px 24px;
  }

  .soho-sub-popup__ornament {
    margin-bottom: 14px;
  }

  .soho-sub-popup__title {
    max-width: 10em;
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .soho-sub-popup__field-row {
    grid-template-columns: 1fr;
  }

  .soho-sub-popup__submit {
    width: 100%;
  }

  .soho-sub-popup__preview-trigger {
    bottom: 14px;
    left: 14px;
  }
}

@media (max-height: 650px) and (min-width: 861px) {
  .soho-sub-popup__dialog {
    min-height: 0;
    max-height: 92vh;
  }

  .soho-sub-popup__content {
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .soho-sub-popup__title {
    font-size: clamp(34px, 3.7vw, 48px);
  }

  .soho-sub-popup__ornament {
    margin-bottom: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soho-sub-popup__overlay,
  .soho-sub-popup__dialog,
  .soho-sub-popup__close,
  .soho-sub-popup__submit {
    transition: none !important;
  }
}

@media (min-width: 768px) {
  .soho-sub-popup[data-mobile-display="false"] .soho-sub-popup__overlay[hidden] {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .soho-sub-popup[data-mobile-display="false"] .soho-sub-popup__overlay,
  .soho-sub-popup[data-mobile-image-enabled="false"] .soho-sub-popup__media {
    display: none !important;
  }
}
