.rdd-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.rdd-popup.is-open:not([hidden]) {
  display: flex !important;
}

.rdd-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(56, 0, 0, 0.55);
  cursor: pointer;
}

.rdd-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #f5f5ef;
  border-radius: 24px;
  padding: 40px 36px 36px;
  box-shadow: 0 24px 60px rgba(56, 0, 0, 0.18);
  animation: rdd-popup-in 0.35s ease-out;
}

.rdd-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #65544e;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rdd-popup__close:hover,
.rdd-popup__close:focus-visible {
  color: #d21143;
}

.rdd-popup__content {
  text-align: center;
}

.rdd-popup__eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66a1bd;
}

.rdd-popup__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  color: #380000;
}

.rdd-popup__message {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  color: #65544e;
}

.rdd-popup__cta {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  border-radius: 40px;
  padding: 12px 36px;
  text-decoration: none;
  background-color: #66a1bd;
  color: #fff !important;
}

.rdd-popup__cta:hover,
.rdd-popup__cta:focus-visible {
  background-color: #d21143;
  text-decoration: none;
}

@keyframes rdd-popup-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .rdd-popup {
    padding: 16px;
  }

  .rdd-popup__dialog {
    padding: 36px 22px 28px;
    border-radius: 18px;
  }

  .rdd-popup__cta {
    width: 100%;
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
  }
}
