/* 12 Bars Silent Auction. Colors match the site; override these variables in your theme if needed. */
:root {
  --tbsa-red: #C8102E;
  --tbsa-green: #0E2A20;
  --tbsa-gold: #F2C14E;
  --tbsa-ink: #1d2a24;
  --tbsa-muted: #5e6e64;
  --tbsa-line: #d9d0bc;
  --tbsa-card: #ffffff;
  --tbsa-radius: 14px;
}

.tbsa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.tbsa-card { background: var(--tbsa-card); color: var(--tbsa-ink); border: 1px solid var(--tbsa-line); border-radius: var(--tbsa-radius); overflow: hidden; display: flex; flex-direction: column; }
.tbsa-card.is-closed { opacity: .75; }
.tbsa-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #eee6d4; }
.tbsa-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tbsa-card__noimg { display: block; width: 100%; height: 100%; }
.tbsa-badge { position: absolute; top: 12px; left: 12px; background: var(--tbsa-green); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.tbsa-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tbsa-card__title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.tbsa-card__title a { color: inherit; text-decoration: none; }
.tbsa-card__donor { margin: 0; color: var(--tbsa-muted); font-size: .9rem; }
.tbsa-card__facts, .tbsa-panel__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.tbsa-card__facts div, .tbsa-panel__facts div { display: flex; flex-direction: column; }
.tbsa-card__facts dt, .tbsa-panel__facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tbsa-muted); }
.tbsa-card__facts dd, .tbsa-panel__facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.tbsa-card__time { margin: 0; font-size: .9rem; color: var(--tbsa-muted); }
.tbsa-card .tbsa-btn { margin-top: auto; text-align: center; }

.tbsa-btn { display: inline-block; background: var(--tbsa-red); color: #fff !important; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; min-height: 44px; }
.tbsa-btn:hover { filter: brightness(1.08); }
.tbsa-btn:disabled { opacity: .6; cursor: default; }

.tbsa-panel { background: var(--tbsa-card); color: var(--tbsa-ink); border: 1px solid var(--tbsa-line); border-radius: var(--tbsa-radius); padding: 24px; margin: 28px 0; display: flex; flex-direction: column; gap: 16px; }
.tbsa-time { margin: 0; font-weight: 700; font-size: 1.1rem; }
.tbsa-countdown.is-soon { color: var(--tbsa-red); }
.tbsa-explain, .tbsa-status { margin: 0; line-height: 1.5; }
.tbsa-status { font-weight: 700; }
.tbsa-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tbsa-field { display: flex; flex-direction: column; gap: 6px; }
.tbsa-field--amount, .tbsa-agree, .tbsa-form .tbsa-btn, .tbsa-msg { grid-column: 1 / -1; }
.tbsa-field label { font-weight: 700; font-size: .95rem; }
.tbsa-field input { font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--tbsa-line); border-radius: 10px; background: #fff; color: var(--tbsa-ink); min-width: 0; }
.tbsa-field small { color: var(--tbsa-muted); }
.tbsa-money { display: flex; align-items: center; max-width: 260px; border: 2px solid var(--tbsa-line); border-radius: 10px; background: #fff; padding-left: 14px; }
.tbsa-money span { font-weight: 800; font-size: 1.25rem; color: var(--tbsa-muted); }
.tbsa-money input { border: 0; font-size: 1.25rem; font-weight: 800; width: 100%; }
.tbsa-money input:focus { outline: none; }
.tbsa-money:focus-within, .tbsa-field input:focus { border-color: var(--tbsa-green); outline: none; }
.tbsa-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.tbsa-agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--tbsa-red); flex: none; }
.tbsa-form .tbsa-btn { justify-self: start; font-size: 1.05rem; padding: 14px 28px; }
.tbsa-msg { margin: 0; min-height: 1.5em; font-weight: 700; }
.tbsa-msg.is-good { color: #1b6b3a; }
.tbsa-msg.is-warn { color: #8a5a00; }
.tbsa-msg.is-bad { color: var(--tbsa-red); }
.tbsa-fineprint { margin: 0; font-size: .8rem; color: var(--tbsa-muted); }
.tbsa-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tbsa-empty { font-weight: 700; }
