/* POSable Consent. All selectors are prefixed pc- / #posable-consent. */
.pc-root {
  --pc-accent: #1d4ed8;
  --pc-accent-text: #fff;
  --pc-bg: #fff;
  --pc-fg: #1a1a1a;
  --pc-muted: #4b5563;
  --pc-border: #d1d5db;
  --pc-off: #6b7280;
  --pc-link: #0b57d0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--pc-fg);
}
.pc-root *, .pc-root *::before, .pc-root *::after { box-sizing: border-box; }
.pc-root a { color: var(--pc-link); text-decoration: underline; }

/* Banner / notice: bottom bar, never blocks the page */
.pc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  background: var(--pc-bg); color: var(--pc-fg);
  border-top: 1px solid var(--pc-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .14);
  padding: 1rem 3.25rem calc(1rem + env(safe-area-inset-bottom)) 1rem;
  max-height: 60vh; overflow: auto;
}
.pc-notice { padding-right: 1rem; }
.pc-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
}
.pc-text { flex: 1 1 320px; margin: 0; font-size: .95rem; }
.pc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Equal buttons: same size, style and level */
.pc-btn {
  appearance: none; cursor: pointer;
  min-height: 44px; min-width: 7.5rem; padding: .55rem 1.1rem;
  font: inherit; font-weight: 600; line-height: 1.2;
  border: 2px solid var(--pc-accent); border-radius: 6px;
  background: var(--pc-accent); color: var(--pc-accent-text);
}
.pc-btn:hover { filter: brightness(.92); }
.pc-linkbtn {
  appearance: none; cursor: pointer; background: none; border: 0;
  min-height: 44px; padding: .25rem .5rem;
  font: inherit; color: var(--pc-link); text-decoration: underline;
}
.pc-btn:focus-visible, .pc-linkbtn:focus-visible, .pc-close:focus-visible,
.pc-root a:focus-visible, .pc-panel:focus-visible {
  outline: 3px solid var(--pc-fg); outline-offset: 2px;
}
.pc-close {
  position: absolute; top: .4rem; right: .4rem; width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: 6px; cursor: pointer;
  color: var(--pc-fg); font-size: 1.9rem; line-height: 1;
}

/* Preferences panel */
html.pc-lock { overflow: hidden; }
.pc-overlay {
  position: fixed; inset: 0; z-index: 2147483001;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .55);
}
.pc-panel {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: var(--pc-bg); color: var(--pc-fg);
  padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border-radius: 12px 12px 0 0;
}
.pc-title { margin: 0 2.5rem .5rem 0; font-size: 1.25rem; line-height: 1.3; color: var(--pc-fg); }
.pc-intro { margin: 0 0 1rem; font-size: .95rem; color: var(--pc-muted); }
.pc-gpc {
  margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 6px;
  background: #e8f1ff; color: #0a3d91; font-weight: 600; font-size: .95rem;
}
.pc-row { border-top: 1px solid var(--pc-border); padding: 1rem 0; }
.pc-row-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pc-row-title { margin: 0; font-weight: 600; cursor: pointer; }
.pc-row-desc { margin: .35rem 0 0; font-size: .9rem; color: var(--pc-muted); }
.pc-row-end { display: inline-flex; align-items: center; gap: .6rem; flex: none; }
.pc-always { font-size: .85rem; font-weight: 600; color: var(--pc-muted); }

.pc-switch { position: relative; display: inline-flex; flex: none; }
.pc-switch input {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.pc-track {
  position: relative; width: 48px; height: 28px; border-radius: 14px;
  background: var(--pc-off); transition: background .15s;
}
.pc-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.pc-switch input:checked + .pc-track { background: var(--pc-accent); }
.pc-switch input:checked + .pc-track::after { transform: translateX(20px); }
.pc-switch input:disabled { cursor: not-allowed; }
.pc-switch input:disabled + .pc-track { opacity: .6; }
.pc-switch input:focus-visible + .pc-track { outline: 3px solid var(--pc-fg); outline-offset: 2px; }
.pc-panel-actions { border-top: 1px solid var(--pc-border); padding-top: 1rem; display: flex; justify-content: flex-end; }

/* Footer re-open link, shortcode button and the CCPA-style icon (US only) */
.pc-auto-wrap { text-align: center; padding: .75rem 1rem; font-size: .85rem; }
.pc-auto-wrap[hidden] { display: none; }
.pc-linkbtn-inline {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline;
}
.pc-icon { display: none; vertical-align: middle; margin-right: .35rem; }
html.pc-mode-us .pc-icon { display: inline-block; }

@media (max-width: 639px) {
  .pc-actions { width: 100%; }
  .pc-actions .pc-btn { flex: 1 1 0; min-width: 0; padding-left: .5rem; padding-right: .5rem; }
}
@media (min-width: 640px) {
  .pc-overlay { align-items: center; }
  .pc-panel { border-radius: 12px; padding-bottom: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-track, .pc-track::after { transition: none; }
}
