/* CLP Compliance Modal */
.clp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.clp-modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: 1;
}

.clp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f7f7f7;
    border-radius: 8px 8px 0 0;
}

.clp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.clp-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

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

.clp-modal-body {
    padding: 25px;
}

.clp-training-text {
    font-size: 15px;
    line-height: 1.6;
    color: #721c24;
    margin: 0 0 15px 0;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-weight: 500;
}

.clp-declaration-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 25px 0;
    padding: 15px;
    background-color: #fff9e6;
    border: 1px solid #f0e0a0;
    border-radius: 4px;
}

.clp-acceptance-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.clp-acceptance-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.clp-acceptance-label span {
    flex: 1;
}

.clp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid #e5e5e5;
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.clp-modal-footer .button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.clp-modal-cancel {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.clp-modal-cancel:hover {
    background-color: #e5e5e5;
    border-color: #ccc;
}

.clp-modal-confirm {
    background-color: #4CAF50;
    border: 1px solid #4CAF50;
    color: #fff;
}

.clp-modal-confirm:hover:not(:disabled) {
    background-color: #45a049;
    border-color: #45a049;
}

.clp-modal-confirm:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Prevent body scroll when modal is open */
body.clp-modal-open {
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 480px) {
    .clp-modal-content {
        width: 95%;
        margin: 10px;
    }

    .clp-modal-header {
        padding: 15px 20px;
    }

    .clp-modal-header h3 {
        font-size: 16px;
    }

    .clp-modal-body {
        padding: 20px;
    }

    .clp-training-text,
    .clp-declaration-text {
        font-size: 14px;
        padding: 12px;
    }

    .clp-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .clp-modal-footer .button {
        width: 100%;
        text-align: center;
    }
}
