/* ─── Consent banner ─────────────────────────────────────────
 * Loaded via wp_enqueue_style by pi-gdpr.php. Keeps the brand
 * palette in sync with the rest of the site but ships as plain
 * CSS so it works before / regardless of Vite-built assets. */
.pi-consent-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 50px -16px rgb(15 23 42 / 0.20), 0 6px 14px -2px rgb(15 23 42 / 0.08);
  max-width: 880px;
  margin: 0 auto;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  animation: pi-consent-rise 240ms ease-out both;
}
@keyframes pi-consent-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pi-consent-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 22px;
}
@media (min-width: 720px) {
  .pi-consent-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.pi-consent-banner__copy { color: #374151; }
.pi-consent-banner__copy strong { color: #1f2937; }
.pi-consent-banner__copy a {
  color: #8224e3;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pi-consent-banner__copy a:hover { color: #6b21a8; }
.pi-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.pi-consent-banner__btn {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.pi-consent-banner__btn:focus-visible {
  outline: 2px solid #8224e3;
  outline-offset: 2px;
}
.pi-consent-banner__btn--reject {
  background: #f3f4f6;
  color: #1f2937;
}
.pi-consent-banner__btn--reject:hover {
  background: #e5e7eb;
}
.pi-consent-banner__btn--accept {
  background: #8224e3;
  color: #ffffff;
}
.pi-consent-banner__btn--accept:hover {
  background: #6b21a8;
}

/* ─── Iframe consent placeholder ─────────────────────────────
 * Replaces a Google Maps / Calendar iframe until the user
 * accepts. Sits inside the same container the iframe would, so
 * the surrounding card frame stays put. */
.pi-consent-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #fafafa;
  color: #4b5563;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.pi-consent-placeholder__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f3e8ff;
  color: #6b21a8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pi-consent-placeholder__label { font-weight: 600; color: #1f2937; }
.pi-consent-placeholder__hint  { font-size: 12px; color: #6b7280; max-width: 28em; }
.pi-consent-placeholder__btn {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  background: #8224e3;
  color: #ffffff;
}
.pi-consent-placeholder__btn:hover { background: #6b21a8; }
