/* Guided first setup (web/js/setup-guide.js). Shared by all connectors. */

/* The directive element stays empty (frame and card move to <body>). Without this it takes a cell
   in the editor toolbar's CSS grid and pushes the buttons out of place (Pipedrive, 19.11.2026). */
df-setup-guide { display: none; }

.sg-frame {
  position: fixed;
  z-index: 2000;
  border: 2px solid hsl(211, 90%, 52%);
  border-radius: 6px;
  pointer-events: none; /* the user works on the framed element itself */
  box-shadow: 0 0 0 4px hsla(211, 90%, 52%, 0.18);
  animation: sg-pulse 1.8s ease-in-out infinite;
  transition: top 0.15s, left 0.15s, width 0.15s, height 0.15s;
}

@keyframes sg-pulse {
  0%, 100% { box-shadow: 0 0 0 4px hsla(211, 90%, 52%, 0.18); }
  50% { box-shadow: 0 0 0 9px hsla(211, 90%, 52%, 0.08); }
}

.sg-card {
  position: fixed;
  z-index: 2001;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  padding: 14px 16px 12px;
  background: #fff;
  color: hsl(211, 25%, 20%);
  border: 1px solid hsl(211, 30%, 85%);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(20, 40, 70, 0.22);
  font-size: 13px;
  line-height: 1.5;
  transition: top 0.15s, left 0.15s;
}

.sg-card--floating {
  border-top: 3px solid hsl(211, 90%, 52%);
}

.sg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sg-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: hsl(211, 60%, 45%);
}

.sg-close {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: hsl(211, 15%, 55%);
  cursor: pointer;
}

.sg-close:hover { color: hsl(211, 25%, 25%); }

.sg-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sg-text { margin: 0 0 8px; }
.sg-text--more { color: hsl(211, 15%, 40%); }

.sg-wait {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 4px;
  background: hsl(45, 100%, 94%);
  color: hsl(35, 70%, 28%);
}

.sg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.sg-spacer { flex: 1 1 auto; }

.sg-btn {
  border: 1px solid hsl(211, 30%, 80%);
  background: #fff;
  color: hsl(211, 25%, 25%);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}

.sg-btn:hover { background: hsl(211, 40%, 96%); }

.sg-btn--primary {
  border-color: hsl(211, 90%, 48%);
  background: hsl(211, 90%, 48%);
  color: #fff;
}

.sg-btn--primary:hover { background: hsl(211, 90%, 42%); }

.sg-btn--primary[disabled] {
  opacity: 0.45;
  cursor: default;
  background: hsl(211, 90%, 48%);
}

.sg-btn--link {
  border: 0;
  padding: 5px 0;
  background: none;
  color: hsl(211, 15%, 50%);
}

.sg-btn--link:hover { background: none; text-decoration: underline; }

/* "Explain setup" button in the editor toolbar */
.sg-open-btn i { margin-right: 4px; }

/* "Open in Dialfire" on each campaign row: opens that campaign (campaigns module), signed in */
.df-open-campaign {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  color: hsl(211, 80%, 42%);
  text-decoration: none;
}
.df-open-campaign:hover,
.df-open-campaign:focus { text-decoration: underline; color: hsl(211, 80%, 34%); }
.df-open-campaign i { margin-right: 2px; }
