html[data-sitehub-pending] .download-app a,
html[data-sitehub-pending] .btn-to-home,
html[data-sitehub-pending] .btn-to-fb {
  pointer-events: none;
}
/* Footer SNS: giữ gap như img trực tiếp */
footer .footer-logos-right .footer-logos-list > a,
.home-footer .footer-logos .footer-logos-item.sns .footer-logos-list > a {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  width: auto;
  text-decoration: none;
}

/* SiteHub page modal — đồng bộ pattern dailyv2 */
.sitehub-page-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 24px 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}

.sitehub-page-modal.is-open {
  display: flex;
}

html.sitehub-page-modal-open {
  overflow: hidden;
}

.sitehub-page-modal__dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 820px);
  max-width: 760px;
  overflow: hidden;
  width: 100%;
}

.sitehub-page-modal__header {
  align-items: center;
  background: #26a9e0;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  min-height: 48px;
  padding: 12px 12px 12px 16px;
  position: relative;
}

.sitehub-page-modal__title {
  color: #fff !important;
  flex: 1 1 auto;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  /* Cân với nút close bên phải để title vẫn nhìn giữa */
  padding-left: 36px;
  text-align: center;
}

.sitehub-page-modal__close {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 36px;
  font-size: 28px;
  height: 36px;
  justify-content: center;
  left: auto !important;
  line-height: 1;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: 36px;
  z-index: 2;
}

.sitehub-page-modal__body {
  background: #fff;
  color: #333333;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  overflow-y: auto;
  padding: 20px 22px 28px;
  scrollbar-width: none;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  -ms-overflow-style: none;
}

.sitehub-page-modal__body::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.sitehub-page-modal__body p {
  color: #333333;
  font-weight: 400;
  margin: 0 0 12px;
}

/*
  style.css / main.css dùng `* { color }` — rule này gắn màu vào cả <u>/<span>,
  nên đè màu inherit từ inline style của API (vd. rgb(27, 91, 228)).
  unset để HTML API (inline style + inherit) được tôn trọng.
*/
.sitehub-page-modal__body * {
  color: unset;
}

.sitehub-page-modal__body a {
  color: #1b5be4;
  text-decoration: underline;
}

.sitehub-page-modal__body a u,
.sitehub-page-modal__body u {
  color: inherit;
  text-decoration: underline;
}

.sitehub-page-modal__body strong {
  color: #111111;
  font-weight: 700;
}

/* Chữ trắng CMS trên nền trắng modal */
.sitehub-page-modal__body span[style*="color: rgb(255, 255, 255)"],
.sitehub-page-modal__body span[style*="color:rgb(255, 255, 255)"],
.sitehub-page-modal__body span[style*="color:#fff"],
.sitehub-page-modal__body span[style*="color: #fff"],
.sitehub-page-modal__body span[style*="color:#ffffff"],
.sitehub-page-modal__body span[style*="color: #ffffff"] {
  color: #111;
}

@media (max-width: 768px) {
  .sitehub-page-modal {
    padding: 12px 8px;
  }

  .sitehub-page-modal__dialog {
    max-height: 92vh;
  }

  .sitehub-page-modal__body {
    font-size: 15px;
    padding: 16px 14px 22px;
  }
}
