/* RF Privacy Consents - Stili per checkbox consensi GDPR */

.rf-privacy-consents-wrapper {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.rf-consents-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.rf-consents-intro {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
}

.rf-consent-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
    line-height: 1.5;
}

.rf-consent-label input[type="checkbox"] {
    margin: 3px 10px 0 0;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.rf-consent-text {
    font-size: 14px;
    color: #333;
}

.rf-consent-text a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 500;
}

.rf-consent-text a:hover {
    color: #005177;
}

.rf-required-mark {
    color: #d00;
    font-weight: 700;
    margin-left: 3px;
}

.rf-consent-required {
    background: #fff8e5;
    padding: 12px;
    border-left: 4px solid #f0ad4e;
    border-radius: 4px;
}

.rf-consent-optional {
    background: #f0f8ff;
    padding: 12px;
    border-left: 4px solid #5bc0de;
    border-radius: 4px;
}

.rf-consents-footer {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Errori validazione */
.rf-consent-error {
    border: 2px solid #d00 !important;
    background: #ffebee !important;
}

.rf-consent-error-message {
    color: #d00;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0;
    padding: 10px;
    background: #ffebee;
    border-left: 4px solid #d00;
    border-radius: 4px;
}

/* Pagina gestione consensi (dashboard) */
.rf-manage-consents-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.rf-manage-consents-wrapper h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.rf-consent-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.rf-consent-meta {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.rf-consent-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.rf-consent-item label {
    display: flex;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
}

.rf-consent-item input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.rf-consent-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.rf-consent-item .description {
    margin: 8px 0 0 30px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.rf-consent-revocable {
    border-left: 4px solid #5cb85c;
}

.rf-consent-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.rf-consent-actions button {
    padding: 12px 30px;
    font-size: 16px;
}

.rf-consent-message {
    margin-left: 15px;
    font-size: 14px;
    font-weight: 600;
}

.rf-consent-message.success {
    color: #5cb85c;
}

.rf-consent-message.error {
    color: #d00;
}

.rf-consent-help {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin-top: 30px;
}

.rf-consent-help h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.rf-consent-help p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.rf-consent-help a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.rf-consent-help a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .rf-privacy-consents-wrapper {
        padding: 15px;
    }
    
    .rf-consent-label {
        font-size: 13px;
    }
    
    .rf-consent-text {
        font-size: 13px;
    }
    
    .rf-manage-consents-wrapper {
        padding: 10px;
    }
}
