:root {
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-bg: #fff;
    --color-text: #333;
    --color-text-secondary: #666;
    --border-radius: 16px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 10px 20px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    color: var(--color-text);
}

.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    max-width: 450px;
    width: 90%;
    background: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-deep);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-icon {
    font-size: 2rem;
}

.cookie-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0 0 1rem;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    text-decoration: underline;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
}

.cookie-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fc;
    border-radius: var(--border-radius);
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, transform 0.4s ease;
}

.cookie-details.show {
    max-height: 300px; /* A safe height to reveal content */
    opacity: 1;
    transform: translateY(0);
}

.cookie-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-details li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.cookie-details strong {
    font-weight: 600;
}

.cookie-details p {
    font-size: 0.9rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .cookie-banner {
        bottom: 2rem;
        left: 2rem;
        transform: translateX(0) translateY(100%);
    }

    .cookie-banner.show {
        transform: translateX(0) translateY(0);
    }
}
