.consent-panel {
    position: fixed;
    z-index: 1200;
    right: 18px;
    bottom: 18px;
    width: min(390px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid var(--ink, #161616);
    background: var(--paper, #f6f5f1);
    color: var(--ink, #161616);
    box-shadow: 6px 6px 0 rgba(22, 22, 22, 0.12);
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.consent-kicker {
    margin: 0 0 8px;
    color: var(--accent, #d8462c);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.2;
    text-transform: uppercase;
}

.consent-copy {
    margin: 0;
    color: var(--ink-soft, #3d3d3b);
    font-size: 13px;
    line-height: 1.5;
}

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

.consent-button {
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--ink, #161616);
    border-radius: 0;
    background: transparent;
    color: var(--ink, #161616);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.035em;
}

.consent-button:hover,
.consent-button:focus-visible {
    background: var(--ink, #161616);
    color: var(--paper, #f6f5f1);
    outline: none;
}

.consent-more {
    display: inline-block;
    margin-top: 11px;
    color: var(--muted, #6e6d68);
    font-size: 10px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.consent-more:hover,
.consent-more:focus-visible {
    color: var(--ink, #161616);
}

.footer-legal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a,
.consent-settings {
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.consent-settings {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.consent-settings:hover,
.consent-settings:focus-visible {
    color: var(--ink, #161616);
}

@media (max-width: 480px) {
    .consent-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        padding: 17px 18px calc(17px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        box-shadow: 0 -5px 20px rgba(22, 22, 22, 0.1);
    }
}

@media print {
    .consent-panel,
    .footer-legal {
        display: none !important;
    }
}
