.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 1rem;
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.cookie-btn-accept {
    background: #0284c7;
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #0369a1;
}

.cookie-btn-settings {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
}

.cookie-settings-section {
    margin-bottom: 1.5rem;
}

.cookie-settings-section h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

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

.cookie-toggle input[type="checkbox"] {
    width: 2.5rem;
    height: 1.25rem;
    position: relative;
    appearance: none;
    background: #ddd;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked {
    background: #0284c7;
}

.cookie-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    transform: scale(0.8);
    left: 0;
    transition: left 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked::before {
    left: 1.25rem;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    /* Override .cookie-consent to be a modal overlay */
    .cookie-consent {
        top: 0;
        bottom: 0; 
        background: rgba(0, 0, 0, 0.5); 
        backdrop-filter: blur(3px);
        
        display: flex;
        align-items: center;
        justify-content: center;
        
        transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
        opacity: 0;
        visibility: hidden;
        padding: 1rem;
    }

    .cookie-consent.show {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease-in-out, visibility 0s 0s;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        background: #212529;
        padding: 1.5rem;
        border-radius: 0.5rem;
        width: 100%;
        max-width: 450px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    
    .cookie-text h3 {
        font-size: 1.2rem;
    }

    .cookie-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        flex: none;
        max-width: none;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        font-size: 1rem;
    }
}
