/* Shared frontend primitives. */

.age-check-dob-overlay,
.age-verification-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999998;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.age-check-dob-popup,
.age-verification-popup {
  position: fixed;
  z-index: 999999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(650px, 100vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  background: #fff;
  color: #000;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.age-check-dob-popup p,
.age-verification-popup p {
  margin: 0 0 1.41575em !important;
  font-size: 1em;
  color: #000;
}

.age-check-dob-btn,
.age-verification-btn {
  display: inline-block;
  min-width: 100px;
  max-width: 300px;
  margin: 0 10px;
  padding: 10px 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, #7fc24c 0%, #04a1bf 100%);
  box-shadow: 0 5px 8px 0 rgb(0 0 0 / 10%);
  color: #fff;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  text-align: center;
}

.age-check-dob-btn:focus,
.age-verification-btn:focus,
.age-gate-remember-me-checkbox:focus {
  outline: none;
}

.age-check-dob-btn:hover,
.age-verification-btn:hover {
  background: linear-gradient(135deg, #04a1bf 0%, #7fc24c 100%);
  color: #fff;
}

.age-gate-remember-me {
  display: flex;
}

.age-gate-remember-me-checkbox {
  width: 14px !important;
  margin-top: unset !important;
  margin-right: 5px !important;
}

.waave-compliance-mode {
  padding: 10px 2.5% 0;
}

.waave-compliance-disclaimer-content {
  padding-bottom: 5px;
}

.waave-compliance-disclaimer-hr {
  height: 2px;
  margin: auto;
}

li.product.waave-is-restricted {
  position: relative;
  pointer-events: none;
}

li.product.waave-is-restricted > * {
  filter: blur(20px);
}

li.product.waave-is-restricted::after,
body.waave-is-restricted::before {
  content: "This product cannot be viewed right now.";
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-weight: 700;
}

li.product.waave-is-restricted::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: 16px;
  pointer-events: none;
}

body.waave-is-restricted {
  overflow: hidden;
}

body.waave-is-restricted::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px;
  font-size: 18px;
}

body.waave-is-restricted > *:not(.age-verification-overlay) {
  filter: blur(20px);
  pointer-events: none;
}
