#conditional-email-routing>h2 {
	font-size: 24px !important;
	font-weight: 600 !important;
	margin-bottom: 21px !important;
}

.cercf7-field-checkbox {
	margin-bottom: 15px;
}

.cercf7-field-checkbox label {
	font-size: 15px;
	font-weight: 500;
	margin-left: 5px;
	line-height: 23px;
}

.cercf7-rountings {
	background: #fff;
	padding: 25px;
	border-radius: 6px;
}

.cercf7-role {
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    column-gap: 20px;
    margin-bottom: 20px;
}

ul.cercf7_conditions_list {
	margin-top: 0;
	margin-left: 0;
	padding-left: 0;
}

a.cercf7_add_condition.button {
	float: right;
}

a.cercf7_remove_role {
	display: block
}

.cercf7-role .cercf7-field label {
	font-size: 15px;
	font-weight: 500;
	margin-right: 10px;
	padding: 5px 10px;
	border-radius: 50px;
	border: 1px solid #ddd;
}

.cercf7-role .cercf7-field select.cercf7_selected_field {
	height: 34px;
}

.cercf7_conditions_list li span {
	font-size: 15px;
	font-weight: 400;
	padding: 0 10px;
}

.cercf7_conditions_list li input {
	height: 34px;
}

.cercf7_conditions_list li {
	margin-bottom: 15px;
}

a.cercf7_remove_role.button {
	background: #ff1919;
	color: #fff;
	border-color: red;
	font-size: 14px;
	font-weight: 500;
}

a.cercf7_add_condition.button {
	float: right;
	background: #fff;
	color: #02bd02;
	border-color: #02bd02;
	font-size: 14px;
	font-weight: 400;
}

a.cercf7_add_role.button {
	background: #02bd02;
	color: #fff;
	border-color: #02bd02;
	font-size: 14px;
	font-weight: 500;
}

a.cercf7_remove_role.button:before {
    content: "\f182";
    font-family: 'dashicons';
    font-weight: 400;
    font-size: 20px;
    margin: 0;
    padding: 0;
    line-height: 32px;
}

.cercf7-roles-header {
	padding-bottom: 20px;
	border-bottom: 1px solid #ddd;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
	column-gap: 25px;
	margin-bottom: 20px;
	justify-content: space-between;
	color: #000;
	font-size: 15px;
	font-weight: 500;
}

span.remove_condition {
	color: red;
	border: 1px solid red;
	border-radius: 50px;
	padding: 3px 6px !important;
	margin-left: 10px;
	cursor: pointer;
	font-size: 12px !important;
	line-height: 8px;
}

a.cercf7-pro-link {
	color: #e73a3a;
	display: block;
}

.cercf7-pro-box p {
	color: #2d2df2;
	font-size: 14px;
}

.cercf7_conditions_list li span.cercf7-tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
	padding: 0
}

.cercf7_conditions_list li span.cercf7-tooltip-icon {
	padding: 0;
	width: 18px;
	height: 18px;
	display: inline-block;
	background: #6c6969;
	color: #fff;
	text-align: center;
	line-height: 18px;
	font-size: 12px;
	border-radius: 30px;
}

/* Tooltip text */
.cercf7_conditions_list li span.cercf7-tooltip-text {
	visibility: hidden;
	width: auto;
	background-color: black;
	color: #ffffff;
	text-align: center;
	padding: 10px !important;
	border-radius: 6px;
	position: absolute;
	z-index: 1;
	font-size: 13px
}

/* Show the tooltip text on hover */
.cercf7-tooltip:hover .cercf7-tooltip-text {
	visibility: visible;
}

.cercf7_selected_field_options {
	display: none;
}

/* =====================================================
   AND-condition rules (new feature — additive)
   ===================================================== */
.cercf7_and_field_options {
	display: none !important;
}

hr.cercf7-section-divider {
    margin: 30px 0 20px;
    border: none;
    border-top: 2px dashed #ddd;
}

h3.cercf7-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.cercf7-and-role {
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 25px;
    margin-bottom: 20px;
}

