.wiz-exit {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--ds-olive-deep) 40%, transparent);
  font-family: var(--ds-font-workhorse);
}

.wiz-exit * {
  box-sizing: border-box;
}

.wiz-exit button,
.wiz-exit input {
  font-family: inherit;
}

.wiz-exit[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wiz-exit__card {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 12px 24px 32px;
  background: var(--ds-white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 8px 16px -4px rgba(16, 24, 0, 0.1);
}

.wiz-exit__card::before {
  content: '';
  justify-self: center;
  width: 40px;
  height: 4px;
  border-radius: 100px;
  background: var(--color-divider);
}

.wiz-exit__photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 16px;
}

.wiz-exit__close {
  position: absolute;
  top: 36px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 100px;
  background: var(--ds-white);
  color: var(--ds-olive-deep);
  cursor: pointer;
}

.wiz-exit__script {
  margin: 0;
  font-family: var(--ds-font-script);
  font-size: var(--ds-text-script-xl);
  line-height: 1.1;
  color: var(--ds-olive-dark-1);
}

.wiz-exit__title {
  margin: 12px 0 0;
  font-family: var(--ds-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.22px;
  color: var(--ds-olive-deep);
}

.wiz-exit__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ds-cream-deep);
}

.wiz-exit__form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.wiz-exit__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--color-divider);
  border-radius: 30px;
  background: var(--ds-white);
  font-size: 16px;
  color: var(--ds-olive-deep);
}

.wiz-exit__input[aria-invalid='true'] {
  border-color: var(--ds-error);
}

.wiz-exit__btn {
  min-height: 48px;
  padding: 14px 28px;
  border: 0;
  border-radius: 30px;
  background: var(--ds-terracotta-dark-1);
  color: var(--ds-white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.wiz-exit__btn:hover:not(:disabled) {
  background: var(--ds-terracotta-dark-2);
}

.wiz-exit__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wiz-exit__error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ds-error);
}

.wiz-exit__fine {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: var(--ds-cream-deep);
}

.wiz-exit__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 100px;
  background: #e8f5e9;
  color: var(--ds-olive-deep);
}

.wiz-exit__more {
  display: none;
}

.wiz-exit__actions {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 20px;
}

.wiz-exit__actions .wiz-exit__btn {
  width: 100%;
}

.wiz-exit__link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  color: var(--ds-cream-deep);
  cursor: pointer;
}

.wiz-exit__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .wiz-exit[open] {
    align-items: center;
  }

  .wiz-exit__card {
    grid-template-columns: 360px 1fr;
    gap: 0;
    width: 880px;
    max-width: calc(100% - 32px);
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
  }

  .wiz-exit__card::before {
    display: none;
  }

  .wiz-exit__photo {
    position: absolute;
    inset: 0 auto 0 0;
    width: 360px;
    height: 100%;
    border-radius: 0;
    object-position: center;
  }

  .wiz-exit__close {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: none;
  }

  .wiz-exit__body {
    grid-column: 2;
    align-self: center;
    padding: 64px 48px 48px;
  }

  .wiz-exit__title {
    margin-top: 16px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.32px;
  }

  .wiz-exit__text {
    font-size: 16px;
    line-height: 24px;
  }

  .wiz-exit__more {
    display: inline;
  }

  .wiz-exit__badge {
    margin: 0 0 16px;
  }

  .wiz-exit__form {
    grid-template-columns: 1fr auto;
    margin-top: 24px;
  }

  .wiz-exit__input {
    min-height: 55px;
  }

  .wiz-exit__btn {
    min-height: 55px;
    font-size: 16px;
  }

  .wiz-exit__fine {
    text-align: left;
  }

  .wiz-exit__actions {
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
    align-items: center;
  }

  .wiz-exit__actions .wiz-exit__btn {
    width: auto;
  }
}
