.vt-home-notice {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.vt-home-notice.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vt-home-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 42, 31, 0.48);
  backdrop-filter: blur(4px);
}

.vt-home-notice__dialog {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  max-width: 820px;
  height: min(620px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(22, 101, 52, 0.16);
  background: linear-gradient(180deg, #f7fdf9 0%, #eef8f1 100%);
  box-shadow: 0 32px 80px rgba(3, 24, 17, 0.28);
}

.vt-home-notice__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.vt-home-notice__close:hover {
  background: #ffffff;
  color: #15803d;
  transform: translateY(-1px);
}

.vt-home-notice__head {
  flex: 0 0 auto;
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, #eaf8ee 0%, #dff3e6 55%, #edf9f1 100%);
  border-bottom: 1px solid #dcecdf;
  text-align: center;
}

.vt-home-notice__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.vt-home-notice__title {
  margin: 0 auto;
  max-width: 88%;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  text-align: center;
}

.vt-home-notice__body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
}

.vt-home-notice__media {
  background: linear-gradient(180deg, #edf8f0 0%, #e4f3e8 100%);
  border-right: 1px solid #e1ece4;
}

.vt-home-notice__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vt-home-notice__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.vt-home-notice__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 14px;
  scrollbar-width: thin;
  scrollbar-color: #b8d7c0 #edf6ef;
}

.vt-home-notice__content::-webkit-scrollbar {
  width: 10px;
}

.vt-home-notice__content::-webkit-scrollbar-track {
  background: #edf6ef;
  border-radius: 999px;
}

.vt-home-notice__content::-webkit-scrollbar-thumb {
  background: #b8d7c0;
  border-radius: 999px;
}

.vt-home-notice__text {
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
  word-break: break-word;
}

.vt-home-notice__text p,
.vt-home-notice__text ul,
.vt-home-notice__text ol,
.vt-home-notice__text table,
.vt-home-notice__text blockquote {
  margin: 0 0 12px;
}

.vt-home-notice__text ul,
.vt-home-notice__text ol {
  padding-left: 22px;
}

.vt-home-notice__text table {
  width: 100%;
  border-collapse: collapse;
}

.vt-home-notice__text td,
.vt-home-notice__text th {
  border: 1px solid #d7e3da;
  padding: 8px 10px;
  vertical-align: top;
}

.vt-home-notice__text blockquote {
  border-left: 4px solid #16a34a;
  background: #f6fbf8;
  padding: 10px 14px;
  color: #475569;
  border-radius: 0 12px 12px 0;
}

.vt-home-notice__text a {
  color: #166534;
  text-decoration: underline;
}

.vt-home-notice__text p:last-child,
.vt-home-notice__text ul:last-child,
.vt-home-notice__text ol:last-child,
.vt-home-notice__text table:last-child,
.vt-home-notice__text blockquote:last-child {
  margin-bottom: 0;
}

.vt-home-notice__footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 30px 24px;
  background: transparent;
}

.vt-home-notice__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: 0.18s ease;
  cursor: pointer;
}

.vt-home-notice__btn--primary {
  background: linear-gradient(180deg, #22a652 0%, #15803d 100%);
  color: #fff;
  border: 1px solid #15803d;
  box-shadow: 0 12px 26px rgba(21, 128, 61, 0.18);
}

.vt-home-notice__btn--primary:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.vt-home-notice__btn--ghost {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cfe1d4;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.vt-home-notice__btn--ghost:hover {
  background: #f4fbf6;
  border-color: #b8d3c0;
}

/* severity */
.vt-home-notice--default .vt-home-notice__badge {
  background: #eef2f7;
  color: #475569;
}

.vt-home-notice--info .vt-home-notice__badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.vt-home-notice--success .vt-home-notice__badge {
  background: #dcfce7;
  color: #15803d;
}

.vt-home-notice--warning .vt-home-notice__badge {
  background: #fef3c7;
  color: #b45309;
}

.vt-home-notice--danger .vt-home-notice__badge {
  background: #fee2e2;
  color: #b91c1c;
}

.vt-home-notice--noimage .vt-home-notice__body {
  grid-template-columns: 1fr;
}

.vt-home-notice--noimage .vt-home-notice__content {
  padding-top: 28px;
}

@media (max-width: 767.98px) {
  .vt-home-notice.is-open {
    padding: 10px;
  }

  .vt-home-notice__dialog {
    width: 100%;
    height: min(92vh, 700px);
    border-radius: 20px;
  }

  .vt-home-notice__head {
    padding: 20px 18px 16px;
  }

  .vt-home-notice__title {
    max-width: 100%;
    font-size: 25px;
  }

  .vt-home-notice__body {
    grid-template-columns: 1fr;
  }

  .vt-home-notice__media {
    min-height: 180px;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid #e1ece4;
  }

  .vt-home-notice__content {
    padding: 18px 18px 10px;
  }

  .vt-home-notice__text {
    font-size: 16px;
    line-height: 1.65;
  }

  .vt-home-notice__footer {
    padding: 12px 18px 18px;
  }
}
