.st-pn-root {
  --st-pn-bg: #ffffff;
  --st-pn-bg-soft: #fcfcfc;
  --st-pn-border: #e0e0e8;
  --st-pn-accent: #38b448;
  --st-pn-accent-edit: #f5a623;
  --st-pn-accent-info: #0088ec;
  --st-pn-link: #0088ec;
  --st-pn-text: #181818;
  --st-pn-muted: #555555;
  --st-pn-divider: #e8e8e8;
  --st-pn-radius: 16px;
  --st-pn-padding: 20px;
  --st-pn-corner-max-width: 350px;
  --st-pn-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --st-pn-title-size: 18px;
  --st-pn-body-size: 13px;
  --st-pn-promise-size: 13px;
  --st-pn-legal-size: 10px;
  --st-pn-help-size: 11px !important;
  --st-pn-kicker-size: 12px;
  --st-pn-btn-radius: 999px;
  --st-pn-btn-primary-bg: #38b448;
  --st-pn-btn-primary-text: #ffffff;
  --st-pn-btn-edit-bg: #f5a623;
  --st-pn-btn-info-bg: #0088ec;
  --st-pn-btn-danger-text: #d32f2f;
  --st-pn-kicker-accent-active: #38b448;
  --st-pn-kicker-accent-edit: #38b448;
  --st-pn-kicker-accent-blocked: #f5a623;
  --st-pn-kicker-accent-error: #d32f2f;
  --st-pn-kicker-accent-cookie: #0088ec;
  --st-pn-kicker-accent-perm-pending: #0088ec;
  --st-pn-kicker-accent-disabled: #757575;
  --st-pn-kicker-accent-unsupported: #0088ec;
  --st-pn-fab-bottom: 93px !important;
  --st-pn-fab-side: 18px;
  --st-pn-fab-size: 56px;
  --st-pn-fab-icon-size: 30px;
  --st-pn-fab-radius: 50%;
  --st-pn-fab-bg: #163a63;
  --st-pn-fab-bg-end: #0b1c31;
  --st-pn-fab-text: #ffffff;
  --st-pn-fab-border-w: 0px;
  --st-pn-fab-border-color: #ffffff;
  --st-pn-fab-shadow: 0 8px 22px rgba(8, 20, 40, 0.35);
  --st-pn-fab-badge: #e11d48;
  position: relative;
  z-index: 2147483000;
  font-family: var(--st-pn-font);
}

#stPnFabWrap {
  bottom: 90px;
}

