.xf-cookie-banner[hidden] {
    display: none !important;
}

.xf-cookie-banner {
    position: fixed;
    z-index: 9999;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 42rem;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.98);
    color: #334155;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.xf-cookie-banner p {
    margin: 0;
}

.xf-cookie-banner a {
    color: #5e17eb;
    font-weight: 700;
}

.xf-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.875rem;
}

.xf-cookie-button,
.xf-cookie-policy-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.xf-cookie-button-primary {
    border-color: #5e17eb;
    background: #5e17eb;
    color: #ffffff;
}

.xf-cookie-button:focus-visible,
.xf-cookie-policy-link:focus-visible {
    outline: 3px solid rgba(94, 23, 235, 0.35);
    outline-offset: 2px;
}

@media (min-width: 48rem) {
    .xf-cookie-banner {
        right: 1.5rem;
        left: auto;
    }
}

@media (prefers-color-scheme: dark) {
    .xf-cookie-banner {
        border-color: #475569;
        background: rgba(15, 23, 42, 0.98);
        color: #e2e8f0;
    }

    .xf-cookie-button,
    .xf-cookie-policy-link {
        border-color: #64748b;
        background: #1e293b;
        color: #f8fafc;
    }

    .xf-cookie-button-primary {
        border-color: #7c3aed;
        background: #7c3aed;
        color: #ffffff;
    }
}
