/* General Wrapper */
.rntfw-wrap {
    margin-top: 20px;
    background-color: #f8faff; /* Lighter, modern background */
    padding: 2.5rem 2rem; /* Increased padding */
    border-radius: 0.75rem; /* Slightly more rounded corners */
    font-family: 'Inter', sans-serif, -apple-system, BlinkMacMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; /* Modern font stack */
    color: #334155; /* Darker text for readability */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025); /* Subtle shadow for depth */
}

.rntfw-wrap h1 {
    font-size: 1.875rem; /* Larger heading */
    line-height: 2.25rem;
    font-weight: 700;
    color: #1a202c; /* More prominent heading color */
    margin-bottom: 1.5rem; /* More space below heading */
}

.rntfw-wrap h2 {
    font-size: 1.375rem; /* Adjusted subheading size */
    line-height: 2rem;
    font-weight: 600;
    color: #2d3748; /* Subheading color */
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem; /* More padding below for separator */
    border-bottom: 1px solid #e2e8f0; /* Softer border color */
}

.rntfw-wrap p {
    color: #4a5568; /* Slightly darker paragraph text */
    margin-bottom: 1.25rem; /* Adjusted paragraph spacing */
}

/* Grid Layout */
.rntfw-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem; /* Increased gap for more breathing room */
}

@media (min-width: 1024px) {
    .rntfw-grid-lg-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .rntfw-grid-lg-span-2 {
        grid-column: span 2 / span 2;
    }
    .rntfw-grid-lg-span-1 { /* Added for explicit single column span */
        grid-column: span 1 / span 1;
    }
}

/* Card */
.rntfw-card {
    background-color: #ffffff;
    padding: 2rem; /* Increased padding */
    border-radius: 0.75rem; /* More rounded corners */
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.05); /* Enhanced shadow */
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0; /* Subtle border */
}

/* Forms */
.rntfw-form-table {
    width: 100%;
    margin-top: 0.5rem; /* Adjust spacing */
}

.rntfw-form-table th, .rntfw-form-table td {
    padding-top: 1rem; /* More vertical padding */
    padding-bottom: 1rem; /* More vertical padding */
    border-bottom: 1px solid #edf2f7; /* Lighter border for rows */
}

.rntfw-form-table th {
    width: 30%; /* Slightly adjusted width for labels */
    text-align: left;
    font-weight: 600; /* Bolder labels */
    color: #2d3748;
}

.rntfw-form-table tr:last-child th, .rntfw-form-table tr:last-child td {
    border-bottom: none; /* No border for the last row */
}

.rntfw-input {
    width: 100%;
    padding: 0.75rem 1rem; /* More padding */
    border: 1px solid #cbd5e0; /* Softer border color */
    border-radius: 0.5rem; /* More rounded */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06); /* Subtle inner shadow */
    transition: all 0.2s ease-in-out;
}

.rntfw-input:focus {
    border-color: #4299e1; /* Focus color */
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); /* Focus ring */
    outline: none;
}

.rntfw-input[readonly] {
    background-color: #f7fafc; /* Lighter readonly background */
    cursor: not-allowed;
}

.rntfw-form-text {
    font-size: 0.875rem;
    line-height: 1.5rem; /* Adjusted line height */
    color: #718096; /* Muted description text */
    margin-top: 0.5rem; /* More space above description */
}

/* Buttons */
.rntfw-button,
.rntfw-wrap .button, /* Target default WP buttons */
.rntfw-wrap .button-primary,
.rntfw-wrap .button-secondary {
    font-weight: 600; /* Adjusted font weight */
    padding: 0.65rem 1.25rem; /* Adjusted padding */
    border-radius: 0.375rem; /* Slightly more rounded */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none; /* Ensure no underline */
    display: inline-flex; /* For better icon alignment */
    align-items: center;
    justify-content: center;
}

