.retention-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.retention-popup[hidden] {
  display: none !important;
}

.retention-popup__panel {
  position: relative;
  width: min(600px, calc(100vw - 32px));
  padding: 30px;
  background: linear-gradient(246deg, #c4d4f8 1%, #f7fbfe 52%, #e9f2ff 100%);
  border-radius: 8px;
}

.retention-popup__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.retention-popup__close:hover {
  background: #f0f0f0;
  color: #333;
}

.retention-popup__header {
  display: flex;
  align-items: center;
}

.retention-popup__logo {
  height: 30px;
  width: auto;
  display: block;
}

.retention-popup__content {
  display: flex;
  gap: 60px;
}

.retention-popup__left {
  padding-top: 24px;
  min-width: 0;
  flex: 1;
}

.retention-popup__title {
  font-size: 28px;
  font-weight: 600;
  color: #191717;
  margin-bottom: 12px;
  line-height: 1.3;
}

.retention-popup__highlight {
  color: #ff9900;
}

.retention-popup__desc {
  font-size: 14px;
  color: #4d4d4d;
  line-height: 1.6;
  margin-bottom: 46px;
  max-width: 340px;
}

.retention-popup__amount {
  color: #f59e0b;
  font-weight: 600;
}

.retention-popup__illustration {
  width: 107px;
  height: 143px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retention-popup__illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.retention-popup__actions {
  display: flex;
  gap: 12px;
  height: 40px;
}

.retention-popup__btn {
  flex: 1;
  height: 40px;
  margin: 0;
  border: 0;
  padding: 0 16px;
  border-radius: 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.retention-popup__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.retention-popup__btn--primary {
  color: #fff;
  background: #277eff;
}

.retention-popup__btn--primary:hover:not(:disabled) {
  background: #2070e5;
}

.retention-popup__btn--outline {
  border: 1px solid #ebebeb;
  color: #191717;
  background: #fff;
}

.retention-popup__btn--outline:hover:not(:disabled) {
  background: #f7f6f5;
}

@media (max-width: 640px) {
  .retention-popup__panel {
    padding: 24px 20px;
  }

  .retention-popup__content {
    gap: 16px;
  }

  .retention-popup__title {
    font-size: 22px;
  }

  .retention-popup__desc {
    margin-bottom: 24px;
    max-width: none;
  }

  .retention-popup__illustration {
    width: 80px;
    height: 107px;
  }

  .retention-popup__actions {
    height: auto;
    flex-direction: column;
  }

  .retention-popup__btn {
    width: 100%;
  }
}
