.bep-setup-card,
.bep-notification-active {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dbe6ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(32, 63, 103, .08);
}

.bep-setup-card[hidden],
.bep-notification-active[hidden] {
  display: none !important;
}

.bep-setup-head,
.bep-notification-active__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bep-setup-kicker {
  color: #24765d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.bep-setup-card h2,
.bep-notification-active h2 {
  margin: 6px 0 7px;
  color: #123d72;
  font-size: 20px;
  line-height: 1.2;
}

.bep-setup-card p,
.bep-notification-active p {
  margin: 0;
  color: #637188;
  font-size: 13px;
  line-height: 1.55;
}

.bep-step-badge,
.bep-notification-active__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf3f8;
  color: #52667d;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.bep-notification-active__badge {
  background: #e7f6eb;
  color: #24765d;
}

.bep-guide-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 4px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef6f1;
  color: #1d6b4f;
  font-size: 12px;
  font-weight: 850;
}

.bep-guide-steps {
  display: grid;
  gap: 10px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.bep-guide-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid #e5ecf2;
  border-radius: 15px;
  background: #f9fbfc;
  color: #344f69;
  font-size: 13px;
  line-height: 1.4;
}

.bep-guide-step strong {
  color: #17314b;
}

.bep-guide-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #123d72;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.bep-guide-note {
  margin-top: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  background: #fff8e8;
  color: #76581e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.bep-guide-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.bep-guide-button,
.bep-disable-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: #123d72;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.bep-guide-button:disabled,
.bep-disable-button:disabled {
  cursor: wait;
  opacity: .62;
}

.bep-guide-button--secondary {
  border: 1px solid #d5e0e8;
  background: #fff;
  color: #123d72;
}

.bep-guide-privacy {
  margin-top: 10px !important;
  text-align: center;
  font-size: 11px !important;
}

.bep-notification-active {
  border-color: #d4e8db;
  background: linear-gradient(135deg, #fff, #f2faf4);
}

.bep-notification-active__copy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bep-notification-active__icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #e3f3e8;
  font-size: 21px;
}

.bep-disable-button {
  margin-top: 16px;
  border: 1px solid #e3c8c8;
  background: #fff;
  color: #a33b3b;
  box-shadow: none;
}

@media (max-width: 420px) {
  .bep-setup-card,
  .bep-notification-active {
    padding: 17px;
    border-radius: 21px;
  }

  .bep-setup-card h2,
  .bep-notification-active h2 {
    font-size: 19px;
  }
}

/* ─── v2: guida installazione illustrata (tabs + mockup SVG) ─── */
.bep-ig-tabs {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 999px;
  background: #eef3f8;
}

.bep-ig-tab {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 6px;
  background: transparent;
  color: #52667d;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.bep-ig-tab[aria-selected="true"] {
  background: #fff;
  color: #123d72;
  box-shadow: 0 3px 10px rgba(18, 61, 114, .14);
}

.bep-ig-tab small {
  display: block;
  margin-top: 1px;
  color: #1f7a4d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bep-ig-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bep-ig-step {
  display: grid;
  grid-template-columns: 34px 1fr 96px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5ecf2;
  border-radius: 16px;
  background: #f9fbfc;
  animation: bepIgIn .5s ease both;
  animation-delay: calc(var(--i) * .09s);
}

.bep-ig-text {
  color: #344f69;
  font-size: 13px;
  line-height: 1.5;
}

.bep-ig-text strong {
  color: #17314b;
}

.bep-ig-art {
  justify-self: end;
}

.bep-ig-illus {
  display: block;
  width: 96px;
  height: auto;
}

.bep-ig-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: bepIgPulse 1.8s ease-out infinite;
}

@keyframes bepIgIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes bepIgPulse {
  0% { opacity: .9; transform: scale(.55); }
  70% { opacity: 0; transform: scale(1.3); }
  100% { opacity: 0; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .bep-ig-step { animation: none; }
  .bep-ig-pulse { animation: none; opacity: .4; }
}

@media (max-width: 420px) {
  .bep-ig-step { grid-template-columns: 34px 1fr; }
  .bep-ig-art { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
}

/* Versione statica per la pagina Istruzioni */
.bep-ig-device {
  margin-bottom: 10px;
  border: 1px solid #e5ecf2;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bep-ig-device summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  color: #123d72;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.bep-ig-device summary::-webkit-details-marker { display: none; }

.bep-ig-device summary .lucide {
  width: 18px;
  height: 18px;
  color: #1f7a4d;
}

.bep-ig-device[open] summary { border-bottom: 1px solid #eef2f7; }

.bep-ig-device .bep-ig-steps { padding: 14px; margin: 0; }

/* Nella versione statica l'animazione parte solo all'apertura del details */
.bep-ig-device .bep-ig-step { animation: none; }
.bep-ig-device[open] .bep-ig-step {
  animation: bepIgIn .45s ease both;
  animation-delay: calc(var(--i) * .07s);
}
