/* Add/Edit integration: full-page wizard (not a modal popup). The
   "-popup-" class names are kept so the existing show/hide toggle in
   setup-fm.js (and the inline existing-mapping script) keep working
   unchanged; only the visual treatment changes here. */
.iafwzcai-setup-popup-overlay {
    display: none;
}

.iafwzcai-setup-popup-overlay.show {
    display: block;
}

.iafwzcai-setup-popup-content {
    text-align: left;
}

.iafwzcai-setup-table {
    border-collapse: collapse;
    width: 100%;
    /* margin-top: 15px; */
    
  }

  .iafwzcai-setup-row {
    /* border-bottom: 1px solid #ddd; */
  }

  .iafwzcai-setup-title {
    font-weight: bold;
    padding: 12px;
    text-align: left;
    max-width: 50px;
  }

  .iafwzcai-setup-input {
    float: left;
    padding: 8px;
    margin-right: 10px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 200px !important;
    min-width: 200px !important;
      height: 30px !important;
  min-height: 30px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  }
  .iafwzcai-setup-select label {
    margin-right: 20px;
  }
  .iafwzcai-setup-radio
  {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

/* Optional fade-in animation */
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}



  .iafwzcai-setup-th, .iafwzcai-setup-td {
    /* border: 1px solid #ddd; */
    padding: 12px;
    /* text-align: left; */
   
  }
  .iafwzcai-setup-td 
  {
    font-size: 14px;
  }
  .iafwzcai-setup-th {
    /* background-color: #f2f2f2; */
    /* font-size: 16px; */
  }
  #iafwzcai-setup-fieldMapping-table .add-row,
  #iafwzcai-setup-fieldMapping-table .remove-row {
    margin-right: 6px;
  }
  #iafwzcai-setup-fieldMapping-table .add-row:last-child,
  #iafwzcai-setup-fieldMapping-table .remove-row:last-child {
    margin-right: 0;
  }
  #iafwzcai-setup-updateActionName-area
  {
    display: none;
  }
  .iafwzcai-fm-setup-select {
    border: 1px solid #2622225e !important;
    color: #321919bf !important;
    width: 100% !important;
      height: 30px !important;
  min-height: 30px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  }
  .iafwzcai-setup-fm-custom-wrap {
    position: relative;
  }
  .iafwzcai-setup-fm-custom-input
  {
    width: 100%;
    margin-top: 5px;
    /* border-color: inherit !important; */
    border-radius: 4px;
    border: 1px solid #2622225e !important;
    color: #321919bf !important;
    width: 100% !important;
      height: 30px !important;
  min-height: 30px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
  }
 /* Toggle switch wrapper */
 .iafwzcai-setup-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

/* Hide the default checkbox */
.iafwzcai-setup-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Keep the native checkbox (and WP admin's check mark) invisible in every state,
   including :disabled while the status is saving. */
.iafwzcai-setup-toggle-switch .iafwzcai-setup-toggle-input,
.iafwzcai-setup-toggle-switch .iafwzcai-setup-toggle-input:disabled,
.iafwzcai-setup-toggle-switch .iafwzcai-setup-toggle-input:checked {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}
.iafwzcai-setup-toggle-switch .iafwzcai-setup-toggle-input::before,
.iafwzcai-setup-toggle-switch .iafwzcai-setup-toggle-input:checked::before,
.iafwzcai-setup-toggle-switch .iafwzcai-setup-toggle-input:disabled::before {
  content: none !important;
  display: none !important;
}

/* The slider */
.iafwzcai-setup-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 20px;
}

.iafwzcai-setup-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
}

/* Checked state */
.iafwzcai-setup-toggle-input:checked + .iafwzcai-setup-toggle-slider {
  background-color: #6a4cf0;
}

.iafwzcai-setup-toggle-input:checked + .iafwzcai-setup-toggle-slider:before {
  transform: translateX(20px);
}
/* Saving: slider is not clickable */
.iafwzcai-setup-toggle-input:disabled + .iafwzcai-setup-toggle-slider {
  cursor: not-allowed;
}

