.exit-offer-modal,
.exit-offer-modal * {
  box-sizing: border-box;
}

.exit-offer-modal {
  --exit-offer-modal__blue: #0072bc;
  --exit-offer-modal__blue-dark: #07345a;
  --exit-offer-modal__red: #e31e24;
  --exit-offer-modal__orange: #ff7a00;
  --exit-offer-modal__orange-dark: #eb6f00;
  --exit-offer-modal__text: #172033;
  --exit-offer-modal__muted: #667085;
  --exit-offer-modal__border: #e7edf4;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: inherit;
}

.exit-offer-modal.is-active {
  display: flex;
}

.exit-offer-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(5px);
  animation: exitOfferModalFadeIn 0.22s ease forwards;
}

.exit-offer-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  animation: exitOfferModalDialogIn 0.28s ease forwards;
}

.exit-offer-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--exit-offer-modal__blue) 0%,
    var(--exit-offer-modal__red) 48%,
    var(--exit-offer-modal__orange) 100%
  );
}

.exit-offer-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f2f5f8;
  color: #596579;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.exit-offer-modal__close:hover {
  background: #e8eef4;
  color: #172033;
  transform: rotate(90deg);
}

.exit-offer-modal__close:focus-visible,
.exit-offer-modal__button:focus-visible,
.exit-offer-modal__decline:focus-visible {
  outline: 3px solid rgba(0, 114, 188, 0.25);
  outline-offset: 2px;
}

.exit-offer-modal__content {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 390px;
}

.exit-offer-modal__visual {
  position: relative;
  overflow: hidden;
  padding: 42px 28px 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(145deg, #0072bc 0%, #064b7b 100%);
}

.exit-offer-modal__visual::before {
  content: "";
  position: absolute;
  right: -64px;
  top: -64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.exit-offer-modal__visual::after {
  content: "";
  position: absolute;
  left: -56px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.34);
}

.exit-offer-modal__discount {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin-bottom: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(145deg, #ff8a1f 0%, #e31e24 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 20px 42px rgba(227, 30, 36, 0.28);
  transform: rotate(-4deg);
}

.exit-offer-modal__discount-value {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.exit-offer-modal__discount-label {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.exit-offer-modal__features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exit-offer-modal__features li {
  position: relative;
  padding-left: 25px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
}

.exit-offer-modal__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffcf9a;
  font-weight: 900;
}

.exit-offer-modal__body {
  padding: 44px 44px 34px;
}

.exit-offer-modal__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(227, 30, 36, 0.08);
  color: var(--exit-offer-modal__red);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
}

.exit-offer-modal__title {
  margin: 0 0 12px;
  color: var(--exit-offer-modal__text);
  font-size: 31px;
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.exit-offer-modal__subtitle {
  margin: 0 0 12px;
  color: #263449;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 700;
}

.exit-offer-modal__text {
  margin: 0 0 24px;
  color: var(--exit-offer-modal__muted);
  font-size: 15px;
  line-height: 1.58;
}

.exit-offer-modal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 15px 22px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--exit-offer-modal__orange) 0%, var(--exit-offer-modal__orange-dark) 100%);
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(255, 122, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.exit-offer-modal__button:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 20px 38px rgba(255, 122, 0, 0.34);
}

.exit-offer-modal__button::after {
  content: "→";
  margin-left: 10px;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.exit-offer-modal__button:hover::after {
  transform: translateX(3px);
}

.exit-offer-modal__note {
  margin-top: 12px;
  color: #7a8597;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.exit-offer-modal__decline {
  display: block;
  margin: 16px auto 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #8a94a6;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.exit-offer-modal__decline:hover {
  color: #4e5a6d;
}

body.exit-offer-modal__body-lock {
  overflow: hidden;
}

@keyframes exitOfferModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes exitOfferModalDialogIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .exit-offer-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .exit-offer-modal__dialog {
    max-width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .exit-offer-modal__content {
    display: block;
    min-height: 0;
  }

  .exit-offer-modal__visual {
    display: none;
  }

  .exit-offer-modal__body {
    padding: 38px 22px 24px;
  }

  .exit-offer-modal__title {
    font-size: 25px;
    line-height: 1.18;
  }

  .exit-offer-modal__subtitle {
    font-size: 16px;
  }

  .exit-offer-modal__text {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .exit-offer-modal__button {
    min-height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 374px) {
  .exit-offer-modal {
    padding: 8px;
  }

  .exit-offer-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .exit-offer-modal__title {
    font-size: 23px;
  }
}