/* Roth Access Elementor Widgets - Common Styles */
.roth-elementor-widget {
    position: relative;
}

.roth-elementor-widget .roth-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.roth-elementor-widget .roth-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

.roth-elementor-widget .roth-info {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin: 10px 0;
}

.roth-elementor-widget .roth-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Editor placeholder styles */
.elementor-editor-active .roth-elementor-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
}

.elementor-editor-active .roth-elementor-placeholder .roth-placeholder-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.elementor-editor-active .roth-elementor-placeholder .roth-placeholder-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.elementor-editor-active .roth-elementor-placeholder .roth-placeholder-desc {
    font-size: 13px;
    color: #999;
}

/* ─── Sortable field list in editor panel ─── */

.roth-field-sortable {
    margin: 10px 0 0;
    min-height: 40px;
}

.roth-field-sortable ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.roth-field-sortable-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 3px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: default;
    transition: background 0.15s;
}

.roth-field-sortable-item:hover {
    background: #444;
}

.roth-field-sortable-item.ui-sortable-helper {
    background: #505050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.roth-field-sortable-item.ui-sortable-placeholder {
    visibility: visible !important;
    background: #2a2a2a;
    border: 1px dashed #666;
}

.roth-field-drag-handle {
    cursor: grab;
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
    user-select: none;
}

.roth-field-drag-handle:active {
    cursor: grabbing;
}

.roth-field-label {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roth-field-type {
    flex-shrink: 0;
    color: #999;
    font-size: 11px;
    font-style: italic;
}

.roth-field-vis {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #71d5e4;
}

.roth-field-sortable-empty {
    color: #999;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 15px 10px;
    margin: 0;
}
