.rm-exit-capture {
  width: min(890px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 100px #0c26285e;
}
.rm-exit-capture::backdrop {
  background: color-mix(in srgb, var(--deep) 68%, transparent);
  backdrop-filter: blur(3px);
}
html:has(.rm-exit-capture[open]) { overflow: hidden; }

.rm-exit-capture__layout { display: grid; grid-template-columns: 39% 61%; }
.rm-exit-capture__portrait { position: relative; margin: 0; overflow: hidden; background: var(--mint); }
.rm-exit-capture__portrait img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
}
.rm-exit-capture__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0f3435d9, transparent 42%);
  pointer-events: none;
}
.rm-exit-capture__portrait figcaption {
  position: absolute;
  z-index: 1;
  bottom: 25px;
  left: 25px;
  color: var(--white);
  font-size: 19px;
  font-weight: 750;
}
.rm-exit-capture__content { padding: 38px 48px 21px; }
.rm-exit-capture__availability {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
}
.rm-exit-capture__availability::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--mint);
}
#rm-exit-capture-title {
  margin: 14px 0 15px;
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.04;
  letter-spacing: -.062em;
  text-wrap: initial;
}
#rm-exit-capture-title:focus { outline: none; }
#rm-exit-capture-description { margin: 0; color: var(--ink-2); line-height: 1.5; }

.rm-exit-capture .rm-exit-capture__form { display: block; padding: 0; margin: 21px 0 0; }
.rm-exit-capture__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rm-exit-capture__fields label { display: grid; min-width: 0; gap: 6px; font-size: 12px; font-weight: 700; }
.rm-exit-capture__fields small { color: var(--ink-3); font-weight: 500; }
.rm-exit-capture__fields input {
  width: 100%;
  min-height: 49px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}
.rm-exit-capture__consent { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.rm-exit-capture__consent input { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--brand-700); }
.rm-exit-capture__form .form__ok { margin-top: 12px; font-size: 13px; }
.rm-exit-capture__form.is-sent button[type="submit"] { display: none; }

.rm-exit-capture__dismiss { position: absolute; z-index: 2; top: 12px; right: 12px; }
.rm-exit-capture__dismiss button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}
.rm-exit-capture__later button { min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--brand-700); text-decoration: underline; text-underline-offset: 4px; font-size: 13px; font-weight: 600; }
.rm-exit-capture__dismiss button:hover { background: var(--mist); }

@media (max-width: 650px) {
  .rm-exit-capture { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 19px; }
  .rm-exit-capture__layout { display: block; }
  .rm-exit-capture__portrait { height: clamp(110px, 23dvh, 185px); }
  .rm-exit-capture__portrait img { object-position: 50% 5%; }
  .rm-exit-capture__portrait::after { background: linear-gradient(0deg, #0f3435b5, transparent 32%); }
  .rm-exit-capture__portrait figcaption { bottom: 12px; left: 19px; font-size: 15px; }
  .rm-exit-capture__content { padding: 17px 19px 8px; }
  .rm-exit-capture__availability { font-size: 11px; }
  #rm-exit-capture-title { margin: 10px 0; font-size: clamp(26px, 8vw, 36px); }
  #rm-exit-capture-description { font-size: 14px; }
  .rm-exit-capture .rm-exit-capture__form { margin-top: 14px; }
  .rm-exit-capture__fields { gap: 8px; }
  .rm-exit-capture__fields input { min-height: 44px; padding: 0 8px; }
  .rm-exit-capture__consent { font-size: 11px; }
  .rm-exit-capture__dismiss { top: 8px; right: 8px; }
}
@media (max-width: 350px) and (max-height: 620px) {
  .rm-exit-capture__portrait { height: 103px; }
  .rm-exit-capture__content { padding: 13px 14px 5px; }
  #rm-exit-capture-title { margin: 7px 0; font-size: 25px; }
  #rm-exit-capture-description { font-size: 13px; }
}