/* Spinner shown beside a row's status toggle while it saves */
.iafwzcai-setup-toggle-switch .iafwzcai-toggle-spinner {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  bottom: 0;
  margin: auto 0;
}
/* -----Scroll bar none-- */
.iafwzcai-setup-popup-content::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit browsers (Chrome, Safari) */
}

/* Container styling */
.iafwzcai-setup-action-container {
 
  /* padding: 9px; */
  background-color: #f2f2f238;
  border: 1px solid #e0e0e0;
  /* font-family: Arial, sans-serif; */
  margin-top: 30px;
  text-align: left;
  padding-bottom: 17px;
  height: auto;
    overflow: hidden;
}

/* Heading styling */
.iafwzcai-setup-action-heading {
  font-weight: bold;
  font-size: 13px;
  color: #2c3e50;
  margin-bottom: 15px;
  display: inline;
}

/* Label styling */
.iafwzcai-setup-action-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #4a4a4a;
  margin-bottom: 12px;
  /* padding: 8px; */
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 7px;
}
.iafwzcai-setup-action-label-disable
{
  color: #00000061 !important;
}

/* Radio button spacing */
.iafwzcai-setup-action-label input[type="radio"] {
  margin-right: 10px;
}

/* Hover effect for labels */
.iafwzcai-setup-action-label:hover {
  /* background-color: #eaf0f7;
  color: #2c3e50;
  font-weight: 500; */
}
/* Style for Help Icon */
   /* Style for Help Icon */
   .iafwzcai-setup-action-help-icon {
    font-size: 0.875rem;
    color: #0073e6;
    background-color: #f1f1f1;
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    font-weight: bold;
}


.iafwzcai-setup-menu
{
  background-color: #f2f2f238;
  border: 1px solid #e0e0e0;
  padding: 9px;
}
/* ---------Note00000000 */
#iafwzcai-setup-note-area {
  /* margin-bottom: 20px; */
  margin-top: 30px;
  background-color: #f2f2f238;
  border: 1px solid #e0e0e0;
  padding: 12px;
}

.iafwzcai-setup-note-row {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between question and options */
  margin-bottom: 10px;
  padding: 9px;
}

.iafwzcai-setup-note-heading {
  font-weight: bold;
  margin: 0;
}

.iafwzcai-setup-note-label {
  display: flex;
  align-items: center;
  font-size: 16px;
}

#iafwzcai-setup-note {
  display: none;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* --------Default Value Poupup--------- */
.info-icon {
  cursor: pointer;
  margin-left: 5px;
  font-size: 14px;
  color: #0073e6;
  display: inline-block;
  position: relative;
}

.popup-message {
  position: fixed;
  background: linear-gradient(135deg, #ffffff, #f8f9fa); /* Subtle gradient */
  color: #333; /* Darker text for readability */
  padding: 12px 15px;
  border-radius: 8px; /* More rounded corners */
  font-size: 14px;
  white-space: nowrap;
  display: none;
  z-index: 9999; /* High z-index to appear above all overlays */
  border: 1px solid #e0e0e0; /* Soft border */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Enhanced shadow effect */
  max-height: 180px; /* Increased height */
  overflow-y: auto; /* Enable scrolling */
  transition: all 0.3s ease-in-out; /* Smooth appearance */
}

/* Add a subtle glowing effect */
.popup-message::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: white;
  border: 1px solid #e0e0e0;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.1);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%); /* Arrow pointing up */
}

/* Header Styling */
.popup-header {
  font-weight: bold;
  color: #0073e6; /* Blue color for emphasis */
  font-size: 15px;
  margin-bottom: 5px;
}

/* Content inside popup */
.number-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Copyable Item */
.copy-item {
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f1f8ff; /* Light blue background */
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease-in-out;
}

.copy-item:hover {
  background: #d7ebff; /* Slightly darker blue on hover */
}

/* Copy Icon */
.copy-icon {
  font-size: 14px;
  color: #0073e6;
  cursor: pointer;
}

/* Copied Text */
.copied-text {
  font-size: 12px;
  color: green;
  margin-left: 5px;
  font-weight: bold;
  animation: fadeOut 1s ease-in-out forwards;
}

/* Fade-out animation for Copied text */
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}