.st-pn-fab-wrap {
  position: fixed;
  bottom: var(--st-pn-fab-bottom);
  right: var(--st-pn-fab-side);
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.st-pn-side-left .st-pn-fab-wrap {
  right: auto;
  left: var(--st-pn-fab-side);
  align-items: flex-start;
}

.st-pn-fab {
  position: relative;
  width: var(--st-pn-fab-size);
  height: var(--st-pn-fab-size);
  border-radius: var(--st-pn-fab-radius);
  border: var(--st-pn-fab-border-w) solid var(--st-pn-fab-border-color);
  padding: 0;
  background: linear-gradient(160deg, var(--st-pn-fab-bg) 0%, var(--st-pn-fab-bg-end) 100%);
  color: var(--st-pn-fab-text);
  box-shadow: var(--st-pn-fab-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.st-pn-fab:hover,
.st-pn-fab:focus-visible {
  transform: scale(1.06);
}

.st-pn-fab:focus-visible {
  outline: 2px solid #9ec5ff;
  outline-offset: 3px;
}

.st-pn-fab--pulse {
  animation: st-pn-fab-pulse 2.2s ease-out infinite;
}

@keyframes st-pn-fab-pulse {
  0% {
    box-shadow: var(--st-pn-fab-shadow), 0 0 0 0 #ff0018;
  }
  70% {
    box-shadow: var(--st-pn-fab-shadow), 0 0 0 14px rgba(31, 111, 235, 0);
  }
  100% {
    box-shadow: var(--st-pn-fab-shadow), 0 0 0 0 rgba(31, 111, 235, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-pn-fab--pulse {
    animation: none;
  }
}

.st-pn-fab-img {
  width: var(--st-pn-fab-icon-size);
  height: var(--st-pn-fab-icon-size);
  object-fit: contain;
  display: block;
  border-radius: 50%;
  background: #fff;
}

.st-pn-fab-fa {
  font-size: var(--st-pn-fab-icon-size);
  line-height: 1;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-pn-fab-fallback {
  font-weight: 700;
  font-size: 1.1rem;
}

.st-pn-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--st-pn-fab-badge);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.st-pn-tooltip {
  max-width: 220px;
  background: #fff;
  color: #0f2744;
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(15, 39, 68, 0.18);
  position: relative;
}

.st-pn-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid #d5deea;
  border-bottom: 1px solid #d5deea;
  transform: rotate(45deg);
}

.st-pn-side-left .st-pn-tooltip::after {
  right: auto;
  left: 18px;
}

.st-pn-panel {
  position: fixed;
  right: var(--st-pn-fab-side);
  bottom: calc(var(--st-pn-fab-bottom) + var(--st-pn-fab-size) + 6px);
  width: min(var(--st-pn-corner-max-width), calc(100vw - 24px));
  background: var(--st-pn-bg);
  color: var(--st-pn-text);
  border: 1px solid var(--st-pn-border);
  border-radius: var(--st-pn-radius);
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.18);
  padding: var(--st-pn-padding) calc(var(--st-pn-padding) - 2px) calc(var(--st-pn-padding) - 4px);
  box-sizing: border-box;
  z-index: 2147483001;
  font-family: var(--st-pn-font);
    max-height: calc(100vh - var(--st-pn-fab-bottom) - var(--st-pn-fab-size) - 6px - 12px);
  max-height: calc(100dvh - var(--st-pn-fab-bottom) - var(--st-pn-fab-size) - 6px - 12px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* Scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: #c5ccd8 transparent;
}

/* Scrollbar (Chrome / Edge / Safari) */
.st-pn-panel::-webkit-scrollbar {
  width: 6px;
}

.st-pn-panel::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.st-pn-panel::-webkit-scrollbar-thumb {
  background: #c5ccd8;
  border-radius: 999px;
}

.st-pn-panel::-webkit-scrollbar-thumb:hover {
  background: #9aa3b2;
}

.st-pn-side-left .st-pn-panel {
  right: auto;
  left: var(--st-pn-fab-side);
}

/* Backdrop per modal / banner */
.st-pn-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 32, 0.55);
  z-index: 2147483000;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

/* Popup / modale centrale */
.st-pn-root.st-pn-layout-modal .st-pn-panel {
  left: 50%;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  max-height: min(88vh, 720px);
  overflow: auto;
  z-index: 2147483002;
}

.st-pn-root.st-pn-layout-modal.st-pn-side-left .st-pn-panel {
  left: 50%;
  right: auto;
}

/* Banner full width in basso (stile cookie bar: basso e compatto) */
.st-pn-root.st-pn-layout-banner .st-pn-panel {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  max-width: none;
    max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  padding: 10px 44px 10px 14px;
  z-index: 2147483002;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  box-shadow: 0 -8px 28px rgba(8, 20, 40, 0.35);
}

.st-pn-root.st-pn-layout-banner.st-pn-side-left .st-pn-panel {
  left: 0;
  right: 0;
}

.st-pn-root.st-pn-layout-banner .st-pn-close {
  top: 6px;
  right: 8px;
}

.st-pn-root.st-pn-layout-banner .st-pn-kicker {
  display: inline-flex;
  margin: 0;
  font-size: 0.65rem;
  order: 0;
}

.st-pn-root.st-pn-layout-banner .st-pn-title {
  margin: 0;
  font-size: 0.95rem;
  padding-right: 0;
  line-height: 1.25;
}

.st-pn-root.st-pn-layout-banner .st-pn-body {
  margin: 0;
  font-size: var(--st-pn-body-size);
  line-height: 1.35;
  max-width: 34rem;
}

.st-pn-root.st-pn-layout-banner .st-pn-promise {
  flex: 1 1 100%;
  margin: 0;
  font-size: var(--st-pn-promise-size);
  order: 8;
}
.st-pn-root.st-pn-layout-banner .st-pn-help-footer {
  flex: 1 1 100%;
  margin: 0;
  font-size: var(--st-pn-help-size);
  order: 8;
}

.st-pn-root.st-pn-layout-banner .st-pn-cookie-help,
.st-pn-root.st-pn-layout-banner .st-pn-perm-pending,
.st-pn-root.st-pn-layout-banner .st-pn-perm-help {
  flex: 1 1 100%;
  order: 7;
  margin: 0;
  padding: 8px 10px;
}

.st-pn-root.st-pn-layout-banner .st-pn-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.st-pn-root.st-pn-layout-banner .st-pn-legend {
  width: 100%;
  margin-bottom: 2px;
  font-size: 0.72rem;
}

.st-pn-root.st-pn-layout-banner .st-pn-topic {
  font-size: 0.8rem;
  gap: 6px;
  white-space: nowrap;
}

.st-pn-root.st-pn-layout-banner .st-pn-topic input {
  width: 15px;
  height: 15px;
}

.st-pn-root.st-pn-layout-banner .st-pn-legal {
  margin: 0;
  font-size: var(--st-pn-legal-size);
  line-height: 1.3;
  flex: 1 1 100%;
  order: 5;
}

.st-pn-root.st-pn-layout-banner .st-pn-actions {
  margin: 0;
  margin-left: auto;
  justify-content: flex-end;
  flex: 0 0 auto;
  order: 4;
  flex-direction: row;
  align-items: center;
  width: auto;
}

.st-pn-root.st-pn-layout-banner .st-pn-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  width: auto;
}

.st-pn-root.st-pn-layout-banner .st-pn-status {
  flex: 1 1 100%;
  order: 6;
  min-height: 0;
}

@media (min-width: 900px) {
  .st-pn-root.st-pn-layout-banner .st-pn-panel {
    flex-wrap: nowrap;
    padding: 10px 48px 10px 20px;
    gap: 12px 18px;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-title,
  .st-pn-root.st-pn-layout-banner .st-pn-body {
    flex: 0 1 auto;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-legal {
    flex: 0 1 12rem;
    order: 0;
    margin-left: 0;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-actions {
    order: 0;
  }
}

@media (max-width: 767.98px) {
  .st-pn-root.st-pn-layout-banner .st-pn-panel {
    padding: 10px 40px 10px 12px;
    gap: 6px 10px;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-body {
    display: none;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-topics {
    width: 100%;
  }
  .st-pn-root.st-pn-layout-banner .st-pn-actions {
    width: 100%;
    margin-left: 0;
  }
}

.st-pn-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #989898;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.st-pn-kicker {
  margin: 0 0 6px;
  font-size: var(--st-pn-kicker-size);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-pn-text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.st-pn-kicker-label {
  font-weight: 800;
  color: var(--st-pn-text);
}

.st-pn-kicker-accent {
  font-weight: 800;
  color: var(--st-pn-accent-info);
  letter-spacing: 0.04em;
}

.st-pn-title {
  margin: 0 0 8px;
  font-size: var(--st-pn-title-size);
  font-weight: 800;
  padding-right: 24px;
  color: var(--st-pn-text);
  line-height: 1.25;
}

.st-pn-title-icon {
  font-size: 0.95em;
  font-weight: 400;
}

.st-pn-body {
  margin: 0 0 7px;
  font-size: var(--st-pn-body-size);
  line-height: 1.45;
  color: var(--st-pn-text);
}

.st-pn-body-strong {
  font-weight: 600;
}

.st-pn-promise {
  margin: 0 0 14px;
  font-size: var(--st-pn-promise-size);
  line-height: 1.4;
  color: var(--st-pn-text);
}

/* Solo testo "Ci hai ripensato..." (stato disattivate) */
.st-pn-promise.st-pn-promise--sm {
  font-size: 12px;
}

.st-pn-promise-icon {
  margin-right: 2px;
}

.st-pn-promise-lead {
  font-weight: 600;
}

.st-pn-promise-mid {
  font-weight: 400;
}

.st-pn-promise-rest {
  font-weight: 400;
}

.st-pn-topics {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.st-pn-legend {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--st-pn-text);
  float: none;
  width: auto;
  padding: 0;
}

.st-pn-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--st-pn-text);
  cursor: pointer;
  user-select: none;
}

.st-pn-topic input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  border: 1.5px solid #b0b0b0;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

.st-pn-topic input:checked {
  border-color: var(--st-pn-accent);
  background: #ffffff;
}

.st-pn-topic input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid var(--st-pn-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.st-pn-topic input:disabled {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.st-pn-topic input:disabled:checked {
  border-color: var(--st-pn-accent);
  background: #ffffff;
  opacity: 0.55;
}

.st-pn-topic:has(input:disabled) {
  cursor: default;
  opacity: 0.75;
}

.st-pn-legal {
  margin: 10px 0 0;
  font-size: var(--st-pn-legal-size);
  line-height: 1.4;
  color: #181818;
  text-align: center;
}

.st-pn-legal a {
  color: var(--st-pn-link);
  text-decoration: underline;
  font-weight: 600;
}

.st-pn-help-footer {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--st-pn-divider);
  font-size: var(--st-pn-help-size);
  line-height: 1.4;
  color: var(--st-pn-text);
  text-align: center;
}

.st-pn-help-footer .st-pn-help-link {
  color: var(--st-pn-link);
  text-decoration: underline;
  font-weight: 600;
}

.st-pn-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 4px;
  align-items: stretch;
}

.st-pn-btn {
  border: 0;
  border-radius: var(--st-pn-btn-radius);
  padding: 0.78rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 100%;
  text-align: center;
}

.st-pn-btn:disabled,
.st-pn-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.st-pn-btn-primary {
  background: var(--st-pn-btn-primary-bg);
  color: var(--st-pn-btn-primary-text);
}

.st-pn-btn-edit {
  background: var(--st-pn-btn-edit-bg);
  color: #fff;
}

.st-pn-btn-info {
  background: var(--st-pn-btn-info-bg);
  color: #fff;
}

.st-pn-btn-secondary {
  background: #f0f0f0;
  color: var(--st-pn-text);
}

.st-pn-btn-danger {
  background: #b42318;
  color: #fff;
}

.st-pn-btn-linkish {
  background: transparent;
  color: var(--st-pn-btn-danger-text);
  text-decoration: underline;
  font-weight: 600;
  padding: 0.2rem 0.35rem;
  width: auto;
  align-self: center;
}

/* Separatore tra MODIFICA PREFERENZE e DISATTIVA NOTIFICHE */
.st-pn-actions-or {
  display: block;
  text-align: center;
  color: var(--st-pn-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

.st-pn-actions-or[hidden] {
  display: none !important;
}

.st-pn-status {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--st-pn-muted);
  text-align: center;
}

.st-pn-cookie-help,
.st-pn-perm-pending {
  margin: 0 0 12px;
/*   padding: 12px 12px; */
  border-radius: 12px;
/*   background: #fff8ef; */
/*   border: 1px solid #f0d2a8; */
}

/* Garantisce che hidden nasconda davvero (anche con regole flex del layout banner) */
.st-pn-cookie-help[hidden],
.st-pn-perm-pending[hidden],
.st-pn-perm-help[hidden],
.st-pn-panel [hidden] {
  display: none !important;
}

.st-pn-cookie-visual {
  /* Nascosto: nel design PDF i passaggi partono direttamente dagli screenshot */
  display: none;
}

.st-pn-cookie-visual-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.st-pn-cookie-visual-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--st-pn-text);
}

.st-pn-cookie-intro {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--st-pn-text);
  font-weight: 600;
}

.st-pn-cookie-help [data-st-pn-el="cookie-intro-1"] {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.st-pn-cookie-help [data-st-pn-el="cookie-intro-2"] {
  font-size: 0.82rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 8px;
}

.st-pn-guide-steps {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--st-pn-text);
}

.st-pn-guide-steps li {
  margin-bottom: 4px;
}

/* Cookie guide: visual steps with real screenshots */
.st-pn-cookie-vsteps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}

.st-pn-cookie-vstep {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.st-pn-cookie-vstep-shot {
  position: relative;
  border-radius: 8px;
  border: 1px solid #d7dde8;
  overflow: hidden;
  background: #f4f7fb;
  aspect-ratio: 4 / 3;
}

.st-pn-cookie-vstep-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.st-pn-cookie-vstep-shot .st-pn-vstep-num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--st-pn-accent-info);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.st-pn-cookie-vstep-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--st-pn-text);
}

