.pr-ad-slot {
  box-sizing: border-box;
  width: min(100%, 300px);
  margin: 2rem auto 1.5rem;
  color: #38362f;
  font: inherit;
}

.pr-ad-slot [hidden] {
  display: none !important;
}

.pr-ad-panel {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  border: 1px solid #d8d4c9;
  border-radius: 4px;
  background: #faf9f5;
  font-size: .88rem;
  line-height: 1.5;
}

.pr-ad-label {
  margin: 0 0 .25rem;
  color: #4f4c44;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.pr-ad-heading {
  margin: 0 0 .45rem;
  font-size: 1rem;
  line-height: 1.3;
}

.pr-ad-copy,
.pr-ad-links,
.pr-ad-status {
  margin: .45rem 0;
}

.pr-ad-links a {
  text-underline-offset: .15em;
}

.pr-ad-status {
  min-height: 1.4em;
  color: #46433b;
  font-size: .8rem;
}

.pr-ad-choices {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
}

.pr-ad-age-label {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: .75rem 0 .25rem;
  padding: .6rem;
  border: 1px solid #635f54;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.pr-ad-age-marker {
  flex: 0 0 auto;
  padding: .1rem .25rem;
  border: 1px solid currentColor;
  font-size: .72rem;
  line-height: 1.2;
}

.pr-ad-age-checkbox {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: .1rem 0 0;
  accent-color: #315d58;
}

.pr-ad-button {
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 2px solid #315d58;
  border-radius: 4px;
  background: #315d58;
  color: #fff;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

/* Both outcomes deliberately share the same size, weight and visual priority. */
.pr-ad-choices .pr-ad-button {
  flex: 1 1 50%;
}

.pr-ad-button:hover,
.pr-ad-button:focus-visible {
  background: #244843;
  border-color: #244843;
}

.pr-ad-button:focus-visible,
.pr-ad-manage:focus-visible,
.pr-ad-continue:focus-visible,
.pr-ad-configure:focus-visible {
  outline: 3px solid #a35c00;
  outline-offset: 3px;
}

.pr-ad-continue,
.pr-ad-configure {
  min-height: 2.5rem;
  padding: .45rem .2rem;
  border: 0;
  background: transparent;
  color: #254d48;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
  cursor: pointer;
}

.pr-ad-continue {
  display: block;
  margin: .35rem auto 0;
}

.pr-ad-configure {
  display: inline-block;
  margin: .75rem 0;
}

.pr-ad-slot iframe {
  display: block;
  width: 300px;
  height: 250px;
  max-width: 100%;
  margin: .75rem auto 0;
  border: 0;
}

/* A small, non-modal decision panel: no backdrop and no page/content lock. */
.pr-consent-panel {
  position: fixed;
  z-index: 10000;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(38rem, calc(100vw - 2rem));
  max-height: min(58vh, 34rem);
  overflow-y: auto;
  padding: 1.15rem 1.25rem 1rem;
  border: 2px solid #333127;
  border-radius: 8px;
  background: #fffefa;
  color: #25231e;
  box-shadow: 0 4px 18px rgb(0 0 0 / 24%);
  font: inherit;
  font-size: .95rem;
  line-height: 1.5;
}

.pr-consent-panel[hidden] {
  display: none !important;
}

.pr-consent-panel .pr-ad-heading {
  font-size: 1.2rem;
}

.pr-consent-panel .pr-ad-status {
  min-height: 1.5em;
}

@media (max-width: 480px) {
  .pr-consent-panel {
    right: max(.5rem, env(safe-area-inset-right));
    bottom: max(.5rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1rem);
    max-height: 58vh;
    padding: .85rem;
    font-size: .9rem;
  }

  .pr-ad-choices {
    gap: .45rem;
  }

  .pr-ad-button {
    min-height: 3rem;
    padding: .5rem .4rem;
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-consent-panel { scroll-behavior: auto; }
}
