.oyp-analytics-consent[hidden] {
    display: none !important;
}

.oyp-analytics-consent {
    --oyp-consent-background: #ffffff;
    --oyp-consent-foreground: #172033;
    --oyp-consent-muted: #4b5568;
    --oyp-consent-border: #d8deea;
    --oyp-consent-primary: #1457d9;
    --oyp-consent-primary-hover: #0d45b1;
    --oyp-consent-secondary: #f3f5f9;
    --oyp-consent-focus: #f59e0b;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483000;
    padding: 16px;
    color: var(--oyp-consent-foreground);
    font-family: inherit;
    line-height: 1.5;
    pointer-events: none;
}

.oyp-analytics-consent__panel {
    display: flex;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 18px 20px;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--oyp-consent-border);
    border-radius: 14px;
    background: var(--oyp-consent-background);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
    pointer-events: auto;
}

.oyp-analytics-consent__content {
    max-width: 760px;
}

.oyp-analytics-consent__title {
    margin: 0 0 4px;
    color: var(--oyp-consent-foreground);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.oyp-analytics-consent__description {
    margin: 0;
    color: var(--oyp-consent-muted);
    font-size: 0.94rem;
}

.oyp-analytics-consent__link {
    color: var(--oyp-consent-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.oyp-analytics-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.oyp-analytics-consent__button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.oyp-analytics-consent__button--accept {
    border-color: var(--oyp-consent-primary);
    color: #ffffff;
    background: var(--oyp-consent-primary);
}

.oyp-analytics-consent__button--accept:hover {
    border-color: var(--oyp-consent-primary-hover);
    background: var(--oyp-consent-primary-hover);
}

.oyp-analytics-consent__button--reject {
    border-color: var(--oyp-consent-border);
    color: var(--oyp-consent-foreground);
    background: var(--oyp-consent-secondary);
}

.oyp-analytics-consent__button--reject:hover {
    border-color: var(--oyp-consent-muted);
}

.oyp-analytics-consent__button:focus-visible,
.oyp-analytics-consent__link:focus-visible {
    outline: 3px solid var(--oyp-consent-focus);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .oyp-analytics-consent {
        padding: 10px;
    }

    .oyp-analytics-consent__panel {
        display: block;
        padding: 16px;
        border-radius: 12px;
    }

    .oyp-analytics-consent__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .oyp-analytics-consent__button {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .oyp-analytics-consent {
        --oyp-consent-background: #111827;
        --oyp-consent-foreground: #f8fafc;
        --oyp-consent-muted: #cbd5e1;
        --oyp-consent-border: #475569;
        --oyp-consent-primary: #4f8cff;
        --oyp-consent-primary-hover: #75a5ff;
        --oyp-consent-secondary: #1e293b;
        --oyp-consent-focus: #fbbf24;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oyp-analytics-consent__button {
        transition: none;
    }
}

@media (forced-colors: active) {
    .oyp-analytics-consent__panel,
    .oyp-analytics-consent__button {
        border: 1px solid CanvasText;
    }
}
