.sjdh-notice-lock {
  overflow: hidden;
}

.sjdh-deadline-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(249, 168, 37, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(53, 28, 18, 0.66));
  backdrop-filter: blur(8px);
}

.sjdh-deadline-dialog {
  position: relative;
  width: min(92vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffaf1 0%, #ffffff 52%, #fff7ed 100%);
  color: #2f2217;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
  transform: translateY(0);
  animation: sjdhNoticeIn 220ms ease-out;
}

.sjdh-deadline-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #d97706, #f59e0b, #ef4444);
}

.sjdh-deadline-inner {
  padding: 30px 28px 26px;
}

.sjdh-deadline-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sjdh-deadline-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.13);
}

.sjdh-deadline-title {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.2;
  font-weight: 900;
}

.sjdh-deadline-copy {
  margin: 0;
  padding: 15px 16px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
  background: rgba(255, 247, 237, 0.82);
  color: #4b3628;
  font-size: 16px;
  line-height: 1.9;
}

.sjdh-deadline-copy strong {
  color: #b91c1c;
}

.sjdh-deadline-fee {
  display: inline-block;
  margin: 0 4px;
  padding: 3px 10px;
  border: 1px solid rgba(220, 38, 38, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #fee2e2, #fff1f2 46%, #ffedd5);
  color: #b91c1c;
  font-size: 1.18em;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.16);
}

.sjdh-deadline-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.sjdh-deadline-confirm {
  min-width: 148px;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #b45309, #ef4444);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(180, 83, 9, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.sjdh-deadline-confirm:hover,
.sjdh-deadline-confirm:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 15px 30px rgba(180, 83, 9, 0.3);
  outline: none;
}

.sjdh-deadline-confirm:active {
  transform: translateY(0);
}

.sjdh-deadline-modal.is-closing {
  animation: sjdhNoticeOut 160ms ease-in forwards;
}

@keyframes sjdhNoticeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sjdhNoticeOut {
  to {
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .sjdh-deadline-modal {
    align-items: flex-start;
    padding: 18px 14px;
    overflow-y: auto;
  }

  .sjdh-deadline-dialog {
    margin-top: 7vh;
  }

  .sjdh-deadline-inner {
    padding: 26px 20px 22px;
  }

  .sjdh-deadline-copy {
    font-size: 15px;
    line-height: 1.8;
  }

  .sjdh-deadline-action {
    justify-content: stretch;
  }

  .sjdh-deadline-confirm {
    width: 100%;
  }
}
