/* Relies on the core app's CSS custom properties (--moss, --turf, --turf-deep,
   --ochre, --ochre-deep), defined in vendor/golfrec/static/styles.css and
   loaded on the same page. */

/* One flat row - the four retailers no longer split into new/used groups,
   so there's nothing left to stack; a single wrapping flex row replaces the
   old column-of-groups layout. */
.buy-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 0.78rem;
}

.buy-links span {
  min-width: 34px;
  color: var(--moss);
}

.buy-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--turf-deep);
  border-bottom: 1px solid var(--turf);
}

.buy-links a:hover,
.buy-links a:focus-visible {
  color: var(--turf);
}

.buy-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Sits as its own line directly under .page-header (see wrapper.py), not
   inside it - .page-header is a flex row, and pulling the negative margin up
   into its 24px margin-bottom keeps this reading like a continuation of the
   subtitle above rather than a new detached block. */
.affiliate-disclosure {
  margin: -14px 0 20px;
  color: var(--moss);
  font-size: 0.72rem;
}

.site-footer {
  padding: 14px 24px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--moss);
  font-size: 0.72rem;
}

/* ---------- Club request panel ---------- */
/* Background/text/input treatment all match the profile sidebar exactly
   (same --ink panel, same --ink-soft fields, same translucent-chalk label
   and border opacities) rather than a color merely inspired by it - so this
   reads as a piece of the profile, not a lookalike in a different palette. */

.club-request-panel {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  background: var(--ink);
}

.club-request-panel summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--chalk);
  list-style: none;
}

.club-request-panel summary::-webkit-details-marker {
  display: none;
}

.club-request-panel summary::before {
  content: "+ ";
  color: var(--turf);
}

.club-request-panel[open] summary::before {
  content: "\2212 ";
}

.club-request-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.club-request-form .field span {
  color: rgba(246, 242, 231, 0.7);
}

/* Core only styles .field input/select, not textarea - the notes field was
   falling through to unstyled browser defaults (white box, black text),
   which nothing here caught until the panel went dark and made it obvious. */
.club-request-form textarea {
  width: 100%;
  min-height: 60px;
  border: 1px solid rgba(246, 242, 231, 0.24);
  border-radius: 7px;
  background: var(--ink-soft);
  color: var(--chalk);
  padding: 10px 12px;
  outline: none;
  font: inherit;
  resize: vertical;
}

.club-request-form textarea:focus {
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(168, 128, 31, 0.28);
}

.club-request-actions {
  display: flex;
}

.secondary-action {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(246, 242, 231, 0.3);
  border-radius: 7px;
  background: transparent;
  color: var(--chalk);
  font-weight: 600;
  cursor: pointer;
}

.secondary-action:hover {
  background: rgba(246, 242, 231, 0.08);
}

.secondary-action:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.secondary-action:disabled {
  cursor: wait;
  opacity: 0.65;
}

.club-request-status {
  margin: 0;
  font-size: 0.85rem;
}

/* Empty (no submission yet) takes up no space at all - only a state after a
   submit attempt turns this into a visible banner, not just colored text,
   so success/failure is unmistakable rather than a subtle color change next
   to a form that just went blank from the reset. */
.club-request-status:empty {
  display: none;
}

.club-request-status[data-state="ok"],
.club-request-status[data-state="error"] {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 7px;
  font-weight: 600;
  color: var(--chalk);
}

/* Solid-ish tinted chips rather than the faint low-opacity tints used on the
   panel's old light background - those would barely register against --ink. */
.club-request-status[data-state="ok"] {
  background: rgba(59, 110, 79, 0.4);
  border: 1px solid var(--turf);
}

.club-request-status[data-state="error"] {
  background: rgba(139, 58, 43, 0.4);
  border: 1px solid var(--flag);
}