.st-pn-cookie-vstep-text strong {
  font-weight: 700;
}

.st-pn-cookie-step3 {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--st-pn-text);
}

.st-pn-cookie-step3 .st-pn-vstep-num {
  position: static;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--st-pn-accent-info);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 380px) {
  .st-pn-cookie-vsteps {
    grid-template-columns: 1fr;
  }
}

.st-pn-perm-pending-hint {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--st-pn-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.st-pn-perm-pending-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--st-pn-muted);
}

/* Mock dialog permesso browser (stato perm_pending) */
.st-pn-perm-dialog-mock {
  margin: 10px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d5deea;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.1);
}
.st-pn-perm-dialog-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #6b7a90;
}
.st-pn-perm-dialog-mock-bar::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38b448, #0088ec);
  flex-shrink: 0;
}
.st-pn-perm-dialog-mock-msg {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--st-pn-text);
  font-weight: 500;
}
.st-pn-perm-dialog-mock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.st-pn-perm-dialog-mock-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
}
.st-pn-perm-dialog-mock-actions .st-pn-mock-block {
  color: #5a6a80;
  background: #eef2f7;
}
.st-pn-perm-dialog-mock-actions .st-pn-mock-allow {
  color: #fff;
  background: var(--st-pn-accent-info);
}

.st-pn-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-top: 4px;
}

