/* --------------------------------Common---------------------------- */

.integrazo-wz-setup-accordion {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
  margin-top: 15px;
}

.integrazo-wz-setup-accordion-header {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  background-color: #f0f0f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
  border: 1px solid #c3c4c763;
  color: #50575e;
}

.integrazo-wz-setup-accordion-header:hover {
  background-color: #f1f1f1;
}

.integrazo-wz-setup-accordion-content {
  display: none;
  padding: 20px;
  background-color: #ffffff;
  font-size: 15px;
  border-left:1px dashed #b1b1b1;
border-right: 1px dashed #b1b1b1;
border-bottom: 1px dashed #b1b1b1;

}

.integrazo-wz-setup-toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.integrazo-wz-setup-next-btn-wrapper {
  margin-top: 20px;
  text-align: right !important;
}
.integrazo-wz-setup-div
{
  display: flex; 
  align-items: center; 
  margin-bottom: 15px;
}
.integrazo-wz-setup-lable
{
  font-size: 1em !important;
  font-weight: 600 !important;
  color: #7a7a7a !important; /* lighter label color */
  text-align: left !important;
  min-width: 160px !important;
}

/* ------------------------------------Setp-1------------------------------ */

.integrazo-wz-setup-step1-input-search
{
  width: 70% !important;
  border-radius: 35px !important; 
  margin-left: auto;
  margin-right: auto;
  padding: 8px !important;

}
.integrazo-wz-setup-step1-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(127px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.integrazo-wz-setup-step1-plugin-item {
  min-height: 70px;
  text-align: center;
  border: 1px solid #80808021;
  border-radius: 8px;
  padding: 10px;
  background: #f9f9f9;
  cursor: pointer;
  transition: 0.2s;
}

.integrazo-wz-setup-step1-plugin-item:hover {
  border-color: #ccc;
}

.integrazo-wz-setup-step1-plugin-item.selected {
  border-color: #007cba;
  background-color: #e6f0fa;
}


.integrazo-wz-setup-step1-plugin-title {
  display: block;
  /* font-size: 14px; */
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  /* overflow: hidden; */
  text-overflow: ellipsis;
  margin-top: 1px;
   margin-top: 10px;
}

.integrazo-wz-setup-step1-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  overflow-y: auto; /* allow scroll if content exceeds */
}

.integrazo-wz-setup-step1-popup {
  background: #fff;
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
  padding: 25px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  overflow: auto; /* scrolling enabled */
  
  /* hide scrollbar (cross-browser) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.integrazo-wz-setup-step1-popup::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}


.integrazo-wz-setup-step1-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #007cba;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

/* Top margin leaves room for the coach pointer that hangs above the active card. */
.integrazo-wz-setup-step1-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  margin-top: 34px;
}

/* Dashed while empty — reads as a slot waiting to be filled rather than a finished panel.
   position:relative anchors the coach pointer that hangs above the active card. */
.integrazo-wz-setup-step1-box {
  position: relative;
  width: 45%;
  background: #f9f9fa;
  border: 2px dashed #ccd2da;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Default hover effect */
.integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-expand-toggle:hover {
  border-color: #2271b1;
  background: #e6f0fb;
  cursor: pointer;
}

/* When not selectable (already selected/locked), show that it can't be clicked */
.integrazo-wz-setup-step1-box:not(.integrazo-wz-setup-step1-expand-toggle) {
  cursor: not-allowed;
}

.integrazo-wz-setup-step1-box img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.integrazo-wz-setup-step1-label {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
}

/* Once a service sits in the card it's settled — a solid border reads as "done" next
   to the dashed, still-empty one. */
.integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-box-filled {
  border: 2px solid #c9ced6;
  background: #fff;
}

/* The one card the user should act on right now — amber ring plus a slow pulse so the
   eye lands on the trigger first, then on the destination once the trigger is set. */
.integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-box-attention {
  border: 2px dashed #f59e0b;
  background: #fffdf7;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  animation: integrazo-wz-step1-attention-pulse 2.2s ease-in-out infinite;
}

.integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-box-attention:hover {
  border-color: #f59e0b;
  background: #fff8ec;
}

@keyframes integrazo-wz-step1-attention-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.06);
  }
}

