/* Artspod consent banner — self-contained. Every token carries a hard fallback
   because the design tokens are scoped to .aspv2 and this banner also renders
   on the legacy design. */

.ap-consent {
    position: fixed;
    left: auto;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    /* as wide as the action buttons row; text wraps */
    max-width: 518px;
    background: var(--asp-bg, #fff);
    color: var(--asp-ink, #0b1c30);
    border: 1px solid var(--asp-line, #e5e7eb);
    border-radius: var(--asp-radius, 12px);
    box-shadow: var(--asp-shadow-lg, 0 16px 48px rgba(11, 28, 48, 0.14));
    font-family: var(--asp-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 14px;
    line-height: 1.5;
}

.ap-consent__inner {
    padding: 20px;
}

.ap-consent__text p {
    margin: 6px 0 0;
    color: var(--asp-muted, #464554);
}

.ap-consent__text a {
    color: var(--asp-primary, #2a14b4);
    text-decoration: underline;
}

.ap-consent__prefs {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.ap-consent__prefs label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: var(--asp-muted, #464554);
}

.ap-consent__actions {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ap-consent__btn {
    appearance: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--asp-radius-pill, 9999px);
    border: 1px solid var(--asp-line-strong, #c4c7c9);
    background: var(--asp-bg, #fff);
    color: var(--asp-ink, #0b1c30);
}

.ap-consent__btn--primary {
    background: var(--asp-primary, #2a14b4);
    border-color: var(--asp-primary, #2a14b4);
    color: #fff;
}

.ap-consent__btn--primary:hover {
    background: var(--asp-primary-dark, #100069);
}

.ap-consent__btn--ghost {
    border-color: transparent;
    background: transparent;
    color: var(--asp-primary, #2a14b4);
}

.ap-consent [hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .ap-consent {
        left: 8px;
        right: 8px;
        bottom: 76px;
    }

    .ap-consent__btn {
        flex: 1 1 100%;
        text-align: center;
    }
}

.ap-consent-open {
    cursor: pointer;
}