.st-pn-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5a623;
  opacity: 0.35;
  animation: st-pn-dot-pulse 1.1s ease-in-out infinite;
}

.st-pn-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.st-pn-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes st-pn-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-pn-dots span {
    animation: none;
    opacity: 1;
  }
}

.st-pn-perm-help {
  margin: 0 0 12px;
 /*  padding: 12px; */
  border-radius: 10px;
 /*  background: #f7f9fc;
  border: 1px solid var(--st-pn-border); */
}

.st-pn-perm-help-browser {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--st-pn-text);
  font-weight: 600;
}

.st-pn-perm-help-lead {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--st-pn-text);
  font-weight: 600;
}

.st-pn-visual-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}

.st-pn-vstep {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.st-pn-vstep-shot {
  position: relative;
  height: 72px;
  border-radius: 8px;
  border: 1px solid #d7dde8;
  background:
    linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
  overflow: hidden;
}

.st-pn-vstep-shot::before {
  content: "";
  position: absolute;
  inset: 10px 12px auto;
  height: 10px;
  border-radius: 4px;
  background: #c9d4e4;
}

.st-pn-vstep-shot::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 28px;
  bottom: 12px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #d5deea;
}

.st-pn-vstep-shot--lock {
  background: linear-gradient(160deg, #eef6ff 0%, #dcebff 100%);
}

.st-pn-vstep-shot--settings {
  background: linear-gradient(160deg, #f3f5f9 0%, #e4e9f1 100%);
}

.st-pn-vstep-shot--notify {
  background: linear-gradient(160deg, #eefaf0 0%, #d9f0de 100%);
}

.st-pn-vstep-shot--refresh {
  background: linear-gradient(160deg, #fff8ef 0%, #f5e6cf 100%);
}

.st-pn-vstep-shot--extra {
  background: linear-gradient(160deg, #f7f0ff 0%, #e8ddf7 100%);
}

/* Real screenshot steps (Chrome / Edge / …) */
.st-pn-vstep-shot--photo {
  height: auto;
  aspect-ratio: 3 / 2;
  background: #f4f7fb;
}
.st-pn-vstep-shot--photo::before,
.st-pn-vstep-shot--photo::after {
  display: none;
}
.st-pn-vstep-shot--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.st-pn-vstep-num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--st-pn-accent-info);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.st-pn-vstep-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--st-pn-text);
}

.st-pn-vstep-text strong {
  font-weight: 600;
}

.st-pn-perm-help-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--st-pn-muted);
}

