.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: none;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent.is-visible {
    display: flex;
}

.cookie-consent__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    width: min(980px, 100%);
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(13, 18, 30, 0.94);
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

body.light-mode .cookie-consent__panel {
    background: rgba(255, 255, 255, 0.96);
}

.cookie-consent__copy {
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.cookie-consent__text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent__text a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.cookie-consent__button--reject {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-consent__button--reject:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.cookie-consent__button--accept {
    border-color: var(--teal);
    background: var(--teal);
    color: #061014;
    box-shadow: 0 0 18px var(--teal-glow);
}

.cookie-consent__button--accept:hover {
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__button {
        flex: 1;
    }
}