.cercf7-and-conditions-wrapper {
    flex: 1 1 auto;
    min-width: 0;
}

ul.cercf7_and_conditions_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

li.cercf7-and-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

li.cercf7-and-row select,
li.cercf7-and-row input[type="text"] {
    height: 34px;
}

.cercf7-if-badge,
.cercf7-and-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    min-width: 38px;
    text-align: center;
    display: inline-block;
}

.cercf7-if-badge {
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #444;
}

.cercf7-and-badge {
    background: #f0f6ff;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.cercf7-eq {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    padding: 0 2px;
}

span.cercf7-remove-and-cond {
    color: red;
    border: 1px solid red;
    border-radius: 50px;
    padding: 6px;
    cursor: pointer;
    font-size: 12px;
    line-height: 8px;
}

a.cercf7_add_and_cond.button {
    display: inline-block;
    margin-top: 4px;
    background: #fff;
    color: #2271b1;
    border-color: #2271b1;
    font-size: 13px;
    font-weight: 400;
}

.cercf7-and-mailto-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 4px;
    flex-wrap: wrap;
}

.cercf7-and-mailto-wrapper > span:first-child {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.cercf7-and-mailto-wrapper input[type="text"] {
    height: 34px;
    min-width: 200px;
}

.cercf7-and-mailto-wrapper .cercf7-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.cercf7-and-mailto-wrapper .cercf7-tooltip-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: #6c6969;
    color: #fff;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    border-radius: 30px;
}

.cercf7-and-mailto-wrapper .cercf7-tooltip-text {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    font-size: 13px;
    right: 0;
}

.cercf7-and-mailto-wrapper .cercf7-tooltip:hover .cercf7-tooltip-text {
    visibility: visible;
}

a.cercf7_remove_and_role.button {
    background: #ff1919;
    color: #fff;
    border-color: red;
    font-size: 14px;
    font-weight: 500;
    height: 33px;
}

a.cercf7_remove_and_role.button:before {
    content: "\f182";
    font-family: 'dashicons';
    font-weight: 400;
    font-size: 20px;
    margin: 0;
    padding: 0;
    line-height: 32px;
}

.cercf7-pro-demo-disabled {
    opacity: 0.5;
    pointer-events: none;
}

#conditional-email-routing-tab,
#cercf7-mail-2-panel-tab {
    border-color: #4B8AF4 !important;
    background-color: #4B8AF4 !important;
    color: #fff !important;
}

#conditional-email-routing-tab[aria-selected="true"],
#cercf7-mail-2-panel-tab[aria-selected="true"] {
    background-color: transparent !important;
    color: #4B8AF4 !important;
    border-bottom: 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
}

/* =====================================================
   Conditional Mail 2 Styles
   ===================================================== */
.cercf7-rule-card { 
    background: #fff; 
    border: 1px solid #e5e5e5; 
    padding: 20px; 
    margin-bottom: 25px; 
    position: relative; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.cercf7-rule-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #2271b1;
}
.cercf7-rule-card h3 { 
    margin-top: 0; 
    color: #1d2327; 
    font-size: 15px; 
    font-weight: 600;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.cercf7-remove-rule { 
    background: #ff1919;
    color: #fff;
    border: 1px solid red;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: pointer;
    float: right;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.cercf7-remove-rule:before {
    content: "\f182";
    font-family: 'dashicons';
    margin-right: 6px;
    font-size: 16px;
}
.cercf7-remove-rule:hover {
    background: #d63638;
}
.cercf7-grid { 
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    margin-bottom: 20px; 
}
.cercf7-grid > div {
    flex: 1;
    min-width: 200px;
}
.cercf7-full-width { 
    width: 100% !important; 
    max-width: 100%;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    padding: 0 10px;
}
textarea.cercf7-full-width {
    height: auto;
    padding: 10px;
}
.cercf7-label { 
    display: block; 
    font-weight: 600; 
    margin-bottom: 8px; 
    font-size: 13px; 
    color: #2c3338;
}
.cercf7-rule-card hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px dashed #dcdcde;
}

.cercf7-mail2-rountings{
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}