/* B2BKing Rule Individual Editor Styles */

/* Header Section */
.b2bking_dynamic_rule_pro_editor_header {
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b2bking_dynamic_rule_pro_editor_header_title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.b2bking_dynamic_rule_pro_editor_header_icon {
    flex-shrink: 0;
    opacity: 0.6;
}

.b2bking_dynamic_rule_pro_editor_header_text h1 {
    color: #6b7280;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.b2bking_dynamic_rule_pro_editor_header_subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

    .b2bking_dynamic_rule_pro_editor_header_actions {
        display: flex;
        align-items: center;
        gap: 16px;
    }

.b2bking_dynamic_rule_pro_editor_back_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.b2bking_dynamic_rule_pro_editor_back_btn:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
    text-decoration: none;
}

/* Header Save Button */
#b2bking_dynamic_rule_pro_editor_save_top, #b2bking_dynamic_rule_pro_editor_save {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 23px 5px 13px;
    background: linear-gradient(135deg, #906a1d 0%, #a67c1f 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(144, 106, 29, 0.2);
    min-width: 153px;
}

#b2bking_dynamic_rule_pro_editor_save_top:hover {
    background: linear-gradient(135deg, #7a5a17 0%, #906a1d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 106, 29, 0.3);
}

#b2bking_dynamic_rule_pro_editor_save_top:disabled, #b2bking_dynamic_rule_pro_editor_save:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* Main Content */
.b2bking_dynamic_rule_pro_editor_content {
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Step Navigation */
.b2bking_dynamic_rule_pro_editor_steps {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
    margin: 0;
}

.b2bking_dynamic_rule_pro_editor_step {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px 20px;
    border-right: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.b2bking_dynamic_rule_pro_editor_step:last-child {
    border-right: none;
}

.b2bking_dynamic_rule_pro_editor_step:hover {
    background: #fafafa;
}

.b2bking_dynamic_rule_pro_editor_step.active {
    background: linear-gradient(135deg, #906a1d 0%, #a67c1f 100%);
    color: #ffffff;
}

.b2bking_dynamic_rule_pro_editor_step.completed {
    background: #f8f9fa;
    color: #27ae60;
}

.b2bking_dynamic_rule_pro_editor_step.completed .b2bking_dynamic_rule_pro_editor_step_number {
    background: #27ae60;
    color: #ffffff;
}

.b2bking_dynamic_rule_pro_editor_step_number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.b2bking_dynamic_rule_pro_editor_step.active .b2bking_dynamic_rule_pro_editor_step_number {
    background: #ffffff;
    color: #906a1d;
}

.b2bking_dynamic_rule_pro_editor_step_content {
    flex: 1;
}

.b2bking_dynamic_rule_pro_editor_step_title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.b2bking_dynamic_rule_pro_editor_step_description {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.3;
}

/* Form */
.b2bking_dynamic_rule_pro_editor_form {
    padding: 0;
}

/* Section */
.b2bking_dynamic_rule_pro_editor_section {
    border-bottom: 1px solid #f0f0f0;
}

.b2bking_dynamic_rule_pro_editor_section:last-child {
    border-bottom: none;
}

/* Section Header */
.b2bking_dynamic_rule_pro_editor_section_header {
    padding: 32px 40px 24px 40px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.b2bking_dynamic_rule_pro_editor_section_header h2 {
    color: #191821;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.b2bking_dynamic_rule_pro_editor_section_header p {
    color: #666666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Form Grid */
.b2bking_dynamic_rule_pro_editor_form_grid {
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Field */
.b2bking_dynamic_rule_pro_editor_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2bking_dynamic_rule_pro_editor_field_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Label */
.b2bking_dynamic_rule_pro_editor_label {
    color: #191821;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
}

.b2bking_dynamic_rule_pro_editor_required {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 600;
}

/* Input - High Specificity to Override WP Admin */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_input,
#b2bking_dynamic_rule_pro_editor_main_container input.b2bking_dynamic_rule_pro_editor_input {
    padding: 10px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #191821 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_input:focus,
#b2bking_dynamic_rule_pro_editor_main_container input.b2bking_dynamic_rule_pro_editor_input:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_input::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container input.b2bking_dynamic_rule_pro_editor_input::placeholder {
    color: #999999 !important;
}

/* Select - High Specificity to Override WP Admin */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_select,
#b2bking_dynamic_rule_pro_editor_main_container select.b2bking_dynamic_rule_pro_editor_select {
    padding: 10px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #191821 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_select:focus,
#b2bking_dynamic_rule_pro_editor_main_container select.b2bking_dynamic_rule_pro_editor_select:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
}

.b2bking_dynamic_rule_pro_editor_select optgroup {
    font-weight: 600;
    color: #191821;
    background: #f8f8f8;
    padding: 8px 0;
}

.b2bking_dynamic_rule_pro_editor_select option {
    padding: 8px 12px;
    color: #191821;
}

/* Field Description */
.b2bking_dynamic_rule_pro_editor_field_description {
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Test Section */
.b2bking_dynamic_rule_pro_editor_test_actions {
    padding: 0 40px 24px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.b2bking_dynamic_rule_pro_editor_test_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #906a1d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.b2bking_dynamic_rule_pro_editor_test_btn:hover {
    background: #7a5a17;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 106, 29, 0.3);
}

.b2bking_dynamic_rule_pro_editor_test_description {
    color: #666666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.b2bking_dynamic_rule_pro_editor_test_results {
    margin: 0 40px 32px 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Step Actions */
.b2bking_dynamic_rule_pro_editor_step_actions {
    padding: 32px 40px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.b2bking_dynamic_rule_pro_editor_step_actions_left,
.b2bking_dynamic_rule_pro_editor_step_actions_center,
.b2bking_dynamic_rule_pro_editor_step_actions_right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.b2bking_dynamic_rule_pro_editor_step_actions_center {
    flex: 1;
    justify-content: center;
}

.b2bking_dynamic_rule_pro_editor_step_actions_right {
    justify-content: flex-end;
}

/* Form Actions (Legacy - keeping for compatibility) */
.b2bking_dynamic_rule_pro_editor_form_actions {
    padding: 32px 40px;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid #f0f0f0;
}

.b2bking_dynamic_rule_pro_editor_cancel_btn {
    padding: 12px 24px;
    background: #ffffff;
    color: #666666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b2bking_dynamic_rule_pro_editor_cancel_btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: #191821;
}

.b2bking_dynamic_rule_pro_editor_save_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #906a1d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b2bking_dynamic_rule_pro_editor_save_btn:hover {
    background: #7a5a17;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 106, 29, 0.3);
}

.b2bking_dynamic_rule_pro_editor_save_btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.b2bking_dynamic_rule_pro_editor_prev_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #666666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b2bking_dynamic_rule_pro_editor_prev_btn:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
    color: #191821;
}

.b2bking_dynamic_rule_pro_editor_next_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #906a1d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.b2bking_dynamic_rule_pro_editor_next_btn:hover {
    background: #7a5a17;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(144, 106, 29, 0.3);
}

/* Message */
.b2bking_dynamic_rule_pro_editor_message {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.b2bking_dynamic_rule_pro_editor_message_content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #906a1d;
}

.b2bking_dynamic_rule_pro_editor_message_content.success {
    border-left-color: #27ae60;
}

.b2bking_dynamic_rule_pro_editor_message_content.error {
    border-left-color: #e74c3c;
}

.b2bking_dynamic_rule_pro_editor_message_icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.b2bking_dynamic_rule_pro_editor_message_text {
    flex: 1;
    color: #191821;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.b2bking_dynamic_rule_pro_editor_message_close {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.b2bking_dynamic_rule_pro_editor_message_close:hover {
    background: #f0f0f0;
    color: #191821;
}

/* Save Success Notification */
.b2bking_dynamic_rule_pro_editor_save_success_notification {
    width: 100%;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.b2bking_dynamic_rule_pro_editor_save_success_notification.show {
    opacity: 1;
    transform: translateY(0);
}

.b2bking_dynamic_rule_pro_editor_save_success_notification_content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.b2bking_dynamic_rule_pro_editor_save_success_notification_content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #906a1d 0%, #b8860b 100%);
}

.b2bking_dynamic_rule_pro_editor_save_success_notification_icon {
    flex-shrink: 0;
    color: #906a1d;
    width: 20px;
    height: 20px;
}

.b2bking_dynamic_rule_pro_editor_save_success_notification_text {
    flex: 1;
    color: #191821;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .b2bking_dynamic_rule_pro_editor_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0;
        margin: 0 0 16px 0;
    }
    
    .b2bking_dynamic_rule_pro_editor_header_title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .b2bking_dynamic_rule_pro_editor_header_text h1 {
        font-size: 20px;
    }
    
    .b2bking_dynamic_rule_pro_editor_header_actions {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    #b2bking_dynamic_rule_pro_editor_save_top {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .b2bking_dynamic_rule_pro_editor_steps {
        flex-direction: column;
    }
    
    .b2bking_dynamic_rule_pro_editor_step {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 16px 20px;
    }
    
    .b2bking_dynamic_rule_pro_editor_step:last-child {
        border-bottom: none;
    }
    
    .b2bking_dynamic_rule_pro_editor_step_number {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 12px;
    }
    
    .b2bking_dynamic_rule_pro_editor_step_title {
        font-size: 13px;
    }
    
    .b2bking_dynamic_rule_pro_editor_step_description {
        font-size: 11px;
    }
    
    .b2bking_dynamic_rule_pro_editor_section_header {
        padding: 24px 20px 20px 20px;
    }
    
    .b2bking_dynamic_rule_pro_editor_form_grid {
        padding: 24px 20px;
        gap: 20px;
    }
    
    .b2bking_dynamic_rule_pro_editor_field_row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .b2bking_dynamic_rule_pro_editor_test_actions {
        padding: 0 20px 20px 20px;
    }
    
    .b2bking_dynamic_rule_pro_editor_test_results {
        margin: 0 20px 24px 20px;
    }
    
    .b2bking_dynamic_rule_pro_editor_step_actions {
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
    }
    
    .b2bking_dynamic_rule_pro_editor_step_actions_left,
    .b2bking_dynamic_rule_pro_editor_step_actions_center,
    .b2bking_dynamic_rule_pro_editor_step_actions_right {
        justify-content: center;
        width: 100%;
    }
    
    .b2bking_dynamic_rule_pro_editor_form_actions {
        padding: 24px 20px;
        flex-direction: column;
    }
    
    .b2bking_dynamic_rule_pro_editor_message {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Loading States */
.b2bking_dynamic_rule_pro_editor_loading {
    opacity: 0.6;
    pointer-events: none;
}

.b2bking_dynamic_rule_pro_editor_loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #906a1d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Validation States - High Specificity */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_input.error,
#b2bking_dynamic_rule_pro_editor_main_container input.b2bking_dynamic_rule_pro_editor_input.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_select.error,
#b2bking_dynamic_rule_pro_editor_main_container select.b2bking_dynamic_rule_pro_editor_select.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_input.success,
#b2bking_dynamic_rule_pro_editor_main_container input.b2bking_dynamic_rule_pro_editor_input.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_select.success,
#b2bking_dynamic_rule_pro_editor_main_container select.b2bking_dynamic_rule_pro_editor_select.success {
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
}

/* Test Results Styling */
.b2bking_dynamic_rule_pro_editor_test_results h4 {
    color: #191821;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-item:last-child {
    border-bottom: none;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-name {
    font-weight: 500;
    color: #191821;
    font-size: 14px;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-email {
    color: #666666;
    font-size: 13px;
}

.b2bking_dynamic_rule_pro_editor_test_results .customer-value {
    font-weight: 600;
    color: #906a1d;
    font-size: 14px;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_select,
#b2bking_dynamic_rule_pro_editor_main_container select.b2bking_dynamic_rule_pro_editor_select {
    width: 100% !important;
    max-width: 100% !important;
}


/* ============================================
   B2BKing Rule Individual Editor  Styles (Card-Based)
   ============================================ */

.b2bking-rule-builder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Live Preview Bar */
.b2bking-rule-preview {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #191821;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(25, 24, 33, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid #e9ecef;
    max-width: 400px;
    z-index: 1000;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-icon {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: rgb(108 117 125 / 6%);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
    padding: 4px 6px;
    border-radius: 10px;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.preview-icon svg {
    width: 20px;
    height: 20px;
}

.preview-text {
    font-size: 14px;
    line-height: 1.4;
    color: #6c757d;
    font-weight: 500;
}

.preview-text strong {
    color: #906a1d;
    font-weight: 600;
}

/* Rule type icon colors for preview - synchronized with b2bking-custom-dropdown-icon */
.preview-icon[data-rule-type="discount_amount"],
.preview-icon[data-rule-type="discount_percentage"],
.preview-icon[data-rule-type="bogo_discount"] {
    color: #DC2626;
}

.preview-icon[data-rule-type="raise_price"] {
    color: #DC2626;
}

.preview-icon[data-rule-type="fixed_price"] {
    color: #10B981;
}

.preview-icon[data-rule-type="hidden_price"] {
    color: #9CA3AF;
}

.preview-icon[data-rule-type="tiered_price"] {
    color: #DC2626;
}

.preview-icon[data-rule-type="minimum_order"],
.preview-icon[data-rule-type="maximum_order"] {
    color: #F59E0B;
}

.preview-icon[data-rule-type="free_shipping"] {
    color: #3B82F6;
}

.preview-icon[data-rule-type="required_multiple"] {
    color: #F59E0B;
}

.preview-icon[data-rule-type="unpurchasable"] {
    color: #6B7280;
}

.preview-icon[data-rule-type="tax_exemption_user"],
.preview-icon[data-rule-type="tax_exemption"] {
    color: #2563EB;
}

.preview-icon[data-rule-type="add_tax_percentage"],
.preview-icon[data-rule-type="add_tax_amount"] {
    color: #2563EB;
}

.preview-icon[data-rule-type="set_currency_symbol"] {
    color: #2563EB;
}

.preview-icon[data-rule-type="replace_prices_quote"],
.preview-icon[data-rule-type="quotes_products"] {
    color: #7C3AED;
}

.preview-icon[data-rule-type="payment_method_minmax_order"],
.preview-icon[data-rule-type="payment_method_discount"] {
    color: #14B8A6;
}

.preview-icon[data-rule-type="payment_method_restriction"] {
    color: #6B7280;
}

.preview-icon[data-rule-type="shipping_method_restriction"] {
    color: #6B7280;
}

.preview-icon[data-rule-type="rename_purchase_order"] {
    color: #14B8A6;
}

.preview-icon[data-rule-type="info_table"] {
    color: #9CA3AF;
}

/* Cards Container */
.b2bking-cards-container {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Card Styles */
.b2bking-card {
    background: #ffffff;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 23px;
}

.b2bking-card:first-child {
    margin-top: 0;
}

.b2bking-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Prevent card hover transform when dropdown is open */
.b2bking-custom-rule-type-dropdown.open ~ .b2bking-card:hover,
.b2bking-custom-rule-type-dropdown.open .b2bking-card:hover,
body:has(.b2bking-custom-rule-type-dropdown.open) .b2bking-card:hover {
    transform: none !important;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.applies-option {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.applies-option:hover {
    border-color: #906a1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(144, 106, 29, 0.15);
}

.applies-option.selected {
    border-color: #906a1d;
    background: linear-gradient(135deg, rgba(144, 106, 29, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
}

.applies-option.selected::before {
    content: '✱';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #906a1d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: bold;
}

.applies-icon {
    font-size: 32px;
    margin-bottom: 12px;
    color: #6b7280;
}

.applies-option.selected .applies-icon {
    color: #906a1d;
}

.applies-name {
    font-size: 16px;
    font-weight: 600;
    color: #191821;
    margin-bottom: 8px;
}

.applies-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Responsive styles for action grid */
@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .applies-option {
        padding: 16px;
    }
    
    .applies-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .applies-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .applies-description {
        font-size: 13px;
    }
}

.b2bking-card.expanded .card-body {
    display: block;
}

.b2bking-card.final-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 125px;
}


.final-card-content {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.final-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.final-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #906a1d 0%, #a67c1f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(144, 106, 29, 0.3);
}

.final-card-text h3 {
    color: #191821;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.final-card-text p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Card Header */
.card-header {
    padding: 20px 24px;
    background: #faf9f8;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #906a1d 0%, #b8860b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.card-title-section {
    flex: 1;
}

.card-title-section h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #191821;
}

.card-title-section p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 300;
}

/* Card Error Badge */
.card-error-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #e2887e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    margin-left: auto;
    flex-shrink: 0;
    animation: errorPulse 0.3s ease;
}

@keyframes errorPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.card-summary {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    background: rgb(255 255 255);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgb(228 228 228);
}

/* Card Body */
.card-body {
    padding: 24px;
}

.card-body.collapsed {
    display: none;
}

/* Rule Type Description */
.b2bking-rule-type-description {
    margin-top: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.b2bking-rule-type-description-icon-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.b2bking-rule-type-description-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
}

.b2bking-rule-type-description-text {
    flex: 1;
}

.b2bking-rule-type-description a {
    color: #906a1d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.b2bking-rule-type-description a:hover {
    color: #7a5a17;
    border-bottom-color: #7a5a17;
}

/* Rule Name Input */
.b2bking-pro-rule-name-input {
    padding: 10px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #191821 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-weight: 500;
    line-height: 2 !important;
}
.b2bking-pro-rule-name-input::placeholder {
    font-weight: 400;
}


.b2bking-pro-rule-name-input:focus {
    outline: none;
    border-color: #906a1d;
    box-shadow: none !important;
}

.field-hint {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.b2bking-select,
.b2bking-select-small {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #191821;
    background: #ffffff;
    transition: all 0.3s ease;
}

.b2bking-select:focus,
.b2bking-select-small:focus {
    outline: none;
    border-color: #906a1d;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1);
}

.b2bking-input-small,
.b2bking-input-medium {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #191821;
    background: #ffffff;
    transition: all 0.3s ease;
}

.b2bking-input-small:focus,
.b2bking-input-medium:focus {
    outline: none;
    border-color: #906a1d;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1);
}

.field-suffix {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
    display: inline;
}

/* Move field-suffix to appear inline with label instead of after input */
.b2bking-rule-builder .field-group:has(.field-suffix) label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.b2bking-rule-builder .field-group .field-suffix {
    margin-left: 4px;
    margin-right: 0;
    order: 1;
}

.b2bking-rule-builder .field-group:has(.field-suffix) input {
    margin-top: 8px;
}

/* Fallback for browsers that don't support :has() */
.b2bking-rule-builder .field-group.period label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.b2bking-rule-builder .field-group.period input {
    margin-top: 8px;
}

/* Ensure prefix elements are not affected and properly positioned */
.b2bking-rule-builder .input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.b2bking-rule-builder .prefix {
    position: absolute;
    left: 12px;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.b2bking-rule-builder .input-with-prefix input {
    padding-left: 30px;
    margin-top: 0 !important;
}


/* Range Inputs */
.range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-separator {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.group-option {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.group-option:hover {
    border-color: #906a1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(144, 106, 29, 0.15);
}

.group-option.selected {
    border-color: #906a1d;
    background: linear-gradient(135deg, rgba(144, 106, 29, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
}

.group-option.selected::before {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #906a1d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.group-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.group-name {
    font-size: 16px;
    font-weight: 600;
    color: #191821;
    margin-bottom: 8px;
}

.group-count {
    font-size: 14px;
    color: #6b7280;
}

/* Source Options */
.source-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-option {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-option:hover {
    border-color: #906a1d;
    background: rgba(144, 106, 29, 0.02);
}

.source-option.selected {
    border-color: #906a1d;
    background: linear-gradient(135deg, rgba(144, 106, 29, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
}

.source-option input[type="hidden"] {
    display: none;
}

.option-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-icon {
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.source-option.selected .option-icon {
    background: #374151;
    color: #ffffff;
}

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #191821;
    margin-bottom: 4px;
}

.option-text span {
    font-size: 14px;
    color: #6b7280;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #374151;
    border-color: #d1d5db;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #906a1d 0%, #a67c1f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(144, 106, 29, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(144, 106, 29, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    position: relative;
}

.btn-icon-container .btn-checkmark,
.btn-icon-container .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button-secondary {
    background: #f8fafc;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.button-secondary:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #374151;
}

.button-primary {
    background: linear-gradient(135deg, #906a1d 0%, #b8860b 100%);
    color: white;
    border: 2px solid transparent;
}

.button-primary:hover {
    background: linear-gradient(135deg, #7a5a17 0%, #a0780a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(144, 106, 29, 0.3);
}

.button-hero {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
}


/* Message Styles */
.b2bking_dynamic_rule_pro_editor_3_message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.b2bking_dynamic_rule_pro_editor_3_message_content {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2bking_dynamic_rule_pro_editor_3_message_icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.b2bking_dynamic_rule_pro_editor_3_message.success .b2bking_dynamic_rule_pro_editor_3_message_icon {
    background: #10b981;
}

.b2bking_dynamic_rule_pro_editor_3_message.error .b2bking_dynamic_rule_pro_editor_3_message_icon {
    background: #ef4444;
}

.b2bking_dynamic_rule_pro_editor_3_message_text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #191821;
}

.b2bking_dynamic_rule_pro_editor_3_message_close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.b2bking_dynamic_rule_pro_editor_3_message_close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Text-only styling for card-based editor header text */
.b2bking-rule-builder .b2bking_dynamic_rule_pro_editor_header_text h1 {
    color: #61646b !important;
    font-size: 19px !important;
    font-weight: 300 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.b2bking-rule-builder .b2bking_dynamic_rule_pro_editor_header_text p {
    color: #9ca3af !important;
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

/* Enhanced Form Field Styling - Professional B2B Design */
.b2bking-rule-builder .b2bking-pro-select,
.b2bking-rule-builder .b2bking-pro-select-small,
.b2bking-rule-builder .b2bking-pro-input-small,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number {
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #191821 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.b2bking-rule-builder .b2bking-pro-select:focus,
.b2bking-rule-builder .b2bking-pro-select-small:focus,
.b2bking-rule-builder .b2bking-pro-input-small:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator:focus,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
    outline: none !important;
}

.b2bking-rule-builder .b2bking-pro-select::placeholder,
.b2bking-rule-builder .b2bking-pro-select-small::placeholder,
.b2bking-rule-builder .b2bking-pro-input-small::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input::placeholder,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number::placeholder {
    color: #999999 !important;
    font-style: normal !important;
}

/* Select dropdown arrow styling */
.b2bking-rule-builder .b2bking-pro-select,
.b2bking-rule-builder .b2bking-pro-select-small {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Select option styling */
.b2bking-rule-builder .b2bking-pro-select option,
.b2bking-rule-builder .b2bking-pro-select-small option {
    padding: 8px 12px !important;
    color: #191821 !important;
    background: #ffffff !important;
    font-size: 14px !important;
}

.b2bking-rule-builder .b2bking-pro-select optgroup,
.b2bking-rule-builder .b2bking-pro-select-small optgroup {
    font-weight: 600 !important;
    color: #191821 !important;
    background: #f8f9fa !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Hover states for better UX */
.b2bking-rule-builder .b2bking-pro-select:hover,
.b2bking-rule-builder .b2bking-pro-select-small:hover,
.b2bking-rule-builder .b2bking-pro-input-small:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator:hover,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number:hover {
    border-color: #d1d5db !important;
}

/* Disabled state styling */
.b2bking-rule-builder .b2bking-pro-select:disabled,
.b2bking-rule-builder .b2bking-pro-select-small:disabled,
.b2bking-rule-builder .b2bking-pro-input-small:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator:disabled,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number:disabled {
    background-color: #f9fafb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    border-color: #e5e7eb !important;
}

/* Error state styling */
.b2bking-rule-builder .b2bking-pro-select.error,
.b2bking-rule-builder .b2bking-pro-select-small.error,
.b2bking-rule-builder .b2bking-pro-input-small.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator.error,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking-custom-rule-type-dropdown.error .b2bking-custom-dropdown-button {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Success state styling */
.b2bking-rule-builder .b2bking-pro-select.success,
.b2bking-rule-builder .b2bking-pro-select-small.success,
.b2bking-rule-builder .b2bking-pro-input-small.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator.success,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number.success {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

/* Condition Builder Button Styling */
.b2bking_pro_rule_condition_add_button {
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #906a1d 0%, #a67c1f 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(144, 106, 29, 0.2) !important;
    white-space: nowrap !important;
    min-width: 140px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    opacity: 0.8;
}

.b2bking_pro_rule_condition_add_button:hover {
    background: linear-gradient(135deg, #7a5a17 0%, #906a1d 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(144, 106, 29, 0.3) !important;
}

.b2bking_pro_rule_condition_add_button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(144, 106, 29, 0.2) !important;
}

.b2bking_pro_rule_condition_add_button:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Condition Remove Button Styling */
.b2bking_dynamic_rule_condition_remove_button {
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    color: #6b7280 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    min-width: 140px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.b2bking_dynamic_rule_condition_remove_button:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transform: translateY(-1px) !important;
}

/* Field Group Labels in Condition Builder */
.b2bking-rule-builder .condition-builder .field-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 6px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Form Group Styling */
.b2bking-rule-builder .form-group {
    margin-bottom: 20px;
}

.b2bking-rule-builder .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #191821;
    margin-bottom: 8px;
    line-height: 1.4;
}

.b2bking-rule-builder .form-help {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
    font-style: italic;
}

/* Card Toggle Button Styling */
.b2bking-rule-builder .card-toggle-btn {
    background: linear-gradient(135deg, #906a1d 0%, #a67c1f 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-width: 80px !important;
    justify-content: center !important;
}

.b2bking-rule-builder .card-toggle-btn:hover {
    background: linear-gradient(135deg, #7a5a17 0%, #906a1d 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(144, 106, 29, 0.3) !important;
}

.b2bking-rule-builder .card-toggle-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(144, 106, 29, 0.2) !important;
}

.b2bking-rule-builder .card-toggle-btn .toggle-icon {
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: transform 0.2s ease !important;
}

.b2bking-rule-builder .card-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg) translateY(-3px) !important;
}

.b2bking-rule-builder .card-toggle-btn .toggle-text {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

/* Card Header Layout */
.b2bking-rule-builder .card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.b2bking-rule-builder .card-header:hover {
    background-color: rgba(144, 106, 29, 0.05) !important;
}

.b2bking-rule-builder .card-title-section {
    flex: 1 !important;
}

/* Optional Badge Styling */
.b2bking-rule-builder .optional-badge {
    display: inline-block !important;
    background: #c9c9c9;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    margin-left: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    position: relative;
    bottom: 1px;
}

/* Card Body Animation */
.b2bking-rule-builder .card-body {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
}

.b2bking-rule-builder .card-body.collapsed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    opacity: 0 !important;
}

.b2bking-rule-builder .card-body.expanded {
    max-height: 1000px !important;
    opacity: 1 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Select2 Dropdown Styling */
.b2bking-rule-builder .select2-container {
    width: 100% !important;
}

div#b2bking_rule_select_applies_multiple_options_container_pro .select2-container {
    position: initial;
}

div#b2bking_rule_select_applies_multiple_options_container_pro .select2-search__field {
    max-width: 1000px !important;
}

.b2bking-rule-builder .select2-dropdown {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    font-size: 14px !important;
    min-width: 300px !important;
}

.b2bking-rule-builder .select2-results {
    padding: 8px 0 !important;
}

.b2bking-rule-builder .select2-results__options {
    max-height: 300px !important;
}

.b2bking-rule-builder .select2-results__option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #191821 !important;
}

.b2bking-rule-builder .select2-results__option--highlighted {
    background-color: #f8f9fa !important;
    color: #191821 !important;
}

.b2bking-rule-builder .select2-results__option--selected {
    background-color: #906a1d !important;
    color: #ffffff !important;
}

.b2bking-rule-builder .select2-results__message {
    padding: 16px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    text-align: center !important;
    font-style: italic !important;
}

/* Discount Name Field - Reduced Emphasis */
.b2bking-rule-builder .form-group:has(#b2bking_rule_select_discountname_pro) label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
}

.b2bking-rule-builder .form-group:has(#b2bking_rule_select_discountname_pro) input {
    border-color: #d1d5db !important;
    background-color: #f9fafb !important;
}

/* Toggle Switch - Enhanced Emphasis */
.b2bking-rule-builder .form-group.toggle-group {
    background: linear-gradient(135deg, rgba(144, 106, 29, 0.05) 0%, rgba(144, 106, 29, 0.02) 100%) !important;
    border: 2px solid rgba(144, 106, 29, 0.2) !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 20px 0 !important;
    position: relative !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Hover effects for toggle-group */
.b2bking-rule-builder .form-group.toggle-group:hover {
    background: linear-gradient(135deg, rgba(144, 106, 29, 0.08) 0%, rgba(144, 106, 29, 0.04) 100%) !important;
    border-color: rgba(144, 106, 29, 0.3) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(144, 106, 29, 0.15) !important;
}

.b2bking-rule-builder .form-group.toggle-group .toggle-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #191821 !important;
    margin-left: 12px !important;
}


.b2bking-rule-builder .select2-container .select2-selection--multiple {
    min-height: 48px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 2px 4px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.b2bking-rule-builder .select2-container .select2-selection--multiple:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
    outline: none !important;
}

.b2bking-rule-builder .select2-container .select2-selection--multiple:hover {
    border-color: #d1d5db !important;
}

.b2bking-rule-builder .select2-container .select2-selection--single {
    height: 48px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.b2bking-rule-builder .select2-container .select2-selection--single:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
    outline: none !important;
}

.b2bking-rule-builder .select2-container .select2-selection--single:hover {
    border-color: #d1d5db !important;
}

.b2bking-rule-builder .select2-container .select2-selection__rendered {
    font-size: 14px !important;
    color: #191821 !important;
    line-height: 1.4 !important;
}
.b2bking-wp-7-plus .b2bking-rule-builder .select2-container .select2-selection__rendered {
}

.b2bking-rule-builder .select2-container .select2-selection__placeholder {
    color: #999999 !important;
    font-style: normal !important;
}

.b2bking-rule-builder .select2-container .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
}

.b2bking-rule-builder .select2-container .select2-selection__choice {
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    margin: 2px !important;
    font-size: 13px !important;
    color: #191821 !important;
}

.b2bking-rule-builder .select2-container .select2-selection__choice__remove {
    color: #6b7280 !important;
    margin-right: 6px !important;
    font-weight: bold !important;
}

.b2bking-rule-builder .select2-container .select2-selection__choice__remove:hover {
    color: #e74c3c !important;
}

/* Select2 Dropdown Results */
.b2bking-rule-builder .select2-dropdown {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    background: #ffffff !important;
}

.b2bking-rule-builder .select2-results__option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #191821 !important;
    transition: all 0.2s ease !important;
}

.b2bking-rule-builder .select2-results__option--highlighted {
    background: #f8f9fa !important;
    color: #191821 !important;
}

.b2bking-rule-builder .select2-results__option--selected {
    background: #906a1d !important;
    color: #ffffff !important;
}

.b2bking-rule-builder .select2-results__group {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #191821 !important;
    background: #f8f9fa !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

#b2bking_dynamic_rule_pro_editor_main_container input.select2-search__field{
    min-width: 300px;
}

/* Select2 inline search styling */
#b2bking_dynamic_rule_pro_editor_main_container .select2-search--inline {
    margin-bottom: 0px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .condition-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .action-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .b2bking-rule-preview {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 32px 0;
        max-width: none;
    }
}

@media (max-width: 768px) {


    .condition-row select, .condition-row input, .condition-row .input-with-prefix, .final-card-text{
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile form field adjustments */
    .b2bking-rule-builder .b2bking-pro-select,
    .b2bking-rule-builder .b2bking-pro-select-small,
    .b2bking-rule-builder .b2bking-pro-input-small,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-input-medium,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-content-selector,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-select-multiple-options,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking-pro-specific-users-selector,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder select,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .condition-builder input,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_name,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_operator,
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .b2bking_pro_rule_condition_number {
        padding: 14px 16px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .b2bking-rule-builder .select2-container .select2-selection--single,
    .b2bking-rule-builder .select2-container .select2-selection--multiple {
        min-height: 52px !important;
    }
    
    .b2bking-rule-builder .select2-container .select2-selection__rendered {
        font-size: 16px !important;
    }
    
    .b2bking_pro_rule_condition_add_button {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }

    .b2bking-rule-builder {
        padding: 15px;
    }
    
    .b2bking_dynamic_rule_pro_editor_header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0;
        margin: 0 0 16px 0;
    }
    
    .b2bking_dynamic_rule_pro_editor_header_title {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .b2bking_dynamic_rule_pro_editor_header_text h1 {
        font-size: 20px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .final-card-content {
        padding: 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .final-card-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        flex: none;
    }
    
    .final-card-icon {
        align-self: center;
    }
    
    .button {
        width: 100%;
        justify-content: center;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .range-separator {
        text-align: center;
    }
    
    /* Mobile text styling for card-based editor header text */
    .b2bking-rule-builder .b2bking_dynamic_rule_pro_editor_header_text h1 {
        font-size: 18px !important;
    }
}

/* Toggle Switch - Exact copy of b2bking_dynamic_rules_pro_rule_toggle_switch */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_toggle_switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_toggle_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_rule_toggle_slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_rule_toggle_slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_toggle_switch input:checked + .b2bking_dynamic_rule_pro_rule_toggle_slider {
    background-color: #906a1d;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_toggle_switch input:checked + .b2bking_dynamic_rule_pro_rule_toggle_slider:before {
    transform: translateX(20px);
}

#b2bking_dynamic_rule_pro_editor_main_container .toggle-text {
    font-size: 14px;
    color: #374151;
    font-weight: 400;
    vertical-align: middle;
    display: inline-block;
    margin-left: 8px;
}

/* Inline toggle switch container - Specific to Dynamic Rule Editor */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .form-group:has(.b2bking_dynamic_rule_pro_toggle_switch) {
    display: flex;
    align-items: center;
    gap: 12px;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .form-group:has(.b2bking_dynamic_rule_pro_toggle_switch) label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Fallback for browsers that don't support :has() - Specific to Dynamic Rule Editor */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .form-group.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking-rule-builder .form-group.toggle-group label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom Help Tip Styling */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-help-tip {
    position: relative;
    display: inline-flex;
    margin-left: 8px;
    cursor: help;
    color: #6b7280;
    transition: color 0.2s ease;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking-help-tip:hover {
    color: #906a1d;
}


/* Help tip content container */
.b2bking-help-tip-content {
    position: fixed;
    background: #ffffff;
    color: #191821;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    line-height: 1.5;
    max-width: 350px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 999999;
    pointer-events: none;
}

.b2bking-help-tip-text {
    margin-bottom: 12px;
    color: #374151;
    font-weight: 400;
}

.b2bking-help-tip-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #906a1d 0%, #b8860b 100%);
    border-radius: 12px 12px 0 0;
}

.b2bking-help-tip-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking-help-tip:hover .b2bking-help-tip-content {
    opacity: 1;
    visibility: visible;
}

/* Gold Border for Selected/Non-Empty Elements */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_input.has-content,
#b2bking_dynamic_rule_pro_editor_main_container input.b2bking_dynamic_rule_pro_editor_input.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_dynamic_rule_pro_editor_select.has-content,
#b2bking_dynamic_rule_pro_editor_main_container select.b2bking_dynamic_rule_pro_editor_select.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-rule-name-input.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-select.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-select-small.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-input-medium.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-input-small.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-content-selector.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-select-multiple-options.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-pro-specific-users-selector.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_pro_rule_condition_name.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_pro_rule_condition_operator.has-content,
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_pro_rule_condition_number.has-content {
    border-color: #cdc3ad !important;
}

/* Select2 containers with content */
#b2bking_dynamic_rule_pro_editor_main_container .select2-container.has-content .select2-selection--single,
#b2bking_dynamic_rule_pro_editor_main_container .select2-container.has-content .select2-selection--multiple {
    border-color: #cdc3ad !important;
}

/* Custom Rule Type Dropdown with content */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking-custom-rule-type-dropdown.has-content .b2bking-custom-dropdown-button {
    border-color: #cdc3ad !important;
}
#b2bking_dynamic_rule_pro_editor_main_container .select2-selection--multiple {
    display: flex !important;
    align-items: center;
}
#b2bking_dynamic_rule_pro_editor_main_container .select2-selection--multiple input{
    margin-top: 0px;
}

/* Custom Rule Type Dropdown with Icons */
.b2bking-custom-rule-type-dropdown {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 9999;
}

.b2bking-custom-dropdown-button {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #191821;
    text-align: left;
}

.b2bking-custom-dropdown-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.b2bking-custom-dropdown-button:focus {
    outline: none;
    border-color: #906a1d;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1);
}

.b2bking-custom-dropdown-selected {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.b2bking-custom-dropdown-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
}

.b2bking-custom-dropdown-icon svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.b2bking-custom-dropdown-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.b2bking-custom-dropdown-arrow {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.b2bking-custom-rule-type-dropdown.open .b2bking-custom-dropdown-arrow {
    transform: rotate(180deg);
}

.b2bking-custom-dropdown-list {
    position: fixed;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 999999;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.b2bking-custom-dropdown-list[style*="display: block"] {
    opacity: 1;
}

.b2bking-custom-dropdown-search {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #191821;
    box-sizing: border-box;
    border-radius: 6px 6px 0 0;
    border: 0px !important;
    outline: none !important;
    box-shadow: none !important;
    border-top: 1px solid #f3f3f3 !important;
    border-bottom: 1px solid #f3f3f3 !important;
    border-radius: 0px !important;
    background: white !important;
}

.b2bking-custom-dropdown-search:focus {
    outline: none;
    background: #f8f9fa;
}

.b2bking-custom-dropdown-search::placeholder {
    color: #9ca3af;
}

.b2bking-custom-dropdown-group-header {
    padding: 8px 16px;
    font-weight: 600;
    color: #191821;
    background: #f8f9fa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.b2bking-custom-dropdown-option {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.b2bking-custom-dropdown-option:last-child {
    border-bottom: none;
}

.b2bking-custom-dropdown-option:hover {
    background-color: #f8f9fa;
}

.b2bking-custom-dropdown-option:focus {
    outline: none;
    background-color: #f0f9ff;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.b2bking-custom-dropdown-option-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #6b7280;
}

.b2bking-custom-dropdown-option-icon svg {
    width: 16px;
    height: 16px;
}

.b2bking-custom-dropdown-option-text {
    flex: 1;
    font-size: 14px;
    color: #191821;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icon colors for different rule types */
.b2bking-custom-dropdown-option[data-value="discount_amount"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="discount_percentage"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="bogo_discount"] .b2bking-custom-dropdown-option-icon {
    color: #DC2626;
}

.b2bking-custom-dropdown-option[data-value="raise_price"] .b2bking-custom-dropdown-option-icon {
    color: #DC2626;
}

.b2bking-custom-dropdown-option[data-value="fixed_price"] .b2bking-custom-dropdown-option-icon {
    color: #10B981;
}

.b2bking-custom-dropdown-option[data-value="hidden_price"] .b2bking-custom-dropdown-option-icon {
    color: #9CA3AF;
}

.b2bking-custom-dropdown-option[data-value="tiered_price"] .b2bking-custom-dropdown-option-icon {
    color: #DC2626;
}

.b2bking-custom-dropdown-option[data-value="minimum_order"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="maximum_order"] .b2bking-custom-dropdown-option-icon {
    color: #F59E0B;
}

.b2bking-custom-dropdown-option[data-value="free_shipping"] .b2bking-custom-dropdown-option-icon {
    color: #3B82F6;
}

.b2bking-custom-dropdown-option[data-value="required_multiple"] .b2bking-custom-dropdown-option-icon {
    color: #F59E0B;
}

.b2bking-custom-dropdown-option[data-value="unpurchasable"] .b2bking-custom-dropdown-option-icon {
    color: #6B7280;
}

.b2bking-custom-dropdown-option[data-value="tax_exemption_user"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="tax_exemption"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="add_tax_percentage"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="add_tax_amount"] .b2bking-custom-dropdown-option-icon {
    color: #2563EB;
}

.b2bking-custom-dropdown-option[data-value="replace_prices_quote"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="quotes_products"] .b2bking-custom-dropdown-option-icon {
    color: #7C3AED;
}

.b2bking-custom-dropdown-option[data-value="set_currency_symbol"] .b2bking-custom-dropdown-option-icon {
    color: #2563EB;
}

.b2bking-custom-dropdown-option[data-value="payment_method_minmax_order"] .b2bking-custom-dropdown-option-icon,
.b2bking-custom-dropdown-option[data-value="payment_method_discount"] .b2bking-custom-dropdown-option-icon {
    color: #14B8A6;
}

.b2bking-custom-dropdown-option[data-value="payment_method_restriction"] .b2bking-custom-dropdown-option-icon {
    color: #6B7280;
}

.b2bking-custom-dropdown-option[data-value="shipping_method_restriction"] .b2bking-custom-dropdown-option-icon {
    color: #6B7280;
}

.b2bking-custom-dropdown-option[data-value="rename_purchase_order"] .b2bking-custom-dropdown-option-icon {
    color: #14B8A6;
}

.b2bking-custom-dropdown-option[data-value="info_table"] .b2bking-custom-dropdown-option-icon {
    color: #9CA3AF;
}

/* Selected state styling */
.b2bking-custom-dropdown-option.selected {
    background-color: #f0f9ff;
    color: #1e40af;
}

.b2bking-custom-dropdown-option.selected .b2bking-custom-dropdown-option-icon {
    color: #3b82f6;
}

/* Icon colors for selected dropdown button based on data-value */
.b2bking-custom-dropdown-button[data-value="discount_amount"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="discount_percentage"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="bogo_discount"] .b2bking-custom-dropdown-icon {
    color: #DC2626;
}

.b2bking-custom-dropdown-button[data-value="raise_price"] .b2bking-custom-dropdown-icon {
    color: #DC2626;
}

.b2bking-custom-dropdown-button[data-value="fixed_price"] .b2bking-custom-dropdown-icon {
    color: #10B981;
}

.b2bking-custom-dropdown-button[data-value="hidden_price"] .b2bking-custom-dropdown-icon {
    color: #9CA3AF;
}

.b2bking-custom-dropdown-button[data-value="tiered_price"] .b2bking-custom-dropdown-icon {
    color: #DC2626;
}

.b2bking-custom-dropdown-button[data-value="minimum_order"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="maximum_order"] .b2bking-custom-dropdown-icon {
    color: #F59E0B;
}

.b2bking-custom-dropdown-button[data-value="free_shipping"] .b2bking-custom-dropdown-icon {
    color: #3B82F6;
}

.b2bking-custom-dropdown-button[data-value="required_multiple"] .b2bking-custom-dropdown-icon {
    color: #F59E0B;
}

.b2bking-custom-dropdown-button[data-value="unpurchasable"] .b2bking-custom-dropdown-icon {
    color: #6B7280;
}

.b2bking-custom-dropdown-button[data-value="tax_exemption_user"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="tax_exemption"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="add_tax_percentage"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="add_tax_amount"] .b2bking-custom-dropdown-icon {
    color: #2563EB;
}

.b2bking-custom-dropdown-button[data-value="replace_prices_quote"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="quotes_products"] .b2bking-custom-dropdown-icon {
    color: #7C3AED;
}

.b2bking-custom-dropdown-button[data-value="set_currency_symbol"] .b2bking-custom-dropdown-icon {
    color: #2563EB;
}

.b2bking-custom-dropdown-button[data-value="payment_method_minmax_order"] .b2bking-custom-dropdown-icon,
.b2bking-custom-dropdown-button[data-value="payment_method_discount"] .b2bking-custom-dropdown-icon {
    color: #14B8A6;
}

.b2bking-custom-dropdown-button[data-value="payment_method_restriction"] .b2bking-custom-dropdown-icon {
    color: #6B7280;
}

.b2bking-custom-dropdown-button[data-value="shipping_method_restriction"] .b2bking-custom-dropdown-icon {
    color: #6B7280;
}

.b2bking-custom-dropdown-button[data-value="rename_purchase_order"] .b2bking-custom-dropdown-icon {
    color: #14B8A6;
}

.b2bking-custom-dropdown-button[data-value="info_table"] .b2bking-custom-dropdown-icon {
    color: #9CA3AF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .b2bking-custom-dropdown-list {
        max-height: 400px;
    }
    
    .b2bking-custom-dropdown-option {
        padding: 10px 12px;
    }
    
    .b2bking-custom-dropdown-group-header {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ============================================
   B2BKing Content Search Types - Dynamic Rule Editor Specific
   ============================================ */

/* Search Type Checkboxes - Specific to Dynamic Rule Editor */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types {
    display: flex;
    align-items: center;
    gap: 0px;
    margin: 12px 0 16px 0;
    padding: 8px 8px;
    background: #f6f6f6 !important;
    border: 1px solid #f3f3f3;
    border-radius: 8px;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    user-select: none;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types label:hover {
    background: #f8f9fa;
    color: #191821;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #906a1d;
    border-radius: 3px;
    transition: all 0.2s ease;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types input[type="checkbox"]:before{
    filter: grayscale(1);
}
.b2bking-wp-7-plus #b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types input[type="checkbox"]:before{
    filter: invert(1) opacity(0.6);
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types input[type="checkbox"]:checked {
    background-color: transparent;
}

.b2bking-wp-7-plus #b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types input[type="checkbox"]:checked {
    border-color: #1e1e1e;
}

#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(144, 106, 29, 0.1);
}

/* Selected state for labels with checked checkboxes */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types label:has(input[type="checkbox"]:checked) {
    border-color: #e2d9ca;
    color: #191821;
}
.b2bking_content_search_types input[type="checkbox"]::before {
    width: 1.2rem !important;
}

/* Fallback for browsers that don't support :has() */
#b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types label.checked {
    background: linear-gradient(135deg, rgba(144, 106, 29, 0.1) 0%, rgba(144, 106, 29, 0.05) 100%);
    border-color: #906a1d;
    color: #191821;
    font-weight: 600;
}

/* Responsive adjustments for search types */
@media (max-width: 768px) {
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    
    #b2bking_dynamic_rule_pro_editor_main_container .b2bking_content_search_types label {
        justify-content: center;
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Countries Select Buttons Styling */
.b2bking-countries-button {
    padding: 10px 18px !important;
    background: #f8f9fa !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.b2bking-countries-button:hover {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.b2bking-countries-button:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.b2bking-countries-select-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================================
   Price Tiers Styling
   ============================================ */

#b2bking_price_tiers_container_pro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.b2bking-price-tier-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.b2bking-price-tier-quantity,
.b2bking-price-tier-price {
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #191821 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

.b2bking-price-tier-quantity {
    flex: 0 0 180px;
    min-width: 0;
}

.b2bking-price-tier-price {
    flex: 1;
    min-width: 0;
}

.b2bking-price-tier-quantity:focus,
.b2bking-price-tier-price:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
    outline: none !important;
}

.b2bking-price-tier-quantity::placeholder,
.b2bking-price-tier-price::placeholder {
    color: #999999 !important;
    font-style: normal !important;
}

.b2bking-price-tier-quantity:hover,
.b2bking-price-tier-price:hover {
    border-color: #d1d5db !important;
}

.b2bking-remove-tier-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.b2bking-remove-tier-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: translateY(-1px);
}

.b2bking-remove-tier-btn:active {
    transform: translateY(0);
}

.b2bking-remove-tier-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.b2bking-price-tiers-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.b2bking-add-tier-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8f9fa;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
}

.b2bking-add-tier-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #191821;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.b2bking-add-tier-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.b2bking-add-tier-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Responsive adjustments for price tiers */
@media (max-width: 768px) {
    .b2bking-price-tier-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .b2bking-price-tier-quantity,
    .b2bking-price-tier-price {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .b2bking-remove-tier-btn {
        align-self: flex-end;
        width: 100%;
        margin-top: 8px;
    }
}

/* ============================================
   Information Table Rows Styling
   ============================================ */

#b2bking_info_table_rows_container_pro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.b2bking-info-table-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.b2bking-info-table-label,
.b2bking-info-table-text {
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #191821 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    flex: 1;
    min-width: 0;
}

.b2bking-info-table-label:focus,
.b2bking-info-table-text:focus {
    border-color: #906a1d !important;
    box-shadow: 0 0 0 3px rgba(144, 106, 29, 0.1) !important;
    outline: none !important;
}

.b2bking-info-table-label::placeholder,
.b2bking-info-table-text::placeholder {
    color: #999999 !important;
    font-style: normal !important;
}

.b2bking-info-table-label:hover,
.b2bking-info-table-text:hover {
    border-color: #d1d5db !important;
}

.b2bking-remove-info-table-row-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.b2bking-remove-info-table-row-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: translateY(-1px);
}

.b2bking-remove-info-table-row-btn:active {
    transform: translateY(0);
}

.b2bking-remove-info-table-row-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.b2bking-info-table-rows-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.b2bking-add-info-table-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8f9fa;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
}

.b2bking-add-info-table-row-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #191821;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.b2bking-add-info-table-row-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.b2bking-add-info-table-row-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.b2bking-info-table-description {
    margin-top: 12px;
    padding: 0;
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
}

/* Responsive adjustments for info table rows */
@media (max-width: 768px) {
    .b2bking-info-table-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .b2bking-info-table-label,
    .b2bking-info-table-text {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .b2bking-remove-info-table-row-btn {
        align-self: flex-end;
        width: 100%;
        margin-top: 8px;
    }
}