/* The card whose turn hasn't come yet — de-emphasised, but still clickable for
   anyone who wants to fill it in out of order. */
.integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-box-waiting {
  opacity: 0.6;
}

.integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-box-waiting:hover {
  opacity: 1;
}

/* Coach pointer: a small bubble that sits above the active card with a caret aimed
   down at it, so a first-time user has one unmistakable "click here" on screen. */
.integrazo-wz-setup-step1-coach {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  display: none;
  padding: 5px 12px;
  border-radius: 6px;
  background: #1f2937;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
  animation: integrazo-wz-step1-coach-bob 1.8s ease-in-out infinite;
}

.integrazo-wz-setup-step1-coach::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

.integrazo-wz-setup-step1-box-attention .integrazo-wz-setup-step1-coach {
  display: block;
}

@keyframes integrazo-wz-step1-coach-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .integrazo-wz-setup-step1-coach,
  .integrazo-wz-setup-step1-box.integrazo-wz-setup-step1-box-attention {
    animation: none;
  }
}

/* Badge shown above each card's heading before a selection is made */
.integrazo-wz-setup-step1-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.integrazo-wz-setup-step1-badge-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.integrazo-wz-setup-step1-badge-trigger {
  background: #e8f0fe;
  color: #1a73e8;
}

.integrazo-wz-setup-step1-badge-destination {
  background: #f3e8fd;
  color: #7c3aed;
}

/* Shared "this side is set" status label — used by both the plugin and product boxes */
.integrazo-wz-setup-step1-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.integrazo-wz-setup-step1-status-connected {
  color: #16a34a;
}

.integrazo-wz-setup-step1-status .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
}

/* Call-to-action wording under the + icon of an empty box */
.integrazo-wz-setup-step1-hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #2271b1;
}

/* The active card's prompt is the loudest text in the row */
.integrazo-wz-setup-step1-box-attention .integrazo-wz-setup-step1-hint {
  color: #b45309;
  font-weight: 600;
}

/* The destination card ships both wordings; show the one matching its state. */
.integrazo-wz-setup-step1-hint-ready,
.integrazo-wz-setup-step1-box-attention .integrazo-wz-setup-step1-hint-waiting {
  display: none;
}

.integrazo-wz-setup-step1-box-attention .integrazo-wz-setup-step1-hint-ready {
  display: block;
}

/* Keep "Save and Next" visibly disabled (not just inert) while a selection is missing */
#step1_next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Always-visible "Click to expand"/"Click to close" hint next to the accordion icon */
.integrazo-wz-setup-toggle-hint {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}

.integrazo-wz-setup-step1-arrow {
  font-size: 28px;
  color: #666;
  display: flex;
  align-items: center;
}

.integrazo-wz-setup-step1-name-input {
  width: 340px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border: 1.5px solid #d0d5dd;
  border-radius: 6px;
  color: #1a1a1a;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.integrazo-wz-setup-step1-name-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

/* Integration Name label (Step 1 only) — darker text, natural width, matches
   the compact style used in the integrazo-wc-zoho-integration plugin. */
#step1 .integrazo-wz-setup-lable {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3c434a !important;
  min-width: 0 !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.integrazo-wz-setup-step1-save-btn {
  margin-top: 30px;
  text-align: right;
}

.integrazo-wz-setup-step1-save-btn button {
  background: #2271b1;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.integrazo-wz-setup-step1-save-btn button:hover {
  background: #1d5e99;
}
#integrazo-wz-plugin-popup-search,
#integrazo-wz-product-popup-search::placeholder {
  text-indent: 10px;
}


/* Base card */
.integrazo-wz-setup-step1-plugin-item {
    position: relative;
    padding: 15px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
}

