[data-slot="popover-content"]:has(#cjms-notice) {
  gap: 10px !important;
}

[role="tabpanel"]:has(#cjms-notice) {
  flex: 0 0 auto !important;
  margin-top: 8px !important;
}

[role="tabpanel"]:has(#cjms-notice) > [role="presentation"] {
  height: auto !important;
  max-height: none !important;
  padding-right: 0 !important;
}

[role="tabpanel"]:has(#cjms-notice) > [role="presentation"] > [role="presentation"] {
  height: auto !important;
  overflow: visible !important;
}

[role="tabpanel"]:has(#cjms-notice) .prose {
  height: auto !important;
}

#cjms-notice {
  display: grid;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

#cjms-notice *,
#cjms-notice *::before,
#cjms-notice *::after {
  box-sizing: border-box;
}

#cjms-notice a {
  text-decoration: none !important;
}

#cjms-notice .cj-buy {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 90px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(184, 133, 55, 0.58);
  border-radius: 10px;
  background:
    linear-gradient(151deg, rgba(255, 252, 243, 0) 0%, rgba(255, 252, 243, 0.04) 52%, rgba(255, 252, 243, 0.17) 72%, rgba(255, 252, 243, 0.38) 100%),
    linear-gradient(110deg, #fcfbf7 0%, #f1dfb7 53%, #f0ddb0 100%);
  box-shadow: 0 5px 16px rgba(111, 76, 19, 0.055);
  color: #593b0c !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#cjms-notice .cj-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(111, 76, 19, 0.1);
}

#cjms-notice .cj-buy-copy {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 0;
  padding-right: 50px;
}

#cjms-notice .cj-kicker {
  display: block;
  margin-bottom: 5px;
  color: #9b6909;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

#cjms-notice .cj-buy strong {
  display: block;
  color: #593b0c;
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

#cjms-notice .cj-buy small {
  display: block;
  margin-top: 5px;
  color: #86600f;
  font-size: 11px;
  line-height: 1.3;
}

#cjms-notice .cj-launch {
  position: absolute;
  top: 50%;
  right: 16px;
  z-index: 1;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(154, 105, 11, 0.16);
  border-radius: 9px;
  background: rgba(255, 252, 242, 0.34);
  color: #9b6909;
  font-size: 16px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

#cjms-notice .cj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#cjms-notice .cj-mini {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.07);
  color: #0f172a !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#cjms-notice .cj-qq {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.2), transparent 44%),
    linear-gradient(145deg, #f1faff 0%, #e4f3ff 100%);
  border-color: rgba(14, 165, 233, 0.18);
}

#cjms-notice .cj-doc {
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.16), transparent 44%),
    linear-gradient(145deg, #faf7ff 0%, #f0eaff 100%);
  border-color: rgba(139, 92, 246, 0.16);
}

#cjms-notice .cj-mini:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow: 0 11px 28px rgba(15, 23, 42, 0.18);
}

#cjms-notice .cj-icon {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

#cjms-notice .cj-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#cjms-notice .cj-qq .cj-icon {
  border: 1px solid rgba(14, 165, 233, 0.16);
  background: rgba(255, 255, 255, 0.66);
  color: #1ebafc;
}

#cjms-notice .cj-doc .cj-icon {
  border: 1px solid rgba(139, 92, 246, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: #7c3aed;
}

#cjms-notice .cj-icon .cj-qq-logo {
  width: 23px;
  height: 23px;
  fill: #1ebafc;
  stroke: none;
}

#cjms-notice .cj-mini-copy {
  display: block;
  min-width: 0;
}

#cjms-notice .cj-mini strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
}

#cjms-notice .cj-mini small {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark #cjms-notice .cj-qq {
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.18), transparent 44%),
    linear-gradient(145deg, #101c30 0%, #13243a 100%);
  border-color: rgba(56, 189, 248, 0.18);
}

.dark #cjms-notice .cj-buy {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 83% 12%, rgba(56, 189, 248, 0.32), transparent 34%),
    radial-gradient(circle at 96% 86%, rgba(99, 102, 241, 0.28), transparent 36%),
    linear-gradient(135deg, #090f1d 0%, #111b32 54%, #172554 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  color: #fff !important;
}

.dark #cjms-notice .cj-buy:hover {
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.dark #cjms-notice .cj-kicker {
  color: #7dd3fc;
}

.dark #cjms-notice .cj-buy strong {
  color: #fff;
}

.dark #cjms-notice .cj-buy small {
  color: rgba(226, 232, 240, 0.72);
}

.dark #cjms-notice .cj-launch {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.dark #cjms-notice .cj-doc {
  background:
    radial-gradient(circle at 12% 8%, rgba(139, 92, 246, 0.18), transparent 44%),
    linear-gradient(145deg, #17172f 0%, #211b3a 100%);
  border-color: rgba(139, 92, 246, 0.18);
}

.dark #cjms-notice .cj-mini strong {
  color: #f8fafc;
}

.dark #cjms-notice .cj-mini small {
  color: rgba(226, 232, 240, 0.62);
}

.dark #cjms-notice .cj-qq .cj-icon,
.dark #cjms-notice .cj-doc .cj-icon {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 370px) {
  #cjms-notice .cj-grid {
    grid-template-columns: 1fr;
  }

  #cjms-notice .cj-mini {
    min-height: 72px;
  }

  #cjms-notice .cj-buy {
    min-height: 88px;
  }
}
