/* Virtual betslip: "+" buttons, floating counter, printed-ticket drawer.
 * The drawer shares the ticket treatment with the homepage FREE card:
 * paper surface, Geist Mono receipt type, perforated tear line.
 * Only shared CSS variables from :root are referenced here. */

/* "+" add-to-slip button on bet rows (dark surfaces) */
.slip-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex: none;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--green-bright); font-size: 18px; font-weight: 700; line-height: 1;
  font-family: var(--font-body); cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.slip-add:hover { border-color: var(--green); }
.slip-add.on { background: var(--green); border-color: var(--green); color: #05230f; }
/* 30px visual, 44px tap target via the invisible ::after halo */
.slip-add.sm { width: 30px; height: 30px; font-size: 15px; border-radius: var(--radius-xs); margin-left: 4px; vertical-align: middle; position: relative; }
.slip-add.sm::after { content: ''; position: absolute; inset: -7px; }
.slip-add svg { width: 16px; height: 16px; }
.slip-add.sm svg { width: 13px; height: 13px; }

/* floating slip button (sits above the mobile tab bar, z 80) */
.slip-pill {
  position: fixed; right: 16px; bottom: 18px; z-index: 125;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green);
  color: #05230f; border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.02em; padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: background-color 0.12s ease;
}
.slip-pill:hover { background: var(--green-press); }
.slip-pill .n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-xs);
  background: #05230f; color: var(--green-bright);
  font-family: var(--font-mono); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  /* phones: the tab bar's Slip item (with count badge) is the one entry —
     a floating pill on top of it covered the picks it was selling */
  .slip-pill { display: none; }
}

/* drawer: FanDuel-style slip — white card, navy ink, book-branded rows.
   Local tokens so the site theme never bleeds in (the slip is white in both
   day and night mode, exactly like the FD app's). */
.slip-scrim { position: fixed; inset: 0; z-index: 130; background: rgba(3, 8, 13, 0.7); }
.slip-drawer {
  --slip-bg: #ffffff;
  --slip-ink: #10284b;
  --slip-muted: #5f6f85;
  --slip-line: #e2e8f0;
  --slip-blue: #1493ff;
  position: fixed; right: 0; bottom: 0; z-index: 135;
  width: min(440px, 100vw); max-height: min(80vh, 660px); overflow-y: auto;
  background: var(--slip-bg); color: var(--slip-ink);
  border: 0; border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 44px rgba(0, 0, 0, 0.45);
  font-family: var(--font-body);
}
@media (min-width: 861px) {
  .slip-drawer { right: 18px; bottom: 18px; border-radius: var(--radius); }
}
.slip-drawer::before {
  content: 'ThePropDealer';
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-16deg);
  font-weight: 700; font-size: 38px; letter-spacing: 0.04em; white-space: nowrap;
  color: rgba(16, 40, 75, 0.04);
  overflow: hidden; pointer-events: none;
}
.slip-drawer > * { position: relative; }