/* Primary Button */
.rntfw-wrap .button-primary,
.rntfw-button.rntfw-button-blue { /* Renamed for consistency with brand blue */
    background-color: #4299e1; /* Primary blue */
    color: #ffffff;
    border: 1px solid #3182ce;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rntfw-wrap .button-primary:hover,
.rntfw-button.rntfw-button-blue:hover {
    background-color: #3182ce;
    border-color: #2b6cb0;
    color: #ffffff;
}

/* Secondary Button */
.rntfw-wrap .button-secondary,
.rntfw-button { /* Base rntfw-button style for secondary look */
    background-color: #edf2f7; /* Light gray */
    color: #4a5568;
    border: 1px solid #cbd5e0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.rntfw-wrap .button-secondary:hover,
.rntfw-button:hover {
    background-color: #e2e8f0;
    border-color: #a0aec0;
    color: #2d3748;
}

/* Red Button */
.rntfw-button-red,
.rntfw-wrap .button.rntfw-button-red {
    background-color: #c00000; /* Deeper red */
    border-color: #a00000; /* Darker border for contrast */
    color: #ffffff; /* White text */
}

.rntfw-button-red:hover,
.rntfw-wrap .button.rntfw-button-red:hover {
    background-color: #a00000; /* Even deeper red on hover */
    border-color: #800000; /* Darkest border on hover */
    color: #ffffff; /* White text on hover */
}

/* Tables */
.rntfw-table-wrapper {
    background-color: #ffffff;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.05); /* Enhanced shadow */
    border-radius: 0.75rem; /* More rounded corners */
    overflow-x: auto;
    border: 1px solid #e2e8f0; /* Subtle border */
}

.rntfw-table {
    min-width: 100%;
    border-collapse: collapse;
}

.rntfw-table thead {
    background-color: #f7fafc; /* Lighter header background */
}

.rntfw-table th {
    padding: 1rem 1.5rem; /* More padding */
    text-align: left;
    font-size: 0.8rem; /* Slightly smaller font */
    line-height: 1.25rem;
    font-weight: 600; /* Bolder header text */
    color: #718096; /* Muted header color */
    text-transform: uppercase;
    letter-spacing: 0.075em; /* Increased letter spacing */
    border-bottom: 1px solid #e2e8f0;
}

.rntfw-table tbody {
    background-color: #ffffff;
}

.rntfw-table td {
    padding: 1rem 1.5rem; /* More padding */
    font-size: 0.9rem; /* Slightly larger content font */
    line-height: 1.5rem;
    color: #4a5568; /* Content text color */
    border-top: 1px solid #edf2f7; /* Lighter separator */
}

.rntfw-table code {
    background-color: #f0f4f8; /* Light background for code */
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.85em;
    color: #3182ce;
    white-space: pre-wrap;
    word-break: break-all;
}

.rntfw-table a {
    color: #4299e1; /* Link color */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.rntfw-table a:hover {
    text-decoration: underline;
    color: #3182ce;
}

/* Badges */
.rntfw-badge {
    display: inline-flex;
    padding: 0.3rem 0.6rem; /* Adjusted padding */
    font-size: 0.75rem;
    line-height: 1.25rem;
    font-weight: 600;
    border-radius: 9999px; /* Pill shape */
    align-items: center;
    justify-content: center;
}

.rntfw-badge-green {
    background-color: #e6fffa;
    color: #38a169;
}

.rntfw-badge-red {
    background-color: #fff5f5;
    color: #e53e3e;
}

.rntfw-badge-yellow {
    background-color: #fffaf0;
    color: #d69e2e;
}

.rntfw-badge-blue {
    background-color: #ebf8ff;
    color: #4299e1;
}

/* Flex Util */
.rntfw-flex {
    display: flex;
}

.rntfw-flex-justify-between {
    justify-content: space-between;
}

.rntfw-flex-align-center {
    align-items: center;
}

.rntfw-flex-col { /* Added flex column */
    flex-direction: column;
}

/* Modern Toggle Switch */
.rntfw-switch {
    position: relative;
    display: inline-block;
    width: 48px; /* Slightly adjusted width */
    height: 28px;
    vertical-align: middle;
}

.rntfw-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.rntfw-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0; /* Off state color */
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px; /* Rounded corners */
}

.rntfw-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%; /* Circular handle */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Subtle shadow on handle */
}

