/* 
* Green Sanctuary - Computer Peripherals and Devices
* Cookie Consent Stylesheet
*/

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

.cookie-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.cookie-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.btn-cookie {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cookie.accept {
    background-color: #3a7c5f;
    color: #fff;
}

.btn-cookie.accept:hover {
    background-color: #2a5c44;
}

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

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

.btn-cookie.settings {
    background-color: transparent;
    color: #fff;
    text-decoration: underline;
}

.btn-cookie.settings:hover {
    text-decoration: none;
}

/* Cookie Settings Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.cookie-modal-content {
    background-color: #fff;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 5px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.cookie-modal h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-options {
    margin-bottom: 30px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-option h4 {
    margin-bottom: 5px;
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
    max-width: 400px;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #3a7c5f;
}

input:focus + .slider {
    box-shadow: 0 0 1px #3a7c5f;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookie-actions {
    display: flex;
    justify-content: center;
}

.cookie-actions button {
    padding: 10px 25px;
}

/* Responsive styles */
@media (max-width: 767px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-modal-content {
        margin: 30px 15px;
        padding: 20px;
    }
    
    .cookie-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .switch {
        margin-top: 10px;
    }
}