.slip-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--slip-ink); }
.slip-head h3 {
  flex: 1; margin: 0; font-family: var(--font-body); font-weight: 800;
  font-size: 17px; letter-spacing: 0; text-transform: none;
  color: var(--slip-ink);
}
.slip-head .ct {
  color: var(--slip-muted); font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slip-clear {
  background: none; border: 1px solid var(--slip-line); border-radius: var(--radius-xs);
  color: var(--slip-muted); font-family: var(--font-body); font-weight: 700;
  font-size: 11px; padding: 5px 10px; cursor: pointer;
}
.slip-clear:hover { color: var(--danger); border-color: var(--danger); }
.slip-clear.armed { color: #fff; background: var(--danger); border-color: var(--danger); }
.slip-close {
  background: none; border: 0; color: var(--slip-muted);
  padding: 4px 6px; cursor: pointer; display: inline-flex; line-height: 0;
}
.slip-close svg { width: 16px; height: 16px; }
.slip-close:hover { color: var(--slip-ink); }

/* legs: FD line items — bold selection, muted market, odds right */
.slip-legs { display: grid; gap: 0; margin: 4px 0 0; }
.slip-leg {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; border-bottom: 1px solid var(--slip-line);
  border-radius: 0; padding: 10px 0;
}
.slip-leg .w { flex: 1; min-width: 0; overflow: hidden; }
.slip-leg .t {
  font-weight: 700; font-size: 13.5px; color: var(--slip-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slip-leg .p { color: var(--slip-muted); font-size: 12px; font-weight: 500; }
.slip-leg .lp {
  flex: none; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  color: var(--slip-ink); font-variant-numeric: tabular-nums;
}
.slip-leg .rm {
  background: none; border: 0; color: var(--slip-muted);
  padding: 4px 6px; cursor: pointer; flex: none; display: inline-flex; line-height: 0;
}
.slip-leg .rm svg { width: 14px; height: 14px; }
.slip-leg .rm:hover { color: var(--danger); }

.slip-leg.started .t, .slip-leg.started .p, .slip-leg.started .lp { color: #9aa7b8; }
.slip-leg.started .t { text-decoration: line-through; }
.st-tag {
  display: inline-block; margin-left: 6px; padding: 1px 5px;
  border: 1px solid var(--slip-line); border-radius: var(--radius-xs);
  color: var(--slip-muted); font-size: 9px; letter-spacing: 0.08em;
  vertical-align: 1px;
}

.slip-hint { margin: 8px 0 0; color: var(--slip-muted); font-size: 11.5px; line-height: 1.5; }

/* the old receipt tear is now a plain divider */
.slip-drawer .tear { position: relative; height: 0; margin: 12px -18px 0; border-top: 1px solid var(--slip-line); }
.slip-drawer .tear::before, .slip-drawer .tear::after { content: none; }

/* FD-style wager box */
.slip-stake { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; }
.wager-box {
  display: inline-flex; flex-direction: column; gap: 1px;
  border: 1.5px solid var(--slip-ink); border-radius: 8px;
  padding: 6px 12px; min-width: 108px; cursor: text;
}
.wager-box .wl { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slip-muted); }
.wager-box .wv { display: inline-flex; align-items: baseline; font-weight: 800; font-size: 16px; color: var(--slip-ink); }
.wager-box input {
  width: 64px; border: 0; outline: 0; padding: 0; background: none;
  color: var(--slip-ink); font-family: var(--font-body); font-weight: 800; font-size: 16px;
}
.wager-note { color: var(--slip-muted); font-size: 11.5px; font-weight: 600; }

/* stacked sportsbooks: [logo][returns][Bet Here][Sign Up?] */
.slip-books { display: grid; gap: 8px; margin: 14px 0 0; }
.sb-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--slip-line); border-radius: 10px;
  padding: 10px 12px;
}
.sb-row.book-fanduel { --sb-color: var(--book-fd, #0172fb); }
.sb-row.book-draftkings { --sb-color: var(--book-dk, #61b510); }
.sb-row.book-bet365 { --sb-color: var(--book-b365, #14805e); }
.sb-logo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 32px; border-radius: 7px; flex: none;
  background: var(--sb-color); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: 0.03em;
}
.sb-row.book-draftkings .sb-logo { color: #0b2007; }
.sb-return { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 6px; }
.sb-return .rt { display: inline-flex; flex-direction: column; line-height: 1.25; }
.sb-return .rt .lbl { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slip-muted); }
.sb-return .rt b { font-size: 14.5px; font-weight: 800; color: var(--slip-ink); font-variant-numeric: tabular-nums; }
.sb-return .px { font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; color: var(--slip-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-exact {
  flex: none; padding: 2px 5px; border-radius: var(--radius-xs);
  background: rgba(1, 114, 251, 0.1); color: var(--book-fd, #0172fb);
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em;
}
.sb-bet {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--sb-color); color: #fff; border-radius: 8px;
  font-weight: 800; font-size: 13px; padding: 9px 14px;
  transition: filter 0.12s ease;
}
.sb-bet:hover { filter: brightness(1.08); }
.sb-row.book-draftkings .sb-bet { color: #0b2007; }
.sb-signup {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1.5px solid var(--green, #0f7a44); color: var(--green-bright, #0f7a44);
  border-radius: 8px; font-weight: 800; font-size: 12px; padding: 8px 11px;
}
.sb-signup:hover { background: rgba(53, 217, 128, 0.08); }
.sb-badge {
  position: absolute; top: -8px; right: 10px;
  background: var(--gold, #a8850b); color: #231a00;
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
}

.slip-price-note { margin: 0; color: var(--slip-muted); font-size: 10.5px; line-height: 1.5; }
.slip-miss {
  color: var(--slip-muted); font-size: 11px; line-height: 1.5;
  border: 1px dashed var(--slip-line); border-radius: var(--radius-xs);
  padding: 9px 12px;
}

/* home-page suggested-parlay SGP badge once the true FD price is filled in */
.pc-odds.is-sgp.is-priced { color: var(--green-bright); letter-spacing: 0; font-size: 15px; }

.slip-b365 { border-top: 1px solid var(--slip-line); margin-top: 12px; padding-top: 10px; }
.slip-b365 .hd { color: var(--slip-muted); font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.slip-b365 a { display: flex; align-items: center; gap: 8px; color: var(--slip-ink); font-size: 12.5px; font-weight: 600; padding: 5px 0; }
.slip-b365 a:hover { color: var(--book-b365, #14805e); }
.slip-b365 a .lg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-b365 a .px { font-family: var(--font-mono); font-variant-numeric: tabular-nums; margin-left: auto; flex: none; }
.slip-b365 a .mono365 {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 18px; border-radius: 3px; flex: none;
  background: var(--book-b365); color: var(--book-b365-ink, #fff);
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.05em;
}

.slip-note { margin: 12px 0 0; color: var(--slip-muted); font-size: 10px; line-height: 1.5; }

/* empty slip state (white surface — never the dark-theme tokens) */
.slip-empty { text-align: center; color: var(--slip-muted); font-size: 13px; line-height: 1.55; padding: 26px 18px; }
.slip-empty .hd { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--slip-ink); margin-bottom: 4px; }
.slip-empty b { color: var(--book-fd, #0172fb); }
.slip-empty .se-builder { display: block; margin-top: 10px; color: var(--green-bright); font-weight: 700; }
.slip-pill svg { width: 15px; height: 15px; flex: none; }