input:checked + .rntfw-slider {
    background-color: #4299e1; /* On state color */
}

input:focus + .rntfw-slider {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); /* Focus ring */
    outline: none;
}

input:checked + .rntfw-slider:before {
    -webkit-transform: translateX(20px); /* Adjusted translation for 48px width */
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Spinner Alignment */
.rntfw-wrap .spinner {
    float: none;
    vertical-align: middle;
    margin-left: 8px; /* More space */
    position: relative;
    top: -2px; /* Adjust vertical alignment */
}

/* Space utilities */
.rntfw-space-y-8 > *:not(:last-child) {
    margin-bottom: 2rem;
}
.rntfw-space-y-6 > *:not(:last-child) {
    margin-bottom: 1.5rem;
}
.rntfw-space-y-4 > *:not(:last-child) {
    margin-bottom: 1rem;
}
.rntfw-space-y-3 > *:not(:last-child) {
    margin-bottom: 0.75rem;
}
.rntfw-space-y-2 > *:not(:last-child) {
    margin-bottom: 0.5rem;
}
.rntfw-space-x-2 > *:not(:last-child) {
    margin-right: 0.5rem;
}
.rntfw-mt-4 { margin-top: 1rem; } /* New utility for top margin */
.rntfw-mb-4 { margin-bottom: 1rem; } /* New utility for bottom margin */
.rntfw-py-4 { padding-top: 1rem; padding-bottom: 1rem; } /* New utility for vertical padding */

/* Text and Font */
.rntfw-text-red {
    color: #ef4444;
}
.rntfw-text-red-hover:hover {
    color: #b91c1c;
}
.rntfw-font-bold {
    font-weight: 700;
}
.rntfw-font-semibold {
    font-weight: 600;
}
.rntfw-font-medium {
    font-weight: 500;
}
.rntfw-text-xl {
    font-size: 1.25rem;
}
.rntfw-text-sm { /* New utility for smaller text */
    font-size: 0.875rem;
}
.rntfw-text-gray-600 { /* New utility for gray text */
    color: #718096;
}


/* --- NEW CSS FOR NOTIFICATION RULES PAGE --- */

/* Tabs styling - Overhaul to match design */
.rntfw-settings-page .nav-tab-wrapper,
.wrap h2.nav-tab-wrapper { /* Target both cases */
    margin-bottom: 25px; /* More space below tabs */
    border-bottom: 1px solid #cbd5e0; /* Softer border */
    padding: 0 0 5px;
    display: flex; /* Use flex for better alignment */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 5px; /* Gap between tabs */
}

.rntfw-settings-page .nav-tab,
.wrap h2.nav-tab { /* Target both cases */
    display: inline-flex; /* Use flex for internal alignment */
    align-items: center;
    padding: 10px 18px; /* More padding */
    font-size: 15px; /* Slightly larger font */
    font-weight: 500; /* Muted font weight */
    color: #6a737d; /* Default tab color */
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.5rem 0.5rem 0 0; /* Rounded top corners */
    margin-right: 0; /* Remove default margin from WP */
    margin-bottom: -1px; /* Overlap border with wrapper */
    transition: all 0.2s ease-in-out;
    background-color: transparent; /* Ensure no default background */
}

.rntfw-settings-page .nav-tab:hover,
.wrap h2.nav-tab:hover {
    color: #2d3748; /* Darker text on hover */
    background-color: #f0f4f8; /* Light background on hover */
    border-color: #e2e8f0 #e2e8f0 #f0f4f8; /* Softer border */
}

.rntfw-settings-page .nav-tab-active,
.wrap h2.nav-tab-active {
    background-color: #ffffff; /* Active tab background */
    border-color: #cbd5e0 #cbd5e0 #ffffff; /* Active tab border */
    color: #1a202c; /* Active tab text color */
    font-weight: 600; /* Bolder for active */
    cursor: default;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05); /* Subtle shadow on active tab */
    z-index: 1; /* Ensure active tab is above border */
    position: relative; /* For z-index to work */
}