.integrazo-wz-setup-step1-plugin-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Pro plugin tile — same size as free, with PRO corner badge */
.integrazo-wz-pro-plugin {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 10px;
  min-height: 70px;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.integrazo-wz-pro-plugin:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.integrazo-wz-pro-plugin::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent #2271b1 transparent transparent;
  border-radius: 0 8px 0 0;
}

/* Plugin image/thumb */
.integrazo-wz-setup-step1-plugin-thumb {
    margin-bottom: 8px;
}

/* Plugin title */
.integrazo-wz-setup-step1-plugin-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}


.integrazo-wz-setup-step1-plugin-pro-label {
    display: none;
}
/* Empty-state message inside the grid */
.integrazo-wz-empty-state {
  display: none;               /* toggled by JS */
  grid-column: 1 / -1;         /* span all grid columns, without stretching tiles */
  padding: 12px;
  border: 1px dashed #ccd0d4;
  border-radius: 6px;
  background: #f9fafb;
  color: #444;
  text-align: center;
  max-width: 560px;            /* keep it neat */
  justify-self: center;        /* center within the grid */
}

.integrazo-wz-empty-state-text {
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}

.integrazo-wz-empty-state-link {
  text-decoration: underline;
}

/* (Optional) ensure the grid is a grid; keep if your stylesheet already defines it */
.integrazo-wz-setup-step1-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}




/* ----------------------------------Setup-2-------------------- */
.integrazo-wz-setup-step2-note
{
  margin: 6px 20px 0 !important;
  font-size: 12px !important;
  color: #666 !important;
}
.integrazo-wz-setup-step2-note-bottom{
  background-color: #fff8c4;
  border-left: 4px solid #f1c40f;
  padding: 10px 15px;
  font-size: 13px;
  color: #4d4b47;
  margin: 0 0 20px;
  max-width: 700px;
  border-radius: 4px;
}
/* ----------------------------Step-3-------------------------- */
.integrazo-wz-mapping-section {
  /* display: flex;
  justify-content: center;
  margin-top: 30px; */
  
}

.integrazo-wz-mapping-table {
    background-color: #f9f9f9;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 70%;
    margin-left: 170px;
}

.integrazo-wz-mapping-header {
  display: grid;
  grid-template-columns: 45% 45% auto;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.integrazo-wz-mapping-header>div {
  text-align: center;
}
.integrazo-wz-mapping-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.integrazo-wz-field-left,
.integrazo-wz-field-right {
  width: 45%;
}

.integrazo-wz-form-field-select,
.integrazo-wz-crm-field-select,
.integrazo-wz-mapping-row textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.integrazo-wz-custom-textarea {
  margin-top: 5px;
  display: none;
}

.integrazo-wz-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.integrazo-wz-actions .integrazo-wz-add-row,
.integrazo-wz-actions .integrazo-wz-remove-field {
  background: #e0e0e0;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

.integrazo-wz-actions .integrazo-wz-add-row:hover,
.integrazo-wz-actions .integrazo-wz-remove-field:hover {
  background: #d0d0d0;
}

.integrazo-wz-row-with-textarea {
  flex-direction: column;
  align-items: flex-start;
}

.integrazo-wz-mapping-row textarea {
  /* width: 45%; */
}

.integrazo-wz-picklist-select,
.integrazo-wz-form-field-select,
.integrazo-wz-crm-field-select {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.integrazo-wz-picklist-combined,
.integrazo-wz-form-field-wrapper,
.integrazo-wz-custom-textarea {
  margin-top: 8px;
}

.integrazo-wz-custom-textarea textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
  min-height: 40px;
}

.integrazo-wz-disabled-remove {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
/* -------------------------Custom Value Dropdown----------------- */
.integrazo-wz-suggestion-box {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.integrazo-wz-suggestion-item {
  padding: 6px 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.integrazo-wz-suggestion-item:last-child {
  border-bottom: none;
}

.integrazo-wz-suggestion-item:hover {
  background-color: #f0f0f0;
}