/* Track Bet: the + on a price and the bet slip (scripts/bet-slip.js). Colours are tokens. */
/* The + has a place of its own at the end of each price row: a third column
   of a game row's grid, inline after a prop's over / under price. It never
   sits over the price, and the line-movement icon keeps its own gap after it. */
.game-odds-row:has(.trk-add) { grid-template-columns: 40px auto 18px; column-gap: 6px; }
.prop-cell .trk-add { display: inline-block; vertical-align: middle; margin-left: 6px; }
.odds-cell-inner:has(.trk-add), .prop-cell-inner:has(.trk-add) { gap: 10px; }
.trk-add {
    width: 18px; height: 18px; line-height: 16px; padding: 0; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--tmb-blue); background: #fff; color: var(--tmb-blue);
    font-size: 13px; font-weight: 700; cursor: pointer; opacity: .35; transition: opacity .12s;
}
td:hover .trk-add, .trk-add:focus-visible { opacity: 1; }
@media (hover: none) { .trk-add { opacity: .85; } }
.trk-add:hover { background: var(--tmb-blue); color: #fff; }
.trk-add:disabled { opacity: .4; cursor: wait; }

.trk-slip {
    /* Above the Explore dock's button (bottom-right, ~44px tall). */
    position: fixed; right: 16px; bottom: 72px; z-index: 1040; width: 340px; max-width: calc(100vw - 32px);
    background: #fff; border: 1px solid var(--tmb-gray-300); border-radius: 12px;
    box-shadow: 0 8px 28px var(--tmb-black-20); font-size: 14px; display: none;
}
.trk-slip.trk-has { display: block; }
.trk-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.trk-toggle { background: none; border: 0; padding: 0; font-weight: 700; color: var(--tmb-gray-900); cursor: pointer; }
.trk-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--tmb-blue); color: #fff; font-size: 12px; text-align: center; }
.trk-link { margin-left: auto; font-size: 13px; }
.trk-close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--tmb-gray-600); cursor: pointer; padding: 0 2px; }
.trk-body { display: none; padding: 0 12px 12px; border-top: 1px solid var(--tmb-gray-300); max-height: 70vh; overflow-y: auto; }
.trk-open .trk-body { display: block; }
.trk-list { list-style: none; margin: 0; padding: 0; }
.trk-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--tmb-gray-100); }
.trk-sel { flex: 1; min-width: 0; }
.trk-label { font-weight: 600; color: var(--tmb-gray-900); }
.trk-meta { font-size: 12px; color: var(--tmb-gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-price { width: 62px; flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; font-size: 14px;
             border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; background: transparent; color: var(--tmb-gray-900); }
.trk-price:hover { border-color: var(--tmb-gray-300); }
.trk-price:focus { border-color: var(--tmb-gray-400); outline: none; background: #fff; }
.trk-price-mine { border-color: var(--tmb-amber-800); }
.trk-remove { background: none; border: 0; color: var(--tmb-gray-500); font-size: 18px; cursor: pointer; padding: 0 2px; }
.trk-stake { display: flex; gap: 8px; margin-top: 10px; }
.trk-units { flex: 1; min-width: 0; border: 1px solid var(--tmb-gray-400); border-radius: 8px; padding: 7px 10px; font-size: 15px; }
.trk-mode { display: flex; border: 1px solid var(--tmb-gray-400); border-radius: 8px; overflow: hidden; }
.trk-mode button { background: #fff; border: 0; padding: 0 10px; font-size: 13px; color: var(--tmb-gray-700); cursor: pointer; }
.trk-mode button.on { background: var(--tmb-blue); color: #fff; }
.trk-msg { margin-top: 8px; font-size: 13px; color: var(--tmb-green-700); }
.trk-msg.trk-bad { color: var(--tmb-red-700); }
.trk-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.trk-go { display: block; width: 100%; text-align: center; border: 0; border-radius: 8px; padding: 9px 12px; font-weight: 600;
          background: var(--tmb-blue); color: #fff !important; cursor: pointer; text-decoration: none !important; margin-top: 8px; }
.trk-actions .trk-go { margin-top: 0; }
.trk-parlay { background: var(--tmb-navy-700); }
.trk-note { font-size: 12px; color: var(--tmb-gray-600); }
.trk-clear { background: none; border: 0; padding: 0; margin-top: 8px; font-size: 12px; color: var(--tmb-gray-600); cursor: pointer; text-decoration: underline; }

/* front.css paints every <button> grey with !important (hover too) and gives it
   a bottom margin: every button of the slip says its own background louder. */
.trk-slip button, .trk-add { margin-bottom: 0 !important; }
.trk-add { background-color: #fff !important; }
.trk-add:hover { background-color: var(--tmb-blue) !important; }
.trk-slip .trk-toggle, .trk-slip .trk-close, .trk-slip .trk-remove, .trk-slip .trk-clear,
.trk-slip .trk-toggle:hover, .trk-slip .trk-close:hover, .trk-slip .trk-remove:hover, .trk-slip .trk-clear:hover { background-color: transparent !important; }
.trk-slip .trk-mode button, .trk-slip .trk-mode button:hover { background-color: #fff !important; }
.trk-slip .trk-mode button.on, .trk-slip .trk-mode button.on:hover { background-color: var(--tmb-blue) !important; }
.trk-slip .trk-go, .trk-slip .trk-go:hover { background-color: var(--tmb-blue) !important; }
.trk-slip .trk-parlay, .trk-slip .trk-parlay:hover,
.trk-slip .trk-matchup, .trk-slip .trk-matchup:hover { background-color: var(--tmb-navy-700) !important; }
/* The member's own note on the bet ("Add notes"), above the Track buttons. */
.trk-notes { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--tmb-gray-400); border-radius: 8px; padding: 7px 10px; font-size: 15px; line-height: 1.35; resize: vertical; min-height: 40px; color: var(--tmb-gray-900); font-family: inherit; }
.trk-notes::placeholder { color: var(--tmb-gray-500); }
.trk-notes:focus { outline: none; border-color: var(--tmb-blue); }
/* Locked (a visitor or an account that is not a current member): the message and the way to join. */
.trk-slip .trk-go-alt, .trk-slip .trk-go-alt:hover { background-color: var(--tmb-navy-700) !important; }   /* Sign up, under Log in */
.trk-slip .trk-msg.trk-join { color: var(--tmb-gray-900); margin: 10px 0; font-size: 14px; line-height: 1.45; }
