.nd-announcement,
.nd-announcement * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.nd-announcement[hidden],
.nd-announcement-modal[hidden] {
  display: none !important;
}

.nd-announcement {
  position: fixed;
  z-index: 99980;
  bottom: 22px;
  left: 22px;
  width: min(380px, calc(100vw - 44px));
  color: #14213a;
  font-family: inherit;
}

.nd-announcement-card {
  overflow: hidden;
  padding: 20px;
  border: 1px solid #d8e1ef;
  border-top: 3px solid #1683ff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(4, 15, 38, 0.28);
  animation: nd-announcement-in 320ms ease-out both;
}

.nd-announcement-card__head,
.nd-announcement-card__actions,
.nd-announcement-dialog header,
.nd-announcement-dialog footer {
  display: flex;
  align-items: center;
}

.nd-announcement-card__head,
.nd-announcement-dialog header,
.nd-announcement-dialog footer {
  justify-content: space-between;
}

.nd-announcement-badge {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #0877ef;
  font-size: 14px;
  font-weight: 700;
}

.nd-announcement-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1683ff;
}

.nd-announcement-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dbe4f0;
  border-radius: 50%;
  background: #f7f9fc;
  color: #64748b;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.nd-announcement-icon-button:hover {
  border-color: #b9c8dc;
  color: #1d4f91;
}

.nd-announcement-card h2 {
  margin: 18px 0 9px;
  color: #14213a;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;
}

.nd-announcement-card > p {
  margin: 0;
  color: #5d708e;
  font-size: 14px;
  line-height: 1.7;
}

.nd-announcement-card ul,
.nd-announcement-dialog__content ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.nd-announcement-card li,
.nd-announcement-dialog__content li {
  position: relative;
  padding-left: 17px;
  color: #354966;
  font-size: 13px;
  line-height: 1.6;
}

.nd-announcement-card li + li,
.nd-announcement-dialog__content li + li {
  margin-top: 7px;
}

.nd-announcement-card li::before,
.nd-announcement-dialog__content li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1683ff;
}

.nd-announcement-card__actions {
  gap: 9px;
  margin-top: 18px;
}

.nd-announcement-button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nd-announcement-button--primary {
  border: 1px solid #0877ef;
  background: #0877ef;
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 119, 239, 0.2);
}

.nd-announcement-button--primary:hover {
  border-color: #0667d2;
  background: #0667d2;
}

.nd-announcement-button--secondary {
  border: 1px solid #d6e0ed;
  background: #f3f6fa;
  color: #425570;
}

.nd-announcement-modal {
  position: fixed;
  z-index: 99990;
  inset: 0;
  display: grid;
  width: 100vw;
  height: 100vh;
  padding: 24px;
  place-items: center;
}

.nd-announcement-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 24, 0.72);
  backdrop-filter: blur(8px);
}

.nd-announcement-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid #d7e0eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 8, 23, 0.42);
  animation: nd-announcement-dialog-in 220ms ease-out both;
}

.nd-announcement-dialog:focus {
  outline: none;
}

.nd-announcement-dialog header {
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid #e3e8ef;
  background: #f7f9fc;
}

.nd-announcement-dialog header span {
  color: #0877ef;
  font-size: 12px;
  font-weight: 700;
}

.nd-announcement-dialog h2 {
  margin: 5px 0 4px;
  color: #14213a;
  font-size: 25px;
  line-height: 1.3;
}

.nd-announcement-dialog header p,
.nd-announcement-dialog footer p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.nd-announcement-dialog__content {
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 25px 26px;
}

.nd-announcement-dialog__content p {
  margin: 0 0 15px;
  color: #344966;
  font-size: 15px;
  line-height: 1.8;
}

.nd-announcement-dialog footer {
  gap: 16px;
  padding: 16px 26px;
  border-top: 1px solid #e3e8ef;
  background: #fbfcfe;
}

body.nd-announcement-modal-open {
  overflow: hidden;
}

@keyframes nd-announcement-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nd-announcement-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .nd-announcement {
    bottom: 12px;
    left: 12px;
    width: calc(100vw - 24px);
  }

  .nd-announcement-card {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 17px;
  }

  .nd-announcement-card h2 {
    font-size: 19px;
  }

  .nd-announcement-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nd-announcement-modal {
    padding: 12px;
  }

  .nd-announcement-dialog {
    max-height: calc(100vh - 24px);
  }

  .nd-announcement-dialog header,
  .nd-announcement-dialog__content,
  .nd-announcement-dialog footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nd-announcement-dialog h2 {
    font-size: 21px;
  }

  .nd-announcement-dialog footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-announcement-card,
  .nd-announcement-dialog {
    animation: none;
  }
}
