/* Tooltip (hover / focus) */
.ccg-cannabinoid-link {
  cursor: help;
  border-bottom: 1px dotted currentColor;
  text-decoration: none;
}

.ccg-tooltip {
  position: absolute;
  z-index: 100000;
  max-width: min(360px, 92vw);
  padding: 10px 12px;
  background: #111;
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ccg-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

html.ccg-modal-open {
  overflow: hidden;
}

/* Modal */
.ccg-modal[hidden] {
  display: none !important;
}

.ccg-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ccg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.ccg-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 20px 22px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.ccg-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #444;
}

.ccg-modal__title {
  margin: 0 32px 12px 0;
  font-size: 1.35rem;
}

.ccg-modal__body {
  font-size: 0.95rem;
  line-height: 1.55;
}

.ccg-modal__body p:first-child {
  margin-top: 0;
}

.ccg-modal__more-wrap {
  margin: 16px 0 0;
}

.ccg-footer-links {
  margin: 2rem auto;
  padding: 12px 16px;
  max-width: 960px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ccg-footer-links__title {
  margin: 0 0 6px;
  font-weight: 600;
}

.ccg-footer-links__sep {
  opacity: 0.45;
  margin: 0 4px;
}
