/* =============================================================================
   Cookie Consent Banner Styles
   ============================================================================= */

/* Banner Container */
.salz-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

.cookie-banner-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    font-family: "Philosopher", sans-serif;
}

.cookie-banner-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.cookie-banner-close:hover {
    color: #333;
}

/* Description */
.cookie-banner-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    background-color: #f9f9f9;
    transition: background-color 0.2s ease;
}

.cookie-category:hover {
    background-color: #f0f0f0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.cookie-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #302623;
    flex-shrink: 0;
}

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

.cookie-label-text {
    flex: 1;
}

.cookie-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cookie-badge.necessary {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.cookie-badge.optional {
    background-color: #fff3e0;
    color: #f57c00;
}

.cookie-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 2.5rem;
}

/* Footer / Buttons */
.cookie-banner-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Open Sans", sans-serif;
}

.cookie-btn-necessary {
    background-color: #e0e0e0;
    color: #333;
}

.cookie-btn-necessary:hover {
    background-color: #d0d0d0;
}

.cookie-btn-all {
    background-color: #302623;
    color: #ffffff;
}

.cookie-btn-all:hover {
    background-color: #1a1410;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 38, 35, 0.2);
}

.cookie-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .salz-cookie-banner {
        max-height: 100%;
        overflow-y: auto;
    }

    .cookie-banner-content {
        padding: 1.5rem 1rem;
    }

    .cookie-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .cookie-banner-title {
        font-size: 1.25rem;
        padding-right: 2rem;
    }

    .cookie-categories {
        gap: 1rem;
    }

    .cookie-category {
        padding: 1rem;
    }

    .cookie-banner-footer {
        flex-direction: column;
        justify-content: stretch;
    }

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

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

    .cookie-banner-title {
        font-size: 1.1rem;
    }

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

    .cookie-description {
        font-size: 0.85rem;
    }

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

/* Accessibility */
.cookie-banner-close:focus,
.cookie-btn:focus,
.cookie-label input:focus {
    outline: 2px solid #302623;
    outline-offset: 2px;
}

/* Hide scrollbar for cookie banner on mobile if needed */
@media (max-width: 768px) {
    .salz-cookie-banner {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .salz-cookie-banner::-webkit-scrollbar {
        display: none;
    }
}

/* Animation for preference changes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-category {
    animation: fadeIn 0.2s ease;
}
