.consent { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(460px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; display: grid; gap: 16px; padding: 20px; background: var(--canvas, #fff); color: var(--ink, #111318); border: 1px solid var(--line, #e4e6eb); border-top: 3px solid var(--accent, #f6752e); border-radius: var(--radius, 14px); box-shadow: 0 16px 40px rgba(17, 19, 24, .14); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; animation: consent-in .25s var(--ease, ease-out); }
.consent[hidden] { display: none; }
.consent h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; outline: none; }
.consent-text { display: grid; gap: 8px; }
.consent-text p { margin: 0; color: var(--ink-2, #4b5160); font-size: 14px; }
.consent-text a { color: var(--ink, #111318); font-weight: 600; }
.consent-options { display: grid; gap: 2px; margin-top: 6px; border: 1px solid var(--line, #e4e6eb); border-radius: 12px; overflow: hidden; }
.consent-options[hidden] { display: none; }
.consent-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; background: var(--soft, #f6f7f9); }
.consent-option strong { display: block; font-size: 14px; }
.consent-option small { display: block; margin-top: 2px; color: var(--ink-2, #4b5160); font-size: 13px; line-height: 1.45; }
label.consent-option { cursor: pointer; }
.consent-fixed { flex: none; font-size: 13px; font-weight: 600; color: var(--ink-3, #8a909c); }
.consent-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: #d3d6dd; cursor: pointer; transition: background-color .15s; }
.consent-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(17, 19, 24, .2); transition: transform .15s var(--ease, ease-out); }
.consent-switch:checked { background: var(--accent, #f6752e); }
.consent-switch:checked::after { transform: translateX(16px); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ink, #111318); background: var(--ink, #111318); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.consent-btn:hover { background: #2a2e37; }
.consent-btn[hidden] { display: none; }
.consent-ghost { margin-right: auto; padding: 0 8px; border-color: transparent; background: none; color: var(--ink-2, #4b5160); }
.consent-ghost:hover { background: var(--soft, #f6f7f9); color: var(--ink, #111318); }
.foot-grid .foot-link { display: block; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-2, #4b5160); text-align: left; cursor: pointer; }
.foot-grid .foot-link:hover { color: var(--ink, #111318); }
.foot-grid .foot-link[hidden] { display: none; }
@keyframes consent-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 520px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
  .consent-btn:not(.consent-ghost) { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .consent { animation: none; }
  .consent-switch, .consent-switch::after { transition: none; }
}
