body.popup-active {
  position: fixed;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body.popup-active:after {
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 990;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}

/* ──────────────── POPUPS ──────────────── */
.popup {
  display: none;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  border-radius: 16px;
  color: var(--dark2);
  font-family: Lato;

}

.popup--login.active,
.popup--confirmation.active,
.popup--prize.active,
.popup--checkin.active {
  display: block;
}

.popup--login,
.popup--confirmation {
  width: 520px;
}

.popup__header {
  display: flex;
  justify-content: space-between;
  padding: 32px 32px 24px 32px;
  text-transform: uppercase;
}

.popup__header-text {
  color: var(--dark2);
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.popup__btn-close {
  width: 12px;
  height: 12px;
  background-image: url("../images/icons/close.png");
  cursor: pointer !important;
}

.popup__divider {
  border-top: 1px solid var(--silver-two);
  margin: 0;
}

.popup__content {
  padding: 32px;
      display: flex;
    flex-direction: column;
    gap: 24px;
}

.popup__label--username {
  margin-left: 16px;
}

.popup__input {
  width: 100%;
  height: 48px;
  border-radius: 200px;
  border: 1px solid var(--silver);
  padding-left: 16px;
  font-size: 16px;
  box-sizing: border-box;
}

.popup__input:active {
  border-color: var(--silver);
  box-shadow: 0 0 3px var(--silver);
}

.popup__input--error {
  border-color: var(--system-error);
  background-image: url("../images/icons/error.png");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
}

.popup__error {
  margin-left: 16px;
  color: var(--system-error);
  margin-top: 10px;
}

.popup__footer {
  padding: 24px 32px;
  text-align: right;
}

.popup__btn {
  padding: 16px 32px;
  color: var(--dark2);
  background-color: var(--sandstone);
  font-size: 14px;
  font-weight: 700;
  border-radius: 200px;
  border: none;
  cursor: pointer;
}

.popup__btn[disabled],
.popup__btn:disabled {
  background-color: #D2C5AC;
  color: #BDA475;
  cursor: default;
}

.popup__footer--confirmation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.popup__btn--outlined {
  background: none;
  border: 1px solid var(--sandstone);
  color: var(--sandstone);
}


.popup__content--confirmation {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.popup__availability {
  display: flex;
  color: var(--seaweed-green);
  font-size: 12px;
  font-weight: 700;
}

.popup__description,
.popup__warning {
  color: var(--base-base100, var(--dark2));
  font-size: 14px;
  line-height: 20px;
}

.popup__confirmation-title {
  color: var(--dark2);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.popup__confirmation-points {
  color: var(--base-base80);
  font-size: 16px;
  font-weight: 700;
}


#confirmationPopupImage{
  height: 140px;
  width: 140px;
  place-self: center;
}

.popup--prize,
.popup--checkin{
  width: 720px;
}
.popup__content--checkin{
  text-align: center;
}


.popup__content--checkin,
.popup__content--prize{
  align-items: center;
}

.popup__icon {
  height: 120px;
  width: 120px;
}

.popup__text {
  text-align: center;
}

.popup__checkin-title,
.popup__prize-title {
  color: var(--dark2);

/* Headlines / H5 */
font-family: Lato;
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 24px;
text-transform: uppercase;
margin: 0;

}

.popup__checkin-text,
.popup__prize-text {
color: var(--base-base100, var(--dark2));
margin: 24px 0 0 0;
/* Paragraphs / MD */
font-family: Lato;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 20px;
}

@media (max-width: 559px) {
  .popup--checkin.active,
  .popup--login.active,
  .popup--confirmation.active,
  .popup--prize.active {
    width: 100%;
    inset: auto 0 0 0;
    border-radius: 16px 16px 0 0;
    transform: none;
  }

  .popup__header {
    padding: 32px 16px 16px 16px;
  }

  .popup__content {
    padding: 24px 16px 32px 16px;
  }

  .popup__footer {
    padding: 16px 16px 24px 16px;
  }

  .popup__btn {
    width: 100%;
  }

  .popup__btn--ok {
    padding: 14px 90px;
    font-size: 12px;
  }


  .popup__content--prize{
    width: -webkit-fill-available;
    padding: 24px 16px 32px 14px;
  }
}