.rntfw-settings-form {
    background-color: #ffffff;
    padding: 2rem; /* Increased padding */
    border-radius: 0.75rem; /* More rounded */
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.08), 0 3px 6px -3px rgba(0, 0, 0, 0.05); /* Consistent shadow */
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0; /* Subtle border */
}

.rntfw-individual-condition-block {
    margin-top: 2rem; /* More space */
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.rntfw-individual-condition-block h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.rntfw-conditions-container {
    padding: 0;
}

.rntfw-condition-group {
    border: 1px solid #e2e8f0; /* Softer border */
    background-color: #f7fafc; /* Lighter background */
    border-radius: 0.5rem; /* More rounded */
    padding: 1.5rem; /* More padding */
    margin-bottom: 1.5rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03); /* Subtle inner shadow */
}

.rntfw-condition-group h4 {
    font-size: 1.1rem; /* Slightly larger */
    font-weight: 600;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #cbd5e0; /* Softer dashed border */
}

.rntfw-condition-field-row.hidden {
    display: none;
}

/* Style for select2 elements (WooCommerce enhanced select) */
.select2-container .select2-selection--multiple,
.select2-container .select2-selection--single {
    border: 1px solid #cbd5e0 !important; /* Consistent border */
    border-radius: 0.5rem !important; /* More rounded */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06); /* Subtle inner shadow */
    min-height: 42px; /* Standard input height */
    padding: 5px; /* Adjust padding */
    transition: all 0.2s ease-in-out;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
    padding-left: 8px; /* Adjust text position */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px; /* Match min-height - 4px border/padding */
    padding-left: 12px; /* More padding */
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px; /* Position arrow */
}
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5) !important; /* Focus ring */
}

/* General input styling for new fields */
.rntfw-condition-group input[type="number"],
.rntfw-condition-group input[type="text"],
.rntfw-condition-group input[type="url"],
.rntfw-condition-group input[type="email"],
.rntfw-condition-group select:not(.select2-hidden-accessible),
.rntfw-template-editor { /* Added template editor to general input styles */
    width: 100%; /* Default to full width */
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 0.5rem;
    box-sizing: border-box;
    vertical-align: middle;
    margin-right: 0; /* Remove default margin */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
    line-height: 1.5;
}

.rntfw-condition-group input[type="number"]:focus,
.rntfw-condition-group input[type="text"]:focus,
.rntfw-condition-group input[type="url"]:focus,
.rntfw-condition-group input[type="email"]:focus,
.rntfw-condition-group select:not(.select2-hidden-accessible):focus,
.rntfw-template-editor:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    outline: none;
}
.rntfw-template-editor {
    min-height: 150px; /* Ensure a good minimum height for text areas */
    resize: vertical; /* Allow vertical resizing */
}

/* Custom Meta Rules Styling */
.rntfw-meta-rules-container {
    border: 1px solid #e2e8f0;
    padding: 15px; /* More padding */
    margin-bottom: 15px;
    background-color: #ffffff;
    border-radius: 0.5rem; /* More rounded */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

.rntfw-meta-rule-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px; /* Slightly more space */
    gap: 10px; /* Increased gap */
}

.rntfw-meta-rule-item input[type="text"] {
    flex: 1 1 28%; /* Adjusted flex basis */
    min-width: 150px; /* Min width for readability */
}

.rntfw-meta-rule-item select {
    flex: 1 1 22%;
    min-width: 120px;
}

