.age-modal {
  position: fixed;
  visibility: hidden;
  z-index: -1;
  margin: 0 auto;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  border-radius: 16px;
  width: 550px;
  max-width: 95%;
}

.age-modal[open] {
  opacity: 1;
  visibility: visible;
  z-index: var(--z-index-modal-main);
}

.age-modal__image {
  padding: 40px 20px 10px 20px;
  width: 100%;
  max-width: 450px;
}

.age-modal__text {
  color: #000;
  font-feature-settings: "clig" off, "liga" off;
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
  line-height: 112%; /* 31.36px */
  letter-spacing: -1.12px;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}

.age-modal__state {
  border: 0;
  color: #000;
  font-feature-settings: "clig" off, "liga" off;
  font-size: 25px;
  font-style: normal;
  font-weight: 800;
  line-height: 112%; /* 31.36px */
  letter-spacing: -1.12px;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin: 10px auto;
  padding: 5px;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}

.age-modal__state::-ms-expand {
  display: none;
}

.age-modal__state:focus-visible,
.age-modal__content:focus-visible {
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
}

hr {
  border-top: 1px solid #eceee9;
  margin: 20px 0 0 0;
}

.age-modal__submit {
  border-radius: 100px;
  background-color: #da291c;
  border: 0;
  width: calc(100% - 40px);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 132%;
  margin: 20px;
}

.age-modal__submit:after,
.age-modal__submit:before {
  display: none;
}

/* style for overlay */
.age-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-index-modal-overlay);
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
