/**
 * Theme Name:   Twenty Twenty-Five Child
 * Template:     twentytwentyfive
 * Version:      1.0.0
 */

/* ── 1) WIDEN THE MEMBERSHIP CONTAINER ── */
.custom-membership-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ── 2) EXAMPLE LINK SPACING ── */
.pmpro-example-link {
  margin-top: 0.5rem;
}

/* ── 3) “VIEW EXAMPLE DASHBOARD” LINK ── */
#view-example-dashboard {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
  border-bottom: 1px dashed #0073aa;
}
#view-example-dashboard:hover {
  color: #005177;
  border-color: #005177;
}

/* ── 4) MODAL BACKDROP & BOX ── */
#dashboard-example-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}
#dashboard-example-modal .pmpro-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 1rem;
  border-radius: 4px;
  max-width: 800px !important;
  width: 90% !important;
  max-height: 80vh !important;
  overflow: auto;
  position: relative;
}
#dashboard-example-modal .pmpro-modal-close {
  position: absolute;
  top: .5rem;
  right: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
}
#dashboard-example-modal .pmpro-modal-close:hover {
  color: #444;
}
#dashboard-example-modal .pmpro-modal-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 5) HIDE FOOTER ── */
footer, .site-footer {
  display: none !important;
}

/* ── 6) ALLOW TOOLTIP OVERFLOW ── */
.pmpro_card_content,
.pmpro_levels_table th,
.pmpro_levels_table td {
  overflow: visible !important;
}

/* ── 7) INLINE-FLEX WRAPPER FOR LEVEL NAME + ICON ── */
.level-name-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

/* ── 8) SIMPLE CIRCLE HELP BUTTON ── */
.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1;
  margin-left: 0.25rem;
  vertical-align: middle;
  cursor: help;
  padding: 0;
}
.help-button:focus {
  outline: 2px solid #005177;
  outline-offset: 2px;
}

/* ── 9) CUSTOM TOOLTIP VIA PSEUDO-ELEMENTS ── */
.help-button[data-tooltip] {
  position: relative;
  z-index: 1;
}
.help-button[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 0.5rem;
  border-radius: 4px;
  white-space: normal;
  width: 260px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-in;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.help-button[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.1s ease-in;
  pointer-events: none;
  z-index: 10001;
}
.help-button[data-tooltip]:hover::after,
.help-button[data-tooltip]:focus::after,
.help-button[data-tooltip]:hover::before,
.help-button[data-tooltip]:focus::before {
  opacity: 1;
}
/* ── Simple circle help button ── */
.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #0073aa;  /* same blue as your select button */
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1;
  margin-left: 0.25rem;       /* space from the text */
  vertical-align: middle;
  cursor: help;
  padding: 0;
  transition: opacity 0.1s ease-in;
}

/* Optional: remove focus outline or style it */
.help-button:focus {
  outline: 2px solid #005177;
  outline-offset: 2px;
}