/* Final notice and member-expiry popup repair. */
html body .notice-popup-overlay,
html.light-theme body .notice-popup-overlay,
html.dark-theme body .notice-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483200 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  background: rgba(15, 23, 42, .34) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

html body .notice-popup,
html.light-theme body .notice-popup,
html.dark-theme body .notice-popup,
html body .notice-popup.member-expiry-popup,
html.light-theme body .notice-popup.member-expiry-popup,
html.dark-theme body .notice-popup.member-expiry-popup {
  position: relative !important;
  display: grid !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  width: min(92vw, 460px) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: calc(100dvh - 48px) !important;
  padding: 34px 26px 24px !important;
  border-radius: 32px !important;
  border: 1px solid rgba(147, 197, 253, .62) !important;
  background:
    radial-gradient(circle at 22% -12%, rgba(191, 219, 254, .78), transparent 36%),
    linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #f5f3ff 100%) !important;
  box-shadow: 0 28px 80px rgba(30, 64, 175, .22) !important;
  color: #172033 !important;
  -webkit-text-fill-color: currentColor !important;
  overflow: visible !important;
  text-align: left !important;
}

html body .notice-popup-close,
html.light-theme body .notice-popup-close,
html.dark-theme body .notice-popup-close,
html body .member-expiry-popup .notice-popup-close,
html.light-theme body .member-expiry-popup .notice-popup-close,
html.dark-theme body .member-expiry-popup .notice-popup-close {
  position: absolute !important;
  top: -16px !important;
  right: 18px !important;
  left: auto !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(147, 197, 253, .70) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffffff, #eff6ff) !important;
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .22) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transform: none !important;
}

html body .notice-popup-close:hover,
html.light-theme body .notice-popup-close:hover,
html.dark-theme body .notice-popup-close:hover {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html body .notice-popup-image,
html.light-theme body .notice-popup-image,
html.dark-theme body .notice-popup-image {
  display: block !important;
  width: 100% !important;
  max-height: 220px !important;
  object-fit: cover !important;
  border-radius: 24px !important;
  border: 1px solid rgba(147, 197, 253, .56) !important;
  box-shadow: 0 14px 30px rgba(59, 130, 246, .12) !important;
}

html body .notice-popup .eyebrow,
html.light-theme body .notice-popup .eyebrow,
html.dark-theme body .notice-popup .eyebrow,
html body .member-expiry-popup .eyebrow,
html.light-theme body .member-expiry-popup .eyebrow,
html.dark-theme body .member-expiry-popup .eyebrow {
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: calc(100% - 54px) !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px 15px !important;
  border: 1px solid rgba(147, 197, 253, .68) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86), 0 8px 18px rgba(59, 130, 246, .08) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body .notice-popup h3,
html.light-theme body .notice-popup h3,
html.dark-theme body .notice-popup h3,
html body .member-expiry-popup h3,
html.light-theme body .member-expiry-popup h3,
html.dark-theme body .member-expiry-popup h3 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  font-size: 26px !important;
  font-weight: 950 !important;
  line-height: 1.22 !important;
  letter-spacing: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

html body .member-expiry-popup h3 {
  color: #dc2626 !important;
  -webkit-text-fill-color: #dc2626 !important;
}

html body .notice-popup p,
html.light-theme body .notice-popup p,
html.dark-theme body .notice-popup p,
html body .member-expiry-popup p,
html.light-theme body .member-expiry-popup p,
html.dark-theme body .member-expiry-popup p {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(38dvh, 260px) !important;
  margin: 0 !important;
  padding: 0 2px !important;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.68 !important;
  white-space: pre-wrap !important;
  overflow: auto !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

html body .member-expiry-popup p,
html.light-theme body .member-expiry-popup p,
html.dark-theme body .member-expiry-popup p {
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c !important;
  background: rgba(254, 242, 242, .72) !important;
  border: 1px solid rgba(248, 113, 113, .22) !important;
  border-radius: 22px !important;
  padding: 13px 15px !important;
}

html body .notice-popup-confirm,
html.light-theme body .notice-popup-confirm,
html.dark-theme body .notice-popup-confirm,
html body .member-expiry-popup-actions button,
html.light-theme body .member-expiry-popup-actions button,
html.dark-theme body .member-expiry-popup-actions button {
  min-height: 48px !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

html body .member-expiry-popup-actions,
html.light-theme body .member-expiry-popup-actions,
html.dark-theme body .member-expiry-popup-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  margin: 4px 0 0 !important;
}

@media (max-width: 760px) {
  html body .notice-popup-overlay,
  html.light-theme body .notice-popup-overlay,
  html.dark-theme body .notice-popup-overlay {
    align-items: center !important;
    padding: 18px !important;
  }

  html body .notice-popup,
  html.light-theme body .notice-popup,
  html.dark-theme body .notice-popup,
  html body .notice-popup.member-expiry-popup,
  html.light-theme body .notice-popup.member-expiry-popup,
  html.dark-theme body .notice-popup.member-expiry-popup {
    width: min(94vw, 420px) !important;
    max-width: calc(100vw - 26px) !important;
    max-height: calc(100dvh - 36px) !important;
    gap: 12px !important;
    padding: 32px 18px 20px !important;
    border-radius: 28px !important;
  }

  html body .notice-popup-close,
  html.light-theme body .notice-popup-close,
  html.dark-theme body .notice-popup-close,
  html body .member-expiry-popup .notice-popup-close,
  html.light-theme body .member-expiry-popup .notice-popup-close,
  html.dark-theme body .member-expiry-popup .notice-popup-close {
    top: -14px !important;
    right: 14px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 25px !important;
  }

  html body .notice-popup .eyebrow,
  html.light-theme body .notice-popup .eyebrow,
  html.dark-theme body .notice-popup .eyebrow,
  html body .member-expiry-popup .eyebrow,
  html.light-theme body .member-expiry-popup .eyebrow,
  html.dark-theme body .member-expiry-popup .eyebrow {
    max-width: calc(100% - 48px) !important;
    min-height: 32px !important;
    padding: 7px 13px !important;
  }

  html body .notice-popup h3,
  html.light-theme body .notice-popup h3,
  html.dark-theme body .notice-popup h3,
  html body .member-expiry-popup h3,
  html.light-theme body .member-expiry-popup h3,
  html.dark-theme body .member-expiry-popup h3 {
    font-size: 22px !important;
    line-height: 1.26 !important;
  }

  html body .notice-popup p,
  html.light-theme body .notice-popup p,
  html.dark-theme body .notice-popup p,
  html body .member-expiry-popup p,
  html.light-theme body .member-expiry-popup p,
  html.dark-theme body .member-expiry-popup p {
    max-height: min(42dvh, 300px) !important;
    font-size: 14px !important;
    line-height: 1.62 !important;
  }

  html body .member-expiry-popup-actions,
  html.light-theme body .member-expiry-popup-actions,
  html.dark-theme body .member-expiry-popup-actions {
    grid-template-columns: 1fr !important;
  }
}
