[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: 64px 18px;
  background: rgba(0, 0, 0, 0.58);
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  border: 3px solid #cbe2f6;
  border-radius: 10px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.modal-card__close {
  position: absolute;
  right: -12px;
  top: -12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #111936;
  cursor: pointer;
}

.modal-card__close::before,
.modal-card__close::after {
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  background: #ffffff;
  content: "";
}

.modal-card__close::before {
  transform: rotate(45deg);
}

.modal-card__close::after {
  transform: rotate(-45deg);
}

.modal-card__progress {
  overflow: hidden;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eeeeee;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 22px;
}

.modal-card__progress::before {
  display: block;
  width: 54%;
  background: #f73936;
  content: "";
}

.product-stack--modal {
  margin: 0 auto;
}

.modal-card h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.modal-card__price {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 22px;
  font-weight: 900;
}

.modal-card__field {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  color: #394761;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.modal-card__field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c8d5e8;
  border-radius: 5px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
}
