/* The warning before a save in the free version resets PRO settings. It stands on the body, outside the styles of the plugin. */
.stb-pg {
  --stb-pg-navy: linear-gradient(145deg, #26384c 0%, #1d2b3c 100%);
  --stb-pg-ink: #0f172a;
  --stb-pg-text: #334155;
  --stb-pg-muted: #64748b;
  --stb-pg-line: #e2e8f0;
  --stb-pg-accent: #377dff;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 160000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.stb-pg[hidden] {
  display: none;
}
.stb-pg *,
.stb-pg *:before,
.stb-pg *:after {
  box-sizing: border-box;
}
.stb-pg-dialog {
  width: 100%;
  max-width: 580px;
  margin: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px -16px rgba(15, 23, 42, 0.45);
  color: var(--stb-pg-text);
  font-size: 14px;
  line-height: 1.5;
  animation: stb-pg-in 0.16s ease-out;
}
@keyframes stb-pg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stb-pg-dialog {
    animation: none;
  }
}
.stb-pg-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stb-pg-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fef3c7;
  color: #b45309;
}
.stb-pg-icon .fa {
  font-size: 19px;
}
.stb-pg .stb-pg-head h2 {
  margin: 0 0 4px;
  padding: 0;
  color: var(--stb-pg-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}
.stb-pg .stb-pg-head p {
  margin: 0;
  color: var(--stb-pg-text);
  font-size: 14px;
  line-height: 1.5;
}
.stb-pg .stb-pg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  list-style: none;
  overflow-y: auto;
}
.stb-pg .stb-pg-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--stb-pg-ink);
  font-weight: 500;
}
.stb-pg-pro {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 18px;
  margin-top: 2px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--stb-pg-navy);
  color: #7ff8ef;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.stb-pg .stb-pg-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--stb-pg-muted);
  font-size: 13px;
  line-height: 1.45;
}
.stb-pg-note .fa {
  flex: none;
  margin-top: 2px;
  color: #0e8a93;
  font-size: 14px;
}
.stb-pg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.stb-pg-actions-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.stb-pg .stb-pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d5dde8;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  color: #26384c;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.stb-pg .stb-pg-btn:hover {
  border-color: var(--stb-pg-accent);
  color: var(--stb-pg-accent);
}
.stb-pg .stb-pg-btn:focus-visible {
  outline: 2px solid var(--stb-pg-accent);
  outline-offset: 2px;
}
.stb-pg .stb-pg-primary {
  border-color: transparent;
  background: var(--stb-pg-navy);
  color: #fff;
}
.stb-pg .stb-pg-primary .fa {
  color: #7ff8ef;
  font-size: 13px;
}
.stb-pg .stb-pg-primary:hover {
  border-color: transparent;
  background: #2f4560;
  color: #fff;
}
.stb-pg .stb-pg-reset {
  border-color: #fecaca;
  color: #b91c1c;
}
.stb-pg .stb-pg-reset:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
@media (max-width: 600px) {
  .stb-pg-dialog {
    padding: 18px;
  }
  .stb-pg-actions,
  .stb-pg-actions-end {
    flex-direction: column-reverse;
    align-items: stretch;
    width: 100%;
  }
  .stb-pg .stb-pg-btn {
    width: 100%;
    min-height: 42px;
  }
}