.rntfw-meta-rule-item .button {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.6em 1em; /* Adjust button size within rule item */
    font-size: 0.9em;
}

.rntfw-meta-rule-item .rntfw-meta-value-field {
    flex: 1 1 28%;
    min-width: 150px;
}


/* Flatpickr (Date/Time Picker) Specific Styles */
.flatpickr-input {
    width: 100%; /* Make full width within its container */
    min-width: unset; /* Override previous min-width */
    max-width: unset; /* Override previous max-width */
    display: block; /* Make it a block element */
}
/* Ensure the icon for flatpickr input is visible and aligned */
.flatpickr-input[data-input] {
    padding-right: 30px; /* Make space for the calendar icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23A0AEC0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-calendar"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
}


.rntfw-business-hours-fields,
.rntfw-date-range-fields {
    margin-top: 15px; /* More space */
    padding-top: 15px;
    border-top: 1px dashed #edf2f7; /* Lighter separator */
}

/* Adjustments for buttons inside tables for better spacing */
.rntfw-form-table button.button {
    margin-top: 8px; /* More space */
    margin-bottom: 8px;
}

/* Accordion in Settings Page */
.rntfw-accordion-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 12px; /* More space */
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #ffffff; /* Ensure white background */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow */
}

.rntfw-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px; /* More padding */
    background-color: #f7fafc; /* Lighter header background */
    cursor: pointer;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0; /* Separator for collapsed state */
    transition: background-color 0.2s ease-in-out;
}

.rntfw-accordion-header:hover {
    background-color: #edf2f7;
}

.rntfw-accordion-header.active {
    background-color: #edf2f7; /* Active header background */
    border-bottom: none; /* No border when content is open */
}

.rntfw-accordion-icon {
    font-size: 1.25rem; /* Larger icon */
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.2s ease-in-out;
}
.rntfw-accordion-header.active .rntfw-accordion-icon {
    transform: rotate(90deg); /* Rotate for active state */
}

.rntfw-accordion-content {
    display: none;
    padding: 20px; /* More padding */
    background-color: #ffffff;
}

/* Specific styling for the switches within accordions */
.rntfw-accordion-header .rntfw-switch {
    margin-left: 15px; /* Space between title and switch */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Ensure description texts are aligned */
.rntfw-condition-group .description {
    margin-top: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #718096;
    line-height: 1.5;
}

/* Specific styles for sidebar elements */
.rntfw-sidebar-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.rntfw-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rntfw-sidebar-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #4a5568;
}

.rntfw-sidebar-list li:last-child {
    margin-bottom: 0;
}

.rntfw-sidebar-list a {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
}

.rntfw-sidebar-list a:hover {
    text-decoration: underline;
    color: #3182ce;
}

.rntfw-promo-box {
    text-align: center;
    padding: 1.5rem;
    background-color: #eff6ff; /* Light blue background for promo */
    border: 1px solid #bee3f8;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}
.rntfw-promo-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c5282;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.rntfw-promo-box p {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1rem;
}
.rntfw-promo-box .button {
    margin-top: 0.5rem;
}


/* --- Select2 Multiple Choice Tag Fix - Flexbox Approach --- */

.rntfw-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 6px 3px 10px !important;
    margin: 4px 4px 0 0 !important;
    line-height: 1.4em !important;
    white-space: nowrap;
    overflow: hidden;
}

.rntfw-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 25px);
}

.rntfw-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    flex: 0 0 auto;
    margin-left: 8px !important;
    position: static !important;
    transform: none !important;
    float: none !important;
    order: 1;
    font-size: 1.1em !important;
    line-height: 1 !important;
}

.rntfw-wrap .select2-container .select2-selection--multiple {
    min-height: 42px !important;
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Optional selector if text is wrapped in a span */
/* .rntfw-wrap .select2-container--default .select2-selection--multiple .select2-selection__choice span:not(.select2-selection__choice__remove) {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 25px);
} */

