/**
 * Styling for the on-request badger CTA on the badge term embedded view.
 *
 * Renders inside the `group_checkout` fieldset, immediately after the
 * standing facilitator schedule cards. Designed to feel like a "secondary
 * option" — clearly visible but quieter than the schedule cards so members
 * try the standing times first.
 */

.badge-sessions-on-request {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mh-color-border, #e0e0e0);
}

.badge-sessions-on-request > .item-list__title,
.badge-sessions-on-request > h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mh-color-neutral-800, #444);
  margin: 0 0 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}

.badge-sessions-on-request ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-sessions-on-request li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Outline button — uses the brand maroon. Bootstrap's btn classes provide
   the hit area; these rules ensure consistent styling regardless of which
   theme variant is active and provide a fallback when btn classes aren't
   loaded (e.g. an admin theme).
   `!important` on hover colors because Bootstrap's `.btn-outline-primary:hover`
   and the global `a:hover` rules each try to set color/background and would
   otherwise win specificity against this single-class selector. */
a.on-request-badger-btn,
.on-request-badger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mh-color-brand-primary, #6f3a3a);
  background: #fff;
  border: 1px solid var(--mh-color-brand-primary, #6f3a3a);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* SVG calendar glyph as a pseudo-element. Avoids the 📅 emoji which renders
   as a tear-off calendar with the literal day "17" on most platforms. */
.on-request-badger-btn::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/></svg>") center / contain no-repeat;
}

a.on-request-badger-btn:hover,
a.on-request-badger-btn:focus,
.on-request-badger-btn:hover,
.on-request-badger-btn:focus {
  background: var(--mh-color-brand-primary, #6f3a3a) !important;
  border-color: var(--mh-color-brand-primary, #6f3a3a) !important;
  color: #fff !important;
  text-decoration: none !important;
}