.st-pn-os-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f3;
  border: 1px solid #f3b4be;
}

.st-pn-os-warning-title {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #b42318;
}

.st-pn-os-warning-text {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.4;
  color: var(--st-pn-text);
}

/* Stati: accenti kicker (token configurabili) */
.st-pn-panel[data-st-pn-state="active"] .st-pn-kicker-accent {
  color: var(--st-pn-kicker-accent-active);
}

.st-pn-panel[data-st-pn-state="edit"] .st-pn-kicker-accent {
  color: var(--st-pn-btn-edit-bg);
}

.st-pn-panel[data-st-pn-state="blocked"] .st-pn-kicker-accent {
  color: var(--st-pn-kicker-accent-blocked);
}

.st-pn-panel[data-st-pn-state="error"] .st-pn-kicker-accent {
  color: var(--st-pn-kicker-accent-error);
}

.st-pn-panel[data-st-pn-state="cookie"] .st-pn-kicker-accent {
  color: var(--st-pn-kicker-accent-cookie);
}

.st-pn-panel[data-st-pn-state="perm_pending"] .st-pn-kicker-accent {
  color: var(--st-pn-kicker-accent-perm-pending);
}

.st-pn-panel[data-st-pn-state="disabled"] .st-pn-kicker-accent {
  color: #ff0000;
}

