.cookie-consent-content {
    padding: 0;
}

.cookie-consent-body {
    display: grid;
    gap: 1rem;
    overflow: visible;
    padding-right: 0;
}

.cookie-consent-helper {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted-text);
}

.cookie-consent-helper a {
    color: var(--primary);
    font-weight: 600;
}

.cookie-consent-cards {
    display: grid;
    gap: 0.9rem;
}

.cookie-consent-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-subtle);
}

.cookie-consent-card.inactive {
    background: var(--surface-muted);
}

.cookie-consent-card-copy strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    color: var(--heading-color);
}

.cookie-consent-card-copy p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--muted-text);
}

.cookie-consent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--heading-color);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-consent-badge.always-on {
    background: #dbeafe;
    color: #1d4ed8;
}

.cookie-consent-badge.inactive {
    background: var(--surface-muted);
    color: var(--muted-text);
}

.cookie-consent-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.cookie-page-content {
    max-width: 900px;
    margin: 0 auto;
}

.cookie-consent-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.8rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--heading-color);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent-button:hover {
    background: var(--surface-subtle);
    border-color: var(--surface-strong);
    transform: translateY(-1px);
}

.cookie-consent-button.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.cookie-consent-button.primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

@media (max-width: 640px) {
    .cookie-consent-card {
        flex-direction: column;
    }

    .cookie-consent-badge {
        align-self: flex-start;
    }

    .cookie-consent-footer {
        flex-direction: column;
    }

    .cookie-consent-button {
        width: 100%;
    }
}
