.privacy-preferences {
  --privacy-green: #245b43;
  --privacy-border: #d9e5df;
  position: fixed;
  inset: auto 24px max(24px, env(safe-area-inset-bottom)) auto;
  z-index: 1080;
  width: min(520px, calc(100% - 48px));
  color: #233c32;
  font: 400 14px/1.65 system-ui, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.privacy-preferences *, .privacy-preferences *::before, .privacy-preferences *::after { box-sizing: border-box; }
.privacy-preferences[hidden], .privacy-preferences [hidden], .privacy-preferences-fallback[hidden] { display: none !important; }
.privacy-preferences-dialog {
  padding: 24px;
  border: 1px solid var(--privacy-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 64px #173a2929, 0 2px 8px #173a2910;
  max-height: min(640px, calc(100dvh - 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 280ms ease, opacity 220ms ease, visibility 280ms;
  animation: privacy-slide-in 350ms ease backwards;
}
.privacy-preferences[data-state="minimized"] .privacy-preferences-dialog,
.privacy-preferences[data-state="closed"] .privacy-preferences-dialog {
  transform: translateY(calc(100% + 48px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.privacy-preferences-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.privacy-preferences-eyebrow { display: block; margin-bottom: 5px; color: #61766c; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.privacy-preferences .privacy-preferences-heading h2 { margin: 0; color: #173e2d; font: 650 20px/1.35 system-ui, sans-serif; }
.privacy-preferences .privacy-preferences-description { margin: 0 0 20px; color: #4e6258; font: inherit; }
.privacy-preferences :is(.privacy-preferences-minimize, .privacy-preferences-reopen) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--privacy-border);
  background: #f5f9f6;
  color: var(--privacy-green);
  cursor: pointer;
}
.privacy-preferences-minimize { flex: 0 0 40px; width: 40px; height: 40px; padding: 8px; border-radius: 12px; }
.privacy-preferences svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-preferences-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.privacy-preferences-actions button {
  flex: 1 1 170px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #8ca698;
  border-radius: 10px;
  background: #fff;
  color: #2b4d3d;
  font: 600 14px/1.4 system-ui, sans-serif;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.privacy-preferences-actions .privacy-preferences-accept { border-color: var(--privacy-green); background: var(--privacy-green); color: #fff; }
.privacy-preferences-actions .privacy-preferences-accept:hover { border-color: #193f2f; background: #193f2f; }
.privacy-preferences-actions .privacy-preferences-reject:hover { border-color: #587865; background: #f3f7f4; }
.privacy-preferences-actions button:disabled { opacity: .65; cursor: wait; }
.privacy-preferences .privacy-preferences-policy { display: inline-block; margin-top: 16px; color: var(--privacy-green); font-size: 12px; text-underline-offset: 3px; }
.privacy-preferences .privacy-preferences-status { margin: 12px 0 0; font-size: 13px; }
.privacy-preferences-status:empty { display: none; }
.privacy-preferences :is(button, a):focus-visible { outline: 3px solid #327d5d; outline-offset: 3px; }
.privacy-preferences-reopen {
  position: absolute;
  right: 0;
  bottom: 0;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 20px #173a2920;
  font: 600 13px/1.4 system-ui, sans-serif;
  pointer-events: auto;
  animation: privacy-slide-in 220ms ease both;
}
.privacy-preferences--inline { position: static; inset: auto; z-index: auto; width: 100%; margin: 20px 0; pointer-events: auto; }
.privacy-preferences--inline .privacy-preferences-dialog { max-height: none; overflow: visible; box-shadow: none; background: #f7faf8; animation: none; }
.privacy-preferences-fallback { margin: 16px auto; padding: 0 16px; text-align: center; font: 400 13px/1.6 system-ui, sans-serif; }
.privacy-preferences-fallback a { color: #245b43; text-decoration: underline; }
@keyframes privacy-slide-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) {
  .privacy-preferences { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); }
  .privacy-preferences-dialog { padding: 20px; border-radius: 16px; max-height: calc(100dvh - 24px); }
  .privacy-preferences .privacy-preferences-heading h2 { font-size: 18px; }
  .privacy-preferences--inline { width: 100%; }
  .privacy-preferences--inline .privacy-preferences-dialog { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-preferences-dialog, .privacy-preferences-reopen, .privacy-preferences-actions button { animation: none; transition: none; }
}
