.consent-root {
  position: fixed;
  inset: auto clamp(16px, 3vw, 42px) clamp(16px, 3vw, 34px) auto;
  z-index: 99990;
  font-family: 'SFPro', 'SF Pro Display', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  color: #171e15;
  cursor: auto;
}

.consent-root * { box-sizing: border-box; }

.consent-card,
.consent-panel {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(246, 252, 255, .72));
  box-shadow: 0 22px 70px rgba(23, 30, 21, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  padding: 18px;
}

.consent-card[hidden],
.consent-panel[hidden],
.consent-manage[hidden] { display: none; }

.consent-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(23, 30, 21, .46);
}

.consent-title {
  margin: 0 0 9px;
  font-size: 1.08rem;
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -.025em;
}

.consent-copy {
  margin: 0;
  color: rgba(23, 30, 21, .64);
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 430;
  letter-spacing: -.006em;
}

.consent-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.consent-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(23, 30, 21, .62);
  font-size: .78rem;
  font-weight: 620;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.consent-btn {
  min-height: 42px;
  border: 1px solid rgba(23, 30, 21, .12);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .58);
  color: #171e15;
  font-size: .83rem;
  font-weight: 680;
  letter-spacing: -.004em;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1), background .2s, border-color .2s;
}

.consent-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .82);
  border-color: rgba(23, 30, 21, .18);
}

.consent-btn-dark {
  background: #171e15;
  color: #fff;
  border-color: #171e15;
}

.consent-btn-dark:hover {
  background: #232b20;
  border-color: #232b20;
}

.consent-btn-wide { grid-column: 1 / -1; }

.consent-panel {
  position: relative;
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
}

.consent-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.consent-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 30, 21, .1);
  border-radius: 50%;
  background: rgba(255, 255, 255, .64);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.consent-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(255, 255, 255, .7);
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
  font-size: .9rem;
  font-weight: 680;
  letter-spacing: -.012em;
}

.consent-option p {
  margin: 0;
  color: rgba(23, 30, 21, .58);
  font-size: .8rem;
  line-height: 1.36;
}

.consent-switch {
  position: relative;
  width: 48px;
  height: 28px;
  display: inline-block;
}

.consent-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.consent-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(23, 30, 21, .16);
  transition: background .2s;
  box-shadow: inset 0 0 0 1px rgba(23, 30, 21, .05);
}

.consent-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 30, 21, .16);
  transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}

.consent-switch input:checked + .consent-slider { background: #171e15; }
.consent-switch input:checked + .consent-slider::before { transform: translateX(20px); }
.consent-switch input:disabled + .consent-slider { background: rgba(107, 202, 156, .45); }
.consent-switch input:focus-visible + .consent-slider {
  outline: 2px solid rgba(107, 202, 156, .72);
  outline-offset: 3px;
}

.consent-manage {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 99980;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .42);
  color: rgba(23, 30, 21, .52);
  box-shadow: 0 8px 24px rgba(23, 30, 21, .045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: .78rem;
  font-weight: 620;
  cursor: pointer;
  opacity: .56;
  transition: opacity .22s ease, background .22s ease, color .22s ease, transform .22s cubic-bezier(.23, 1, .32, 1);
}

.consent-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid rgba(23, 30, 21, .12);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .62);
  color: rgba(23, 30, 21, .82);
  box-shadow: 0 12px 34px rgba(23, 30, 21, .045), inset 0 1px 0 rgba(255, 255, 255, .72);
  font-size: .88rem;
  font-weight: 660;
  letter-spacing: -.004em;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.23, 1, .32, 1), background .2s, border-color .2s;
}

.consent-inline-action:hover,
.consent-inline-action:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .88);
  border-color: rgba(23, 30, 21, .18);
}

.consent-manage:hover,
.consent-manage:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, .82);
  color: rgba(23, 30, 21, .82);
  transform: translateY(-1px);
}

html[data-consent-scrolled="true"] .consent-manage {
  opacity: .26;
  background: rgba(255, 255, 255, .28);
  color: rgba(23, 30, 21, .42);
}

html[data-consent-scrolled="true"] .consent-manage:hover,
html[data-consent-scrolled="true"] .consent-manage:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, .82);
  color: rgba(23, 30, 21, .82);
}

@media(max-width:680px) {
  .consent-root {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .consent-card,
  .consent-panel {
    width: 100%;
    border-radius: 24px;
  }

  .consent-actions { grid-template-columns: 1fr; }
  .consent-btn-wide { grid-column: auto; }

  .consent-manage {
    right: 16px;
    bottom: 14px;
    opacity: .48;
  }

  .consent-panel { max-height: calc(100vh - 32px); }
}

@media(prefers-reduced-motion:reduce) {
  .consent-btn,
  .consent-slider,
  .consent-slider::before,
  .consent-manage { transition: none; }
}
