
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c2416;
    color: #f5f1ed;
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-top: 3px solid #8b5a2b;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    color: #f5f1ed;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    white-space: nowrap;
    outline: none;
}

.cookie-btn:focus-visible {
    outline: 2px solid #f5f1ed;
    outline-offset: 2px;
}

.cookie-btn-primary {
    background-color: #8b5a2b;
    color: #f5f1ed;
}

.cookie-btn-primary:hover {
    background-color: #6d4623;
}

.cookie-btn-secondary {
    background-color: transparent;
    color: #f5f1ed;
    border: 1px solid #f5f1ed;
}

.cookie-btn-secondary:hover {
    background-color: rgba(139, 90, 43, 0.2);
    border-color: #8b5a2b;
    color: #8b5a2b;
}

.cookie-btn-customize {
    background-color: transparent;
    color: #8b5a2b;
    border: 1px solid #8b5a2b;
}

.cookie-btn-customize:hover {
    background-color: rgba(139, 90, 43, 0.15);
}

.cookie-customize-panel {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: 1px solid #8b5a2b;
}

.cookie-customize-panel.visible {
    max-height: 400px;
}

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cookie-category {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cookie-category input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    outline: none;
}

.cookie-category input[type="checkbox"]:focus-visible {
    outline: 2px solid #f5f1ed;
    outline-offset: 2px;
}

.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-category label {
    cursor: pointer;
    flex: 1;
}

.cookie-category-title {
    display: block;
    font-weight: 600;
    color: #f5f1ed;
    margin-bottom: 0.25rem;
}

.cookie-category-desc {
    display: block;
    font-size: 0.85rem;
    color: #c5b5a8;
    line-height: 1.4;
}

.cookie-policy-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.cookie-policy-link a {
    color: #8b5a2b;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-policy-link a:hover {
    color: #f5f1ed;
}

.cookie-policy-link a:focus-visible {
    outline: 2px solid #f5f1ed;
    outline-offset: 2px;
    border-radius: 2px;
}

.cookie-banner.hidden {
    display: none;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
        gap: 1rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-text {
        min-width: 100%;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .cookie-categories {
        grid-template-columns: 1fr;
    }

    .cookie-customize-panel.visible {
        max-height: 600px;
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-btn {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .cookie-text {
        font-size: 0.9rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        animation: none;
    }

    .cookie-customize-panel {
        transition: none;
    }
}

.cookie-btn-secondary:hover { color: #ffffff !important; }
