/* Matomo Opt-Out Widget */
.matomo-opt-out-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.matomo-opt-out-widget h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.matomo-opt-out-widget p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #666;
}

.matomo-opt-out-checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s;
}

.matomo-opt-out-checkbox:hover {
    border-color: #0073aa;
}

.matomo-opt-out-checkbox.opted-out {
    border-color: #28a745;
    background: #f0f9f4;
}

.matomo-opt-out-text strong {
    font-size: 15px;
    color: #333;
}

.matomo-opt-out-text p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #6c757d;
}

.matomo-opt-out-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.matomo-opt-out-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.matomo-opt-out-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.matomo-opt-out-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d6d6d6;
    transition: 0.3s;
    border-radius: 24px;
}

.matomo-opt-out-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.matomo-opt-out-switch input:checked + .matomo-opt-out-slider {
    background-color: #3c9959;
}

.matomo-opt-out-switch input:checked + .matomo-opt-out-slider:before {
    transform: translateX(20px);
}

.matomo-opt-out-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 10px;
}

.matomo-opt-out-status.tracking {
    background: #fff3cd;
    color: #856404;
}

.matomo-opt-out-status.opted-out {
    background: #d4edda;
    color: #155724;
}

.matomo-opt-out-note {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

@media (min-width: 600px) {
    .matomo-opt-out-checkbox {
        flex-direction: row;
        align-items: center;
    }
    .matomo-opt-out-text {
        flex: 1;
    }
}