.st-pn-panel[data-st-pn-state="unsupported"] .st-pn-kicker-accent {
  color: var(--st-pn-kicker-accent-unsupported);
}

@media (max-width: 420px) {
  .st-pn-visual-steps {
    grid-template-columns: 1fr;
  }
}

/* Embed in Popup Manager: niente fixed corner */
.st-pn-panel.st-pn-panel--embedded {
  position: static;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: none;
  box-shadow: none;
}

.cp-ad-overlay.cp-ad-overlay--banner {
  align-items: flex-end;
  justify-content: stretch;
  background: rgba(8, 16, 32, 0.45);
}

.cp-ad-overlay.cp-ad-overlay--banner .cp-ad-dialog {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 16px 16px 0 0;
}

.cp-ad-overlay.cp-ad-overlay--push-prefs .cp-ad-dialog {
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.cp-ad-overlay.cp-ad-overlay--push-prefs .cp-ad-content {
  padding: 0;
}

@media (max-width: 575.98px) {
  .st-pn-panel {
    right: 12px;
    left: 12px;
    width: auto;
  }
  .st-pn-side-left .st-pn-panel {
    left: 12px;
    right: 12px;
  }

    .st-pn-root.st-pn-layout-corner .st-pn-panel {
    bottom: 12px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }


}

@media (max-height: 520px) {
  .st-pn-panel { padding-top: 14px; padding-bottom: 12px; }
  .st-pn-vstep-shot--photo { aspect-ratio: 16 / 9; }
  .st-pn-cookie-vstep-shot { aspect-ratio: 16 / 9; }
}

.st-pn-perm-pending-hint {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--st-pn-text);
  display: block;           
}

.st-pn-perm-dialog-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 10px 0 8px;
  border-radius: 12px;
}

.st-pn-perm-help-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--st-pn-text);
}

#backToTop {
  bottom: 150px !important;
}