.consent-banner {
  position: fixed;
  z-index: 10000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  display: flex;
  width: min(800px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: auto;
  padding: 22px 24px;
  border: 1px solid rgb(24 24 27 / 10%);
  border-radius: 18px;
  color: #24211f;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 18px 70px rgb(0 0 0 / 26%);
  backdrop-filter: blur(20px);
  animation: consent-rise 240ms ease both;
}
.consent-banner[hidden], .consent-manager-button[hidden] { display: none; }
.consent-banner-copy { max-width: 430px; }
.consent-eyebrow { margin: 0 0 8px; color: #df5b1e; font-size: 9px; font-weight: 750; letter-spacing: 1.25px; }
.consent-banner h2, .consent-dialog h2 { margin: 0; color: #211e1b; font: 700 20px/1.25 "Segoe UI", system-ui, sans-serif; letter-spacing: -.45px; }
.consent-banner-copy > p:not(.consent-eyebrow) { margin: 7px 0 0; color: #68635f; font-size: 11px; line-height: 1.65; }
.consent-banner-copy > a, .consent-policy-link { display: inline-block; margin-top: 9px; color: #a9471b; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.consent-banner-error { margin: 7px 0 0; color: #a33a23; font-size: 10px; line-height: 1.5; }
.consent-actions { display: grid; min-width: 168px; gap: 7px; }
.consent-button { min-height: 38px; padding: 0 13px; border: 1px solid #e4e0dc; border-radius: 9px; color: #38332f; background: #fff; cursor: pointer; font: 650 10px "Segoe UI", system-ui, sans-serif; transition: border-color 150ms ease, transform 150ms ease, background 150ms ease; }
.consent-button:hover { transform: translateY(-1px); border-color: #f3a77e; background: #fffaf6; }
.consent-button-primary { border-color: #f36b2a; color: #fff; background: #f36b2a; }
.consent-button-primary:hover { border-color: #df5b1e; color: #fff; background: #df5b1e; }
.consent-customize { padding: 4px; border: 0; color: #625d59; background: transparent; cursor: pointer; font: 600 10px "Segoe UI", system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.consent-manager-button { position: fixed; z-index: 9998; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 34px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 68%); border-radius: 999px; color: #4e4742; background: rgb(255 255 255 / 94%); box-shadow: 0 5px 24px rgb(25 20 15 / 15%); cursor: pointer; font: 650 10px "Segoe UI", system-ui, sans-serif; backdrop-filter: blur(12px); }
.consent-manager-button:hover { border-color: #f36b2a; color: #bd4d18; }
.consent-dialog { width: min(540px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 740px); padding: 0; overflow: auto; border: 1px solid rgb(255 255 255 / 70%); border-radius: 19px; color: #38332f; background: #fff; box-shadow: 0 25px 100px rgb(0 0 0 / 32%); }
.consent-dialog::backdrop { background: rgb(13 12 12 / 56%); backdrop-filter: blur(5px); }
.consent-dialog-card { padding: 24px; }
.consent-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent-dialog-heading .consent-eyebrow { margin-bottom: 7px; }
.consent-close { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #ece8e3; border-radius: 10px; color: #68615c; background: #fff; cursor: pointer; font-size: 22px; line-height: 1; }
.consent-intro, .consent-category > p { color: #746e69; font-size: 11px; line-height: 1.75; }
.consent-intro { margin: 13px 0 19px; }
.consent-category { padding: 16px 0; border-top: 1px solid #eeeae6; }
.consent-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent-category h3 { margin: 0; color: #302b27; font: 650 12px "Segoe UI", system-ui, sans-serif; }
.consent-category-heading p { margin: 5px 0 0; color: #89827c; font-size: 9px; }
.consent-category > p { margin: 12px 0 0; }
.consent-required { padding: 6px 8px; border-radius: 999px; color: #71655d; background: #f4f0ec; font-size: 8px; font-weight: 650; white-space: nowrap; }
.consent-switch { position: relative; display: inline-flex; width: 39px; height: 23px; flex: 0 0 auto; cursor: pointer; }
.consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-switch span { width: 39px; height: 23px; border-radius: 999px; background: #d7d2cc; transition: background 150ms ease; }
.consent-switch span::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); content: ""; transition: transform 150ms ease; }
.consent-switch input:checked + span { background: #f36b2a; }
.consent-switch input:checked + span::after { transform: translateX(16px); }
.consent-switch input:focus-visible + span { outline: 2px solid #b94715; outline-offset: 3px; }
.consent-feedback { min-height: 16px; margin: 0; color: #a33a23; font-size: 10px; line-height: 1.6; }
.consent-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.consent-policy-link { margin-top: 16px; font-size: 9px; }
.legal-footer nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.legal-footer nav a, .legal-footer nav button, .footer-cookie-link { padding: 0; border: 0; color: #85828b; background: transparent; cursor: pointer; font: inherit; font-size: inherit; text-decoration: none; transition: color 150ms ease; }
.legal-footer nav a:hover, .legal-footer nav button:hover, .footer-cookie-link:hover { color: #fff; }
.auth-legal-footer { padding-top: 14px; padding-bottom: 18px; }
.footer-cookie-link { align-self: flex-start; font-size: 11px; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 56px; padding: 16px 0 6px; border-top: 1px solid var(--color-line, #e8e3de); }
.app-footer small { color: var(--color-subtle, #938b83); font-size: 9px; }
.app-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.app-footer a, .app-footer button { padding: 0; border: 0; color: var(--color-muted, #706a64); background: transparent; cursor: pointer; font: 500 9px "Segoe UI", system-ui, sans-serif; text-decoration: none; transition: color 150ms ease; }
.app-footer a:hover, .app-footer button:hover { color: var(--color-accent, #f45b18); }
@media (max-width: 680px) {
  .app-footer { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 38px; }
  .app-footer nav { justify-content: flex-start; gap: 10px 14px; }
}
@keyframes consent-rise { from { opacity: 0; transform: translateY(9px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 620px) {
  .consent-banner { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; align-items: stretch; flex-direction: column; gap: 14px; padding: 17px; border-radius: 15px; }
  .consent-banner h2 { font-size: 18px; }
  .consent-actions { grid-template-columns: 1fr 1fr; gap: 7px; }
  .consent-actions .consent-button-primary { grid-column: 1 / -1; grid-row: 1; }
  .consent-customize { grid-column: 1 / -1; }
  .consent-manager-button { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .consent-dialog-card { padding: 19px; }
  .consent-dialog-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner { animation: none; }
  .consent-button, .consent-switch span, .consent-switch span::after { transition: none; }
}
