/* Exit popup. Self-contained so it can move into the WordPress footer later. */
#closing_modal {
  z-index: 2100;
}
body:has(#closing_modal.show) .modal-backdrop {
  z-index: 2090;
}
#closing_modal .modal-dialog {
  display: flex;
  align-items: center;
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  height: auto;
  min-height: calc(100% - 1rem);
  margin: .5rem auto;
}
#closing_modal .modal-body {
  padding: 0;
}
#closing_modal .modal-content {
  margin: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
#closing_modal .My-Toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
}
#closing_modal .toast:not(.show) {
  display: none;
}
#closing_modal .My-Toast .toast-header {
  color: #09090B;
  font-size: 22px;
  background-color: #FFF;
  font-weight: 600;
  padding: 10px 16px;
}
#closing_modal .My-Toast .toast-body {
  color: #09090B;
  background-color: #FFF;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 16px;
  font-size: 16px;
  line-height: 24px;
}
#closing_modal .My-toast-close {
  font-size: 14px;
  box-shadow: none;
  width: 13px;
  height: 13px;
  background-size: 13px 13px;
}
#closing_modal .My-toast-close:hover {
  box-shadow: none;
}
#closing_modal .MY-innertoast {
  width: 450px;
}
#closing_modal .toast-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  z-index: 1040;
  border-radius: 12px;
  display: none;
}
#closing_modal .cm-exit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: 100%;
  color: #0B0B0C;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
#closing_modal .cm-exit-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 11, 12, .06);
  color: #0B0B0C;
  cursor: pointer;
}
#closing_modal .cm-exit-x svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
#closing_modal .cm-exit-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  background: #0B0B0C;
  color: #fff;
  overflow: hidden;
}
#closing_modal .cm-exit-story::before {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -220px;
  z-index: -1;
  width: 560px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 123, 255, .45), rgba(123, 92, 255, .15) 60%, transparent);
}
#closing_modal .cm-exit-story h3 {
  margin: 4px 0 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.045em;
}
#closing_modal .cm-exit-story h3 em {
  font-style: normal;
  background: linear-gradient(95deg, #8FB4FF, #C3A8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#closing_modal .cm-exit-story > p {
  margin: 14px 0 0;
  max-width: 40ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
}
#closing_modal .cm-exit-tl {
  margin-top: auto;
  padding-top: 28px;
}
#closing_modal .cm-exit-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 16px;
}
#closing_modal .cm-exit-who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #0B0B0C, 0 0 0 3.5px rgba(255, 255, 255, .25);
}
#closing_modal .cm-exit-who div { flex: 1; min-width: 0; }
#closing_modal .cm-exit-who b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
#closing_modal .cm-exit-who small {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
}
#closing_modal .cm-exit-who > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(125, 219, 163, .14);
  color: #7DDBA3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
#closing_modal .cm-exit-who > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
#closing_modal .cm-exit-tl ul {
  display: grid;
  margin: 0;
  padding: 6px 14px;
  list-style: none;
  border-radius: 16px;
  background: #fff;
}
#closing_modal .cm-exit-tl li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
#closing_modal .cm-exit-tl li + li { border-top: 1px solid #EFF0F3; }
#closing_modal .cm-exit-tl li i {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--t);
  color: var(--c);
}
#closing_modal .cm-exit-tl li svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#closing_modal .cm-exit-tl li div { flex: 1; min-width: 0; }
#closing_modal .cm-exit-tl li b {
  display: block;
  overflow: hidden;
  color: #0B0B0C;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#closing_modal .cm-exit-tl li small {
  display: block;
  margin-top: 1px;
  color: #6B6B72;
  font-size: 12.5px;
  line-height: 1.35;
}
#closing_modal .cm-exit-tl li > span {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--t);
  color: var(--c);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
#closing_modal .cm-exit-form { padding: 44px 40px 36px; }
#closing_modal .cm-exit-k {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #EEF3FF;
  color: #2F5FD0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
#closing_modal .cm-exit-form h4 {
  margin: 14px 0 0;
  color: #0B0B0C;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
}
#closing_modal .cm-exit-intro p {
  margin: 8px 0 0;
  color: #3A3A3E;
  font-size: 15px;
  line-height: 1.5;
}
#closing_modal .cm-exit-fields {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
#closing_modal .cm-exit-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  color: #3A3A3E;
  font-size: 12.5px;
  font-weight: 500;
}
#closing_modal .cm-exit-fields input:not([type="hidden"]) {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #F5F6F8;
  box-shadow: inset 0 0 0 1px #E6E6E2;
  color: #0B0B0C;
  font: inherit;
  font-size: 15px;
  outline: 0;
}
#closing_modal .cm-exit-fields input:not([type="hidden"]):focus {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #3B7BFF, 0 0 0 4px rgba(59, 123, 255, .12);
}
#closing_modal .cm-exit-fields input:not([type="hidden"])::placeholder { color: #9A9AA3; }
#closing_modal .cm-exit-x:focus-visible,
#closing_modal .cm-exit-fields button:focus-visible,
#closing_modal .cm-exit-note a:focus-visible {
  outline: 2px solid #3B7BFF;
  outline-offset: 3px;
}
#closing_modal .cm-exit-fields .error-message { line-height: 1.4; }
#closing_modal #dvcaptcha { min-width: 0; }
#closing_modal #captchaValidationError {
  display: none;
  margin-top: 6px;
  color: #C62828;
  font-size: 12px;
  line-height: 1.4;
}
#closing_modal .cm-exit-fields button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  margin-top: 6px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #0B0B0C;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
#closing_modal .cm-exit-fields button:hover { background: #26262B; }
#closing_modal .cm-exit-fields button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#closing_modal .cm-exit-note {
  margin: 12px 0 0;
  color: #6B6B72;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
#closing_modal .cm-exit-note a { color: #0B0B0C; }
@media (max-width: 860px) {
  #closing_modal .cm-exit { grid-template-columns: 1fr; }
  #closing_modal .cm-exit-x {
    top: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
  }
}
@media (max-width: 560px) {
  #closing_modal .cm-exit-story,
  #closing_modal .cm-exit-form { padding: 28px 22px; }
  #closing_modal .cm-exit-story h3 { font-size: 30px; }
  #closing_modal .cm-exit-form { padding-top: 56px; }
  #closing_modal #dvcaptcha { height: auto; overflow: visible; }
  #closing_modal .g-recaptcha {
    transform: scale(.82);
    transform-origin: left top;
    margin-bottom: -14px;
  }
}
@media (max-width: 550px) {
  #closing_modal .MY-innertoast { width: 100%; }
}
