﻿/* Stili per le impostazioni di privacy e il banner di consenso */

/* Pulsante impostazioni privacy */
.privacy-settings {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 998;
}

#privacy-settings-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    #privacy-settings-button:hover {
        background-color: #f5f5f5;
        transform: scale(1.05);
    }

    #privacy-settings-button i {
        color: #666;
        font-size: 16px;
    }

/* Stili per il pulsante delle impostazioni privacy */
.privacy-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    /*max-width: 500px;*/
    width: 90%;
    z-index: 9999;
    display: none;
}

.privacy-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.privacy-dialog-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.privacy-dialog-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    text-align: right;
    width: fit-content;
}

.privacy-dialog-body {
    margin-bottom: 20px;
}

.privacy-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.privacy-option-label {
    font-size: 14px;
    color: #333;
}

.privacy-option-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.privacy-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.privacy-dialog-btn {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.privacy-dialog-save {
    background-color: #ff6600;
    color: white;
}

.privacy-dialog-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.privacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

/* Stili per il toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .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;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #ff6600;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* No-stock message */
.no-stock-message {
    color: #cc0000;
    font-weight: bold;
    font-style: italic;
    padding: 5px;
    background-color: #fff0f0;
    border-radius: 4px;
    display: inline-block;
}

/* Stili per i pulsanti disabilitati */
.quantity-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}


/* Stile per la privacy policy */
.privacy-policy-modal {
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-policy-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

    .privacy-policy-content h4 {
        color: #333;
        margin-top: 20px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    .privacy-policy-content p {
        margin: 10px 0;
        line-height: 1.6;
        font-size: 14px;
    }

    .privacy-policy-content ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .privacy-policy-content li {
        margin: 5px 0;
        font-size: 14px;
    }

.privacy-policy-footer {
    margin-top: 20px;
    font-style: italic;
    color: #666;
    text-align: right;
    font-size: 12px;
}

.privacy-policy-content a {
    color: #ff6600;
    text-decoration: none;
}

    .privacy-policy-content a:hover {
        text-decoration: underline;
    }
