.rpca-age-gate-lock,
.rpca-age-gate-active {
  overflow: hidden;
}

.rpca-age-gate {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92)),
    var(--rpca-age-bg, #0f172a);
  color: #111827;
  display: flex;
  font-family: var(--rpca-age-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 2147483000;
}

.rpca-age-gate.has-gradient {
  background: var(--rpca-age-gradient-bg), var(--rpca-age-bg, #0f172a);
}

.rpca-age-gate.is-popup {
  background: rgba(15, 23, 42, 0.72);
}

.rpca-age-gate.is-popup.has-gradient {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.32)), var(--rpca-age-gradient-bg);
}

.rpca-age-gate-card {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--rpca-age-card-radius, 8px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  max-width: var(--rpca-age-card-width, 560px);
  padding: var(--rpca-age-card-padding, 28px);
  width: min(100%, var(--rpca-age-card-width, 560px));
}

.rpca-age-gate.is-fullscreen .rpca-age-gate-card {
  max-width: min(960px, calc(var(--rpca-age-card-width, 560px) + 80px));
}

.rpca-age-gate-media {
  margin: 0 auto 18px;
  text-align: center;
}

.rpca-age-gate-media img {
  display: inline-block;
  height: auto;
  max-height: var(--rpca-age-media-height, 120px);
  max-width: var(--rpca-age-media-width, 180px);
  object-fit: contain;
  width: auto;
}

.rpca-age-gate-header {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.rpca-age-gate-header span {
  align-items: center;
  background: var(--rpca-age-accent, #7a3b2e);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  height: 52px;
  justify-content: center;
  line-height: 1;
  width: 52px;
}

.rpca-age-gate h2 {
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.rpca-age-gate p {
  color: #374151;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.rpca-age-gate-actions {
  display: grid;
  gap: 12px;
}

.rpca-age-gate button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  text-align: center;
}

.rpca-age-gate button:hover,
.rpca-age-gate button:focus {
  border-color: var(--rpca-age-accent, #7a3b2e);
  outline: 2px solid transparent;
}

.rpca-age-gate button:disabled,
.rpca-age-gate input:disabled {
  cursor: wait;
  opacity: 0.7;
}

.rpca-age-gate .rpca-age-accept,
.rpca-age-dob-form button {
  background: var(--rpca-age-accent, #7a3b2e);
  border-color: var(--rpca-age-accent, #7a3b2e);
  color: #ffffff;
}

.rpca-age-dob-form {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.rpca-age-dob-form label {
  display: grid;
  gap: 6px;
}

.rpca-age-dob-form span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.rpca-age-dob-form input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}

.rpca-age-gate-status {
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
  margin: 14px 0 0;
}

.rpca-age-gate.style-lab .rpca-age-gate-card {
  border-top: 6px solid var(--rpca-age-accent, #7a3b2e);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.22);
}

.rpca-age-gate.style-lab .rpca-age-gate-header span {
  border-radius: 10px;
}

.rpca-age-gate.style-minimal {
  background: rgba(255, 255, 255, 0.92);
}

.rpca-age-gate.style-minimal .rpca-age-gate-card {
  border-color: #d8dee5;
  box-shadow: none;
}

.rpca-age-gate.style-minimal .rpca-age-gate-header span {
  height: 44px;
  width: 44px;
}

.rpca-age-gate.style-glass .rpca-age-gate-card {
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.44);
}

.rpca-age-gate.style-split.has-media .rpca-age-gate-card {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
}

.rpca-age-gate.style-split.has-media .rpca-age-gate-media {
  align-items: center;
  display: flex;
  margin: 0;
}

.rpca-age-gate.style-split.has-media .rpca-age-gate-media + .rpca-age-gate-header {
  grid-column: 2;
}

.rpca-age-gate.style-split.has-media .rpca-age-gate-header,
.rpca-age-gate.style-split.has-media .rpca-age-gate-card > p,
.rpca-age-gate.style-split.has-media .rpca-age-gate-actions,
.rpca-age-gate.style-split.has-media .rpca-age-gate-status {
  grid-column: 2;
}

.rpca-age-gate.style-bold .rpca-age-gate-card {
  background: #111827;
  border-color: #334155;
}

.rpca-age-gate.style-bold h2,
.rpca-age-gate.style-bold p,
.rpca-age-gate.style-bold .rpca-age-dob-form span {
  color: #ffffff;
}

.rpca-age-gate.style-bold .rpca-age-dob-form {
  border-color: #334155;
}

.rpca-age-gate.style-soft .rpca-age-gate-card {
  background: #fbfdff;
  border-color: #dbeafe;
  box-shadow: 0 22px 70px rgba(37, 99, 235, 0.2);
}

.rpca-age-gate.style-soft .rpca-age-gate-header span,
.rpca-age-gate.style-soft button {
  border-radius: 999px;
}

.rpca-age-gate.style-high_contrast {
  background: #000000;
}

.rpca-age-gate.style-high_contrast .rpca-age-gate-card {
  background: #ffffff;
  border: 3px solid #000000;
  box-shadow: 0 0 0 5px #ffffff;
}

.rpca-age-gate.style-high_contrast .rpca-age-gate-header span,
.rpca-age-gate.style-high_contrast .rpca-age-accept,
.rpca-age-gate.style-high_contrast .rpca-age-dob-form button {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.rpca-footer-notice,
.rpca-product-banner,
.rpca-product-content-disclaimer,
.rpca-checkout-compliance,
.rpca-payment-platform-note {
  box-sizing: border-box;
  letter-spacing: 0;
}

.rpca-footer-notice {
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  padding: 12px 18px;
  text-align: center;
}

.rpca-footer-notice p,
.rpca-product-banner p,
.rpca-product-content-disclaimer p,
.rpca-payment-platform-note p {
  margin: 0;
}

.rpca-product-banner,
.rpca-product-content-disclaimer {
  background: #f3ede3;
  border-left: 4px solid #7a3b2e;
  color: #1d2327;
  margin: 0 0 18px;
  padding: 12px 14px;
}

.rpca-product-content-disclaimer {
  margin: 18px 0;
}

.rpca-checkout-compliance {
  border: 1px solid #d8dee5;
  border-radius: 8px;
  margin: 18px 0;
  padding: 14px;
}

.rpca-payment-platform-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 10px;
  padding: 10px;
}

@media (max-width: 640px) {
  .rpca-age-gate {
    padding: 16px;
  }

  .rpca-age-gate-card {
    padding: 22px;
  }

  .rpca-age-gate.style-split.has-media .rpca-age-gate-card {
    display: block;
  }

  .rpca-age-gate.style-split.has-media .rpca-age-gate-media {
    display: block;
    margin: 0 auto 18px;
  }

  .rpca-age-gate-header {
    align-items: flex-start;
  }

  .rpca-age-gate h2 {
    font-size: 23px;
  }

  .rpca-age-gate p {
    font-size: 15px;
  }
}
