/* Important info modal (EGHosting-style, wider) + header pill */

.sf-important-info-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .42rem .9rem;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .02em;
  cursor: pointer;
  color: #fff;
  background: #8b1e2d;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(139, 30, 45, .32);
  transition: filter .15s ease, transform .15s ease;
}
.sf-important-info-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
}
.sf-important-info-btn i { font-size: .85rem; }
.sf-important-info-btn--header { margin-right: .35rem; flex-shrink: 0; }
.sf-important-info-btn--topbar { margin-right: .35rem; flex-shrink: 0; }
.sf-important-info-btn--mobile {
  margin-right: .25rem;
  padding: .36rem .7rem;
  font-size: .72rem;
}

.sf-important-info-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  --sf-ii-accent: #8b1e2d;
  --sf-ii-soft: #fdf2f4;
}
.sf-important-info-modal[hidden] { display: none !important; }
.sf-important-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(2px);
}
.sf-important-info-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--sf-ii-accent) 22%, transparent);
  box-shadow: 0 24px 48px rgba(15, 23, 42, .2);
}
.sf-important-info-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.35rem 1rem;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, var(--sf-ii-soft) 0%, #fff 100%);
}
.sf-important-info-dialog__head-main {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
}
.sf-important-info-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  padding: .24rem .6rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--sf-ii-accent);
}
.sf-important-info-dialog__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--sf-ii-accent);
}
.sf-important-info-x {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.sf-important-info-x:hover { background: #f1f5f9; color: #0f172a; }
.sf-important-info-dialog__body {
  padding: 1.15rem 1.35rem 1.45rem;
  color: #1a2332;
  line-height: 1.55;
  font-size: .98rem;
}
.sf-important-info-dialog__body a {
  color: var(--sf-ii-accent);
  font-weight: 700;
}
.sf-important-info-dialog__body p { margin: 0 0 .75rem; }
.sf-important-info-dialog__body p:last-child { margin-bottom: 0; }
.sf-important-info-dialog__cta {
  margin-top: 1rem !important;
}
.sf-important-info-dialog__cta a {
  color: var(--sf-ii-accent);
  font-weight: 800;
  text-decoration: none;
}
.sf-important-info-dialog__cta a:hover { text-decoration: underline; }

html.sf-important-info-lock,
html.sf-important-info-lock body {
  overflow: hidden;
}

[data-bs-theme="dark"] .sf-important-info-dialog,
body.pd-mode-dark .sf-important-info-dialog {
  background: #1e293b;
  border-color: color-mix(in srgb, var(--sf-ii-accent) 35%, transparent);
}
[data-bs-theme="dark"] .sf-important-info-dialog__head,
body.pd-mode-dark .sf-important-info-dialog__head {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sf-ii-accent) 22%, #1e293b) 0%, #1e293b 100%);
  border-bottom-color: #334155;
}
[data-bs-theme="dark"] .sf-important-info-dialog__body,
body.pd-mode-dark .sf-important-info-dialog__body {
  color: #e2e8f0;
}
[data-bs-theme="dark"] .sf-important-info-x,
body.pd-mode-dark .sf-important-info-x {
  color: #94a3b8;
}
[data-bs-theme="dark"] .sf-important-info-x:hover,
body.pd-mode-dark .sf-important-info-x:hover {
  background: #334155;
  color: #f8fafc;
}

@media (max-width: 576px) {
  .sf-important-info-dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 14px;
  }
  .sf-important-info-dialog__head,
  .sf-important-info-dialog__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
