/* XSTORE age + cookie gate; hide PWA share banner */
.pwa-notification,
.pwa-notification.hidden,
.pwa-notification.chromium,
.pwa-notification.other,
.pwa-notification .container,
.pwa-notification .container.active {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -1 !important;
}

/* old cookie bar is replaced by the age gate */
#uni-notification { display: none !important; }

.xs-age-gate,
.xs-age-gate *,
.xs-age-gate *::before,
.xs-age-gate *::after {
  box-sizing: border-box !important;
}

.xs-age-gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px))
           max(16px, env(safe-area-inset-right, 0px))
           max(16px, env(safe-area-inset-bottom, 0px))
           max(16px, env(safe-area-inset-left, 0px));
  background: rgba(12, 10, 14, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.xs-age-gate[hidden] { display: none !important; }
.xs-age-gate__card {
  flex: 0 1 auto;
  width: 100%;
  max-width: 400px;
  min-width: 0 !important;
  margin: auto;
  background: #fff;
  color: #1a1a1f;
  border-radius: 20px;
  padding: 28px 22px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  text-align: center;
  max-height: min(90svh, 90dvh, 100%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.xs-age-gate__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e84080;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.xs-age-gate__title,
.xs-age-gate__text,
.xs-age-gate__cookies {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: none;
}
.xs-age-gate__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}
.xs-age-gate__text {
  margin: 0 auto 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}
.xs-age-gate__cookies {
  margin: 0 auto 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}
.xs-age-gate__cookies a { color: #e84080; text-decoration: underline; }
.xs-age-gate__btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  background: #e84080;
  color: #fff;
  max-width: 100%;
}
.xs-age-gate__btn:active { transform: scale(.98); }
.xs-age-gate__leave {
  display: inline-block;
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 8px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  text-decoration: underline;
}
body.xs-age-lock {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 767px) {
  .xs-age-gate {
    align-items: center !important;
    justify-content: center !important;
    padding: max(12px, env(safe-area-inset-top, 0px))
             max(16px, env(safe-area-inset-right, 0px))
             max(12px, env(safe-area-inset-bottom, 0px))
             max(16px, env(safe-area-inset-left, 0px));
  }
  .xs-age-gate__card {
    width: calc(100% - 24px);
    max-width: 400px;
    margin: auto;
    border-radius: 20px;
    padding: 24px 18px 18px !important;
  }
  .xs-age-gate__mark {
    width: 64px;
    height: 64px;
    font-size: 22px;
    margin-bottom: 12px;
  }
  .xs-age-gate__title {
    font-size: 1.15rem !important;
    line-height: 1.3;
  }
  .xs-age-gate__text { font-size: 13.5px !important; }
  .xs-age-gate__cookies { font-size: 12.5px !important; }
  .xs-age-gate__btn { font-size: 15px; padding: 13px 16px; }
  .pwa-notification { display: none !important; }
}

html.xs-age-need,
html.xs-age-need body { overflow: hidden !important; }
html.xs-age-need .xs-age-gate {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html.xs-age-need .xs-age-gate[hidden] {
  display: flex !important;
}
