#ageGateOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95));
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

#ageGateOverlay.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
}

#ageGateOverlay .agegate-content {
  background-color: #faf5ed;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  opacity: 0;
}

#ageGateOverlay .agegate-content h2 {
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 38px;
  text-transform: uppercase;
}

#ageGateOverlay.visible .agegate-content {
  opacity: 1;
}

#ageGateOverlay .birth-date-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 1rem 0;
}

#ageGateOverlay .birth-date-inputs input {
  background-color: transparent;
  width: 110px;
  color: #555;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: dotted 1px var(--grey);
  font-size: 3em;
  font-weight: 600;
  text-align: center;
}

#ageGateOverlay .birth-date-inputs #birthYear {
  width: 150px;
}

#ageGateOverlay input::-webkit-outer-spin-button,
#ageGateOverlay input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#ageGateOverlay input[type=number] {
  -moz-appearance: textfield;
}

#ageGateOverlay #ageGateError {
  color: red;
  display: none;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

#ageGateOverlay .info-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
}

#ageGateOverlay #submitAgeGate {
  margin: 30px auto;
  text-transform: uppercase;
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  background-color: var(--bg-color-button);
  font-weight: var(--font-weight);
  color: var(--color-button);
  padding: 0.63rem 2.5rem 0.94rem;
  border-radius: 5.63rem;
  display: block;
  cursor: pointer;
  max-width: max-content;
  text-decoration: none;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

@media screen and (max-width: 767px) {
  #ageGateOverlay .agegate-content {
    width: 95%;
    padding: 1.5rem;
  }

  #ageGateOverlay .agegate-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  #ageGateOverlay .birth-date-inputs {
    gap: 5px;
    margin: 0.5rem 0;
  }

  #ageGateOverlay .birth-date-inputs input {
    width: 90px;
    font-size: 2em;
  }

  #ageGateOverlay .birth-date-inputs #birthYear {
    width: 130px;
  }

  #ageGateOverlay .info-text {
    font-size: 0.8rem;
    margin-top: 0.8rem;
  }

  #ageGateOverlay #submitAgeGate {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.6rem 1rem;
  }
}
