/* Баннер согласия на cookie (Dark Theme + Vertical Card). */
.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(320px, calc(100vw - 48px));
    padding: 16px;
    border: 1px solid var(--color-graphite, #292929);
    border-radius: 12px;
    background: var(--color-surface, #1E1E1E);
    box-shadow: var(--theme-dialog-shadow, inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 30px rgba(0,0,0,0.5));
}
.cookie-consent[hidden] { display: none; }

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cookie-consent-header img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}
.cookie-consent-header h3 {
    margin: 0;
    color: var(--color-white, #ffffff);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.cookie-consent p {
    margin: 0;
    color: var(--color-medium-gray, #bcbcbc);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
.cookie-consent a {
    color: var(--color-medium-gray, #bcbcbc);
    text-decoration: underline;
}
.cookie-consent a:hover {
    color: var(--color-white, #ffffff);
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
}
.cookie-consent-actions button {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cookie-consent-actions .cookie-consent-accept {
    background: #7c3aed; /* Amethyst */
    color: #ffffff;
    border: none;
}
.cookie-consent-actions .cookie-consent-accept:hover {
    background: #6d28d9;
    color: #ffffff; /* Override any global hover colors */
}

.cookie-consent-actions .cookie-consent-decline {
    background: transparent;
    color: var(--theme-muted, #bcbcbc);
    border: 1px solid var(--theme-border-strong, #3f3f3f);
}
.cookie-consent-actions .cookie-consent-decline:hover {
    color: var(--theme-text, #ffffff);
    border-color: var(--theme-border-strong, #555555);
    background: rgba(var(--theme-ink-rgb, 255,255,255),0.05);
}

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