/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */
.cookie-consent {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: min(380px, calc(100% - 32px));
    z-index: 9000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(160%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, visibility 0s linear 0.6s;
    will-change: transform, opacity;
}

.cookie-consent.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, visibility 0s linear 0s;
}

.cookie-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon content"
        "actions actions";
    align-items: center;
    gap: 12px 13px;
    padding: 15px 16px 16px;
    background: rgba(12, 12, 19, 0.92);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 64px -14px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    overflow: hidden;
}

.cookie-inner::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.75), transparent);
}

.cookie-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--accent);
    font-size: 17px;
    box-shadow: 0 0 18px -6px var(--accent-glow);
}

.cookie-content {
    grid-area: content;
    min-width: 0;
}

.cookie-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    margin: 0 0 3px;
}

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

.cookie-actions {
    grid-area: actions;
    display: flex;
    gap: 8px;
}

.cookie-btn {
    flex: 1 1 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #0a0a0f;
    box-shadow: 0 10px 24px -8px var(--accent-glow);
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -8px var(--accent-glow);
}

.cookie-btn-decline {
    background: transparent;
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.cookie-btn-decline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

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