/**
 * Role-Based Email Templates – Admin UI Styles
 *
 * Styles for the dynamic role-based template blocks rendered on the
 * WPUF Mail Settings page (role checkboxes, editor wrapper, remove button).
 *
 * @package WP User Frontend Pro
 * @since   WPUF_PRO_SINCE
 */

/* Wrapper - Full Width */
.wpuf-role-templates-wrapper {
    margin-top: 10px;
    width: 100%;
}

/* Template Block - Matches WordPress settings style */
.wpuf-role-template-block {
    background: #f9f9f9;
    border: 1px solid #c3c4c7;
    margin-bottom: 15px;
    padding: 10px 15px;
    position: relative;
    box-sizing: border-box;
}

/* Remove Button */
.wpuf-remove-role-template {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #50575e;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.wpuf-remove-role-template:hover {
    color: #d63638;
}

.wpuf-remove-role-template .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Form Table inside Red Box - matches WordPress settings table structure */
.wpuf-role-form-table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

.wpuf-role-form-table th {
    padding: 15px 10px 15px 0;
    width: 200px;
    font-weight: 400;
    vertical-align: top;
    line-height: 1.3;
    text-align: left;
}

.wpuf-role-form-table td {
    padding: 15px 0;
    vertical-align: top;
}

.wpuf-role-form-table .regular-text {
    width: 100%;
}

.wpuf-role-form-table .large-text {
    width: 100%;
}

/* Role Multi-select */
.wpuf-role-multiselect {
    width: 100%;
    max-width: 400px;
    min-height: 100px;
    padding: 5px;
}

/* Role Checkboxes */
.wpuf-roles-checkbox-wrapper {
    max-width: 500px;
}

.wpuf-role-checkbox {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    cursor: pointer;
}

.wpuf-role-checkbox input[type="checkbox"] {
    margin-right: 5px;
}

.wpuf-role-checkbox-all {
    display: block;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.wpuf-specific-roles {
    padding-left: 5px;
    transition: opacity 0.2s ease;
}

/* Description text */
.wpuf-role-form-table .description {
    margin-top: 5px;
    font-size: 13px;
    color: #646970;
}

.wpuf-role-form-table .description code {
    font-size: 12px;
    padding: 2px 5px;
    background: #f0f0f1;
    border-radius: 3px;
}

/* Add Button Container */
.wpuf-add-new-container {
    text-align: right;
    margin-bottom: 10px;
}

/* Add Button */
.form-table .wpuf-add-role-template {
    margin-top: 10px;
}

/* Default label styling */
.wpuf-default-label {
    font-weight: normal;
    font-style: italic;
    color: #646970;
    font-size: 12px;
}

