.franz-analytics-consent {
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: 760px;
    margin-inline: auto;
    padding: 24px;
    border: 1px solid var(--franz-border, rgba(21, 21, 21, .2));
    border-radius: var(--radius-md, 12px);
    background: var(--franz-white, #fff);
    box-shadow: 0 18px 50px rgba(21, 21, 21, .2);
    color: var(--franz-dark, #151515);
    transform: translateY(calc(100% + 32px));
    transition: transform 180ms ease;
}

.franz-analytics-consent.is-visible {
    transform: translateY(0);
}

.franz-analytics-consent__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.franz-analytics-consent__copy {
    max-width: 520px;
}

.franz-analytics-consent__eyebrow {
    margin: 0 0 8px;
    color: var(--franz-green, #183d34);
    font-size: var(--franz-text-xs, .75rem);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.franz-analytics-consent h2 {
    margin: 0 0 10px;
    font-size: var(--franz-heading-sm, 1.35rem);
    line-height: 1.2;
}

.franz-analytics-consent p:not(.franz-analytics-consent__eyebrow) {
    margin: 0;
    line-height: 1.5;
}

.franz-analytics-consent a {
    display: inline-block;
    margin-top: 10px;
    color: var(--franz-green, #183d34);
    font-weight: 700;
    text-underline-offset: 3px;
}

.franz-analytics-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    min-width: 172px;
}

.franz-analytics-consent .franz-button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--franz-dark, #151515);
    border-radius: var(--radius-xs, 4px);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.franz-analytics-consent .franz-button--primary {
    background: var(--franz-green, #183d34);
    color: var(--franz-white, #fff);
}

.franz-analytics-consent .franz-button--secondary {
    background: transparent;
    color: var(--franz-dark, #151515);
}

.franz-analytics-consent .franz-button:hover,
.franz-analytics-consent .franz-button:focus-visible {
    outline: 3px solid var(--franz-gold, #b89a5a);
    outline-offset: 3px;
}

.franz-analytics-settings {
    position: fixed;
    z-index: 999;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-radius: var(--radius-xs, 4px);
    background: var(--franz-white, #fff);
    box-shadow: 0 4px 16px rgba(21, 21, 21, .12);
    color: var(--franz-dark, #151515);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.franz-analytics-settings:hover,
.franz-analytics-settings:focus-visible {
    outline: 3px solid var(--franz-gold, #b89a5a);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .franz-analytics-consent {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        padding: 20px;
    }

    .franz-analytics-consent__inner {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .franz-analytics-consent__actions {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .franz-analytics-consent {
        transition: none;
    }
}
