:root {
    --channify-consent-bg: rgba(15, 15, 20, 0.97);
    --channify-consent-border: rgba(255, 255, 255, 0.18);
    --channify-consent-text: #f0f0f5;
    --channify-consent-muted: rgba(240, 240, 245, 0.72);
    --channify-consent-accent: #f20414;
    --channify-consent-accent-hover: #ff1a2b;
    --channify-consent-focus: #00d4ff;
}

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

.channify-consent-banner {
    position: fixed;
    inset: auto 1rem 1rem auto;
    z-index: 1050;
    width: min(28rem, calc(100vw - 2rem));
    padding: 1.25rem;
    color: var(--channify-consent-text);
    background: var(--channify-consent-bg);
    border: 1px solid var(--channify-consent-border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.channify-consent__content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.channify-consent__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.channify-consent__copy h2 {
    margin: 0 0 0.5rem;
    color: var(--channify-consent-text);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.channify-consent__copy p {
    margin: 0;
    color: var(--channify-consent-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.channify-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 7rem;
}

.channify-consent__button {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--channify-consent-border);
    border-radius: 8px;
    color: var(--channify-consent-text);
    background: rgba(255, 255, 255, 0.08);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.channify-consent__button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.channify-consent__button:focus-visible {
    outline: 3px solid var(--channify-consent-focus);
    outline-offset: 3px;
}

.channify-consent__button--accept {
    border-color: var(--channify-consent-accent);
    color: #ffffff;
    background: var(--channify-consent-accent);
}

.channify-consent__button--accept:hover {
    border-color: var(--channify-consent-accent-hover);
    background: var(--channify-consent-accent-hover);
}

.channify-consent__button--reject {
    background: transparent;
}

@media (max-width: 575px) {
    .channify-consent-banner {
        inset: auto 0.75rem 0.75rem;
        width: auto;
        padding: 1rem;
    }

    .channify-consent__content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .channify-consent__actions {
        flex-direction: row;
        width: 100%;
    }

    .channify-consent__button {
        flex: 1 1 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .channify-consent__button {
        transition: none;
    }
}
