.easyel-modal-overlay,
.easyel-modal-overlay-edit {
	display: grid;
   	position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
	visibility: hidden;
	opacity: 0;
	place-content: center;
}

.easyel-modal-content,
.easyel-modal-content-edit {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.easyel-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.easyel-condition-row,
.easyel-condition-row-edit {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    align-items: center;
}

.easyel-condition-row select,
.easyel-condition-row-edit select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex: 1;
}

.easyel-remove-row {
    cursor: pointer;
    font-size: 20px;
    color: red;
}

#easyel-add-condition,
#easyel-add-condition-edit {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.easyel-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.easyel-save-btn {
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.easyel-cancel-btn {
    background: #ccc;
    color: #333;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.95);}
    to {opacity:1; transform: scale(1);}
}

.easyel-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #4CAF50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}
.easyel-success-icon .checkmark {
  color: #fff;
  font-size: 32px;
  font-weight: bold;

}

.easyel-modal-content h2,
.easyel-modal-content-edit h2 {
  font-size: 20px;
  margin: 30px 0 10px 0;
  color: #222;
  text-align: center;

}

.easyel-modal-content p,
.easyel-modal-content-edit p {
  color: #555;
  font-size: 14px;
  margin-bottom: 40px !important;
  margin-top: 20px !important;
  text-align: center;
}

.easyel-modal-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.easyel-save-btn,
.easyel-cancel-btn,
.easyel-edit-template,
.easyel-edit-with-elementor {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.easyel-save-btn,
.easyel-edit-template,
.easyel-edit-with-elementor {
  background: #0073e6;
  color: #fff;
}
.easyel-save-btn:hover,
.easyel-edit-template:hover,
.easyel-edit-with-elementor:hover {
  background: #005bb5;
  color: #fff;
}

.easyel-cancel-btn {
  background: #ddd;
  color: #333;
}
.easyel-cancel-btn:hover {
  background: #bbb;
}

.easyel-template-error-message {
  font-size: 18px;
  text-align: center;
  color: #d73131;
}

.select2-container {
    z-index: 999999 !important;
}

.select2-container--open {
    z-index: 999999 !important;
}


/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ==========================================
   Select2 – Scoped inside .easyel-conditions-wrapper-edit or .easyel-condition-row
========================================== */

.easyel-conditions-wrapper-edit .select2-container,
.easyel-condition-row .select2-container {
    font-family: inherit;
    font-size: 14px;
}

/* Selection box */
.easyel-conditions-wrapper-edit .select2-container--default .select2-selection--single,
.easyel-condition-row .select2-container--default .select2-selection--single {
    height: 42px;
    background-color: #fff;
    border: 1px solid #d5d8dc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.25s ease;
}

/* Text / placeholder */
.easyel-conditions-wrapper-edit .select2-container--default .select2-selection--single .select2-selection__rendered,
.easyel-condition-row .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 14px;
    padding-right: 36px;
    color: #333;
}

.easyel-conditions-wrapper-edit .select2-selection__placeholder,
.easyel-condition-row .select2-selection__placeholder {
    color: #9aa0a6;
}

/* Arrow */
.easyel-conditions-wrapper-edit .select2-container--default .select2-selection--single .select2-selection__arrow,
.easyel-condition-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    width: 32px;
    height: 100%;
    right: 6px;
}

.easyel-conditions-wrapper-edit .select2-container--default .select2-selection--single .select2-selection__arrow b,
.easyel-condition-row .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #555 transparent transparent transparent;
    border-width: 5px 5px 0 5px;
}

/* Hover */
.easyel-conditions-wrapper-edit .select2-container--default .select2-selection--single:hover,
.easyel-condition-row .select2-container--default .select2-selection--single:hover {
    border-color: #b0b7c3;
}

/* Focus / Open */
.easyel-conditions-wrapper-edit .select2-container--focus .select2-selection--single,
.easyel-conditions-wrapper-edit .select2-container--open .select2-selection--single,
.easyel-condition-row .select2-container--focus .select2-selection--single,
.easyel-condition-row .select2-container--open .select2-selection--single {
    border-color: #4c7cf3;
    box-shadow: 0 0 0 2px rgba(76, 124, 243, 0.15);
}

/* Disabled */
.easyel-conditions-wrapper-edit .select2-container--disabled .select2-selection--single,
.easyel-condition-row .select2-container--disabled .select2-selection--single {
    background-color: #f4f6f8;
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================
   Dropdown Styling
========================================== */

.easyel-conditions-wrapper-edit .select2-dropdown,
.easyel-condition-row .select2-dropdown {
    border-radius: 6px;
    border: 1px solid #d5d8dc;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Search input */
.easyel-conditions-wrapper-edit .select2-search--dropdown .select2-search__field,
.easyel-condition-row .select2-search--dropdown .select2-search__field {
    height: 36px;
    border-radius: 4px;
    border: 1px solid #d5d8dc;
    padding: 0 10px;
}

/* Results */
.easyel-conditions-wrapper-edit .select2-results__option,
.easyel-condition-row .select2-results__option {
    padding: 8px 14px;
    font-size: 14px;
}

/* Hover */
.easyel-conditions-wrapper-edit .select2-results__option--highlighted,
.easyel-condition-row .select2-results__option--highlighted {
    background-color: #4c7cf3;
    color: #fff;
}

/* Selected */
.easyel-conditions-wrapper-edit .select2-results__option[aria-selected="true"],
.easyel-condition-row .select2-results__option[aria-selected="true"] {
    background-color: #eef2ff;
    color: #2f3a8f;
}