.snw-root {
  position: relative;
  z-index: 9999;
  font-family: inherit;
}

.snw-notification {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dbe5ef;
  background: #ffffff;
  color: #172033;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  line-height: 1.5;
}

.snw-notification *,
.snw-notification *::before,
.snw-notification *::after {
  box-sizing: border-box;
}

.snw-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #2563eb;
}

.snw-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 52px 18px 22px;
}

.snw-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.snw-title {
  display: block;
  margin: 0 0 5px;
  color: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.snw-message {
  color: inherit;
  font-size: 0.95rem;
  opacity: 0.9;
}

.snw-message p:last-child {
  margin-bottom: 0;
}

.snw-client-actions {
  flex: 0 0 auto;
}

.snw-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  max-width: 100%;
  padding: 9px 15px;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.snw-cta:hover,
.snw-cta:focus {
  color: #ffffff;
  text-decoration: none;
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 13px 22px rgba(37, 99, 235, 0.24);
}

.snw-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.snw-dismiss:hover,
.snw-dismiss:focus {
  opacity: 1;
  background: rgba(15, 23, 42, 0.08);
}

.snw-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 8px;
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.97);
  transition: opacity 180ms ease, transform 180ms ease;
}

.snw-popup .snw-content {
  display: block;
  padding: 24px 54px 24px 26px;
}

.snw-popup .snw-title {
  font-size: 1.2rem;
}

.snw-popup .snw-client-actions {
  margin-top: 16px;
}

.snw-popup.snw-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.snw-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

.snw-topbar .snw-accent {
  inset: auto 0 0 0;
  width: auto;
  height: 4px;
}

.snw-topbar .snw-content {
  max-width: 1180px;
  min-height: 58px;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 12px;
}

.snw-inline,
.snw-service-notice,
.snw-addfund-notice,
.snw-dashboard-card {
  position: relative;
  margin: 0 0 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.snw-inline .snw-content,
.snw-service-notice .snw-content,
.snw-addfund-notice .snw-content,
.snw-dashboard-card .snw-content {
  min-height: 76px;
}

.snw-dashboard-card {
  min-height: 132px;
}

.snw-dashboard-card .snw-content {
  display: block;
  padding: 24px 52px 24px 24px;
}

.snw-dashboard-card .snw-client-actions {
  margin-top: 16px;
}

.snw-popup-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
}

@media (max-width: 720px) {
  .snw-content,
  .snw-topbar .snw-content {
    display: block;
    padding: 16px 48px 16px 18px;
  }

  .snw-client-actions {
    margin-top: 14px;
  }

  .snw-cta {
    width: 100%;
  }

  .snw-topbar {
    max-height: 58vh;
    overflow: auto;
  }
}

@media (max-width: 420px) {
  .snw-popup {
    width: calc(100vw - 20px);
  }

  .snw-popup .snw-content,
  .snw-dashboard-card .snw-content {
    padding: 20px 46px 20px 20px;
  }
}
