:root {
    --cookie-bg: #f4f6f8;
    --cookie-card: #ffffff;
    --cookie-text: #1f2a37;
    --cookie-muted: #5a6b7c;
    --cookie-border: #e2e8f0;
    --cookie-accent: #ff6d3b;
    --cookie-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.cookie-bar {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(3, 7, 18, 0.45);
    z-index: 10000;
}

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

.cookie-card {
    width: 100%;
    max-width: none;
    background: var(--cookie-card);
    color: var(--cookie-text);
    border-radius: 0;
    border: 1px solid var(--cookie-border);
    box-shadow: var(--cookie-shadow);
    padding: 24px;
    display: grid;
    gap: 20px;
}

.cookie-summary {
    display: grid;
    gap: 16px;
}

.cookie-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cookie-details {
    display: none;
    border-top: 1px solid var(--cookie-border);
    padding-top: 20px;
    gap: 20px;
}

.cookie-card.is-expanded .cookie-details {
    display: grid;
}

.cookie-card.is-expanded .cookie-summary-actions {
    display: none;
}

.cookie-head h3 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.cookie-head p {
    margin: 0;
    color: var(--cookie-muted);
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    line-height: 1.5;
}

.cookie-options {
    display: grid;
    gap: 12px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--cookie-border);
    border-radius: 14px;
    background: var(--cookie-bg);
}

.cookie-option span {
    font-weight: 600;
}

.cookie-option small {
    display: block;
    font-weight: 400;
    color: var(--cookie-muted);
    margin-top: 4px;
}

.cookie-toggle {
    position: relative;
    width: 52px;
    height: 30px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
}

.cookie-option input {
    display: none;
}

.cookie-option input:checked + .cookie-toggle {
    background: var(--cookie-accent);
}

.cookie-option input:checked + .cookie-toggle::after {
    transform: translateX(22px);
}

.cookie-option input:disabled + .cookie-toggle {
    background: #94a3b8;
    opacity: 0.8;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.cookie-link {
    color: var(--cookie-text);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    border-radius: 0;
    padding: 10px 16px;
    border: 1px solid var(--cookie-border);
    background: #ffffff;
    color: var(--cookie-text);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.cookie-btn.primary {
    background: var(--cookie-accent);
    color: #ffffff;
    border-color: var(--cookie-accent);
}

@media (max-width: 700px) {
    .cookie-card {
        padding: 18px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-summary-actions {
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
