/* ============================================================
   Bet slip — betpinnacle-bet-slip-redesign (1440) / bet-slip-mobile (390)
   ============================================================ */

/* ---------- intro ---------- */
.bs-intro { background: var(--paper); padding: 24px 0; }
.bsi-copy { display: flex; flex-direction: column; gap: 8px; }
.bsi-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  line-height: 1; letter-spacing: -1px; color: var(--ink); text-transform: uppercase;
}
.bsi-text { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--ink); }
.bsi-back {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--muted); text-decoration: underline; text-transform: uppercase;
}
.bsi-back svg { width: 12px; height: 12px; flex: none; }
@media (min-width: 992px) {
  .bs-intro { padding: 96px 0 30px; }
  .bsi-copy { gap: 16px; }
  .bsi-title { font-size: 72px; letter-spacing: -2px; }
  .bsi-text { font-size: 14px; line-height: 1.5; }
  .bsi-back { margin-top: 24px; font-size: 14px; color: #4b5563; }
  .bsi-back svg { width: 16px; height: 16px; }
}

/* ---------- workspace shell ---------- */
.workspace { background: var(--paper); }
.ws-panels { display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .workspace { padding: 48px 0 70px; }
  .ws-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
  .ws-panels { flex-direction: row; gap: 24px; align-items: flex-start; }
}

/* ---------- shared step titles / badges ---------- */
.step-title { display: flex; align-items: center; gap: 8px; }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--accent); }
.step-num.is-brown { color: var(--brown); }
.step-name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 1px; color: var(--ink); text-transform: uppercase;
}
.count-badge {
  background: var(--accent); border-radius: 2px; padding: 4px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: var(--ink); white-space: nowrap;
}
@media (min-width: 992px) {
  .step-title { gap: 12px; }
  .step-num { font-size: 24px; }
  .count-badge { font-size: 12px; }
}

/* ---------- selections panel (01 + 02) ---------- */
.selections-panel {
  background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px; display: flex; flex-direction: column; gap: 16px;
}
.sp-header { display: flex; justify-content: space-between; align-items: center; }
.sp-divider { height: 1px; background: var(--line); flex: none; }
.sp-rows { display: flex; flex-direction: column; gap: 16px; }

.selection-row { display: flex; flex-direction: column; gap: 12px; }
.selection-row + .selection-row { border-top: 1px solid var(--line); padding-top: 16px; }
.sr-top { display: flex; justify-content: space-between; gap: 12px; }
.sr-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sr-league {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.5px; color: var(--gray-mid); text-transform: uppercase;
}
.sr-event {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  line-height: 1.1; color: var(--ink); text-transform: uppercase;
}
.sr-market {
  font-family: var(--font-display); font-weight: 400; font-size: 13px;
  color: var(--gray-mid); text-transform: uppercase;
}
.sr-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.sr-price {
  background: var(--accent); border-radius: 2px; padding: 6px 12px;
  font-family: var(--font-mono); font-weight: 900; font-size: 16px; color: var(--ink);
}
.sr-remove {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  color: var(--muted); white-space: nowrap;
}
.sr-pick { display: flex; gap: 16px; }
.sr-pick-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sr-pick-label {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: var(--gray-mid); text-transform: uppercase;
}
.sr-pick-value {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--ink); text-transform: uppercase;
}
@media (min-width: 992px) {
  .selections-panel { border: 0; border-radius: 4px; padding: 32px; gap: 24px; flex: 1 1 0; min-width: 0; }
  .sp-header { padding: 16px 20px; }
  .sp-rows { gap: 24px; }
  .selection-row { padding: 20px; gap: 16px; }
  .selection-row + .selection-row { padding-top: 20px; }
  .sr-top { align-items: center; }
  .sr-league { letter-spacing: 0; }
  .sr-actions { flex-direction: row; align-items: center; gap: 12px; }
  .sr-price { padding: 8px 16px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
  .sr-remove { padding: 6px 10px; font-size: 12px; }
  .sr-pick { gap: 0; }
}

/* ---------- stake section (02) ---------- */
.stake-section { display: flex; flex-direction: column; gap: 12px; }
.stake-groups { display: flex; flex-direction: column; gap: 20px; }
.stake-group { display: flex; flex-direction: column; gap: 12px; }
.stake-group + .stake-group { border-top: 1px solid var(--line); padding-top: 20px; }
.sg-name {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--ink); text-transform: uppercase;
}
#slip-app.is-single .sg-name,
#slip-app.is-single .sg-return { display: none; }
.sg-label {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: var(--gray-mid); text-transform: uppercase;
}
.stake-input {
  display: flex; align-items: center; height: 48px;
  background: var(--card); border: 1px solid var(--slate); border-radius: 4px;
  padding: 12px 16px; cursor: text;
}
.stake-input.is-invalid { border-color: var(--brown); }
.si-currency {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--ink); margin-right: 5px;
}
.si-field {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  line-height: 1; color: var(--ink); padding: 0;
}
.si-field::placeholder { color: var(--gray-mid); opacity: 1; }
.si-hint {
  flex: none;
  font-family: var(--font-display); font-weight: 400; font-size: 11px;
  color: var(--gray-mid); white-space: nowrap;
}
.stake-input.is-invalid .si-hint { color: var(--brown); }
.quick-adds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.qa-btn {
  background: var(--card); border: 1px solid var(--slate); border-radius: 2px;
  padding: 8px 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  line-height: 1.4; color: var(--ink);
}
.qa-clear {
  padding: 8px 0 8px 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  line-height: 1.4; color: var(--gray-mid);
}
.sg-return { display: flex; justify-content: space-between; align-items: center; }
.sg-return-label {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: var(--gray-mid); text-transform: uppercase;
}
.sg-return-value { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
@media (min-width: 992px) {
  .stake-section { padding: 20px; gap: 16px; }
  .stake-group { gap: 16px; }
  .stake-input { height: 52px; padding: 14px 16px; gap: 10px; }
  .si-currency { font-size: 20px; }
  .si-field { flex: 0 0 auto; width: 110px; font-size: 20px; }
  .si-hint { flex: 1 1 auto; text-align: left; }
  .quick-adds { gap: 8px; }
  .qa-btn { padding: 8px 16px; font-size: 12px; line-height: 1.35; }
  .qa-clear { font-size: 12px; line-height: 1.35; }
}

/* ---------- summary panel (03) ---------- */
.summary-panel {
  background: var(--ink-2); padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.sm-header { display: flex; justify-content: space-between; align-items: center; }
.sm-header .step-name { color: #ffffff; }
.sm-heading { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #ffffff; }
.sm-badge {
  align-self: flex-start;
  background: var(--accent); border-radius: 999px; padding: 4px 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  color: var(--ink); white-space: nowrap;
}
.sm-divider { height: 1px; background: rgba(255, 255, 255, 0.078); flex: none; }
.sm-details { display: flex; flex-direction: column; gap: 16px; }
.sm-item { display: flex; flex-direction: column; gap: 8px; }
.sm-event {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  line-height: 1.1; color: #ffffff; text-transform: uppercase;
}
.sm-market {
  font-family: var(--font-display); font-weight: 400; font-size: 12px;
  color: #94a3b8; text-transform: uppercase;
}
.sm-pick { display: flex; justify-content: space-between; align-items: center; }
.sm-pick-label {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: #ffffff; text-transform: uppercase;
}
.sm-pick-price { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: #ffffff; }
.sm-financials { display: flex; flex-direction: column; gap: 8px; }
.sm-row { display: flex; justify-content: space-between; align-items: center; }
.sm-label {
  font-family: var(--font-display); font-weight: 400; font-size: 12px;
  color: #94a3b8; text-transform: uppercase;
}
.sm-value { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #ffffff; }
.sm-return-label {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: #ffffff; text-transform: uppercase;
}
.sm-return-value { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); }
.place-bet {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  height: 48px; background: var(--accent); border-radius: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; color: var(--ink); text-transform: uppercase;
}
.place-bet svg { width: 14px; height: 14px; flex: none; }
.place-bet:disabled { opacity: 0.45; cursor: not-allowed; }
.sm-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sm-foot-note {
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: #94a3b8; text-transform: uppercase;
}
.sm-foot-link {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  color: var(--accent); text-decoration: underline; text-transform: uppercase;
}
@media (min-width: 992px) {
  .summary-panel { width: 400px; flex: none; border-radius: 2px; padding: 28px; }
  .sm-header .step-num { font-size: 20px; }
  .sm-header .step-name { font-size: 12px; letter-spacing: 0; }
  .sm-heading { font-size: 16px; }
  .sm-badge { font-size: 11px; color: var(--ink); }
  .sm-item { gap: 10px; }
  .sm-event { font-size: 14px; }
  .sm-pick-price { font-family: var(--font-display); font-size: 16px; }
  .sm-financials { gap: 12px; }
  .sm-label { font-size: 13px; }
  .place-bet { letter-spacing: 0; }
  .place-bet svg { width: 16px; height: 16px; }
  .sm-foot { gap: 8px; }
}

/* ---------- empty + confirmation states ---------- */
.slip-empty,
.slip-confirm {
  background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.slip-empty[hidden],
.slip-confirm[hidden],
.ws-panels[hidden] { display: none !important; }
.se-title,
.sc-title {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  line-height: 1.05; letter-spacing: -0.5px; color: var(--ink); text-transform: uppercase;
}
.se-text,
.sc-text { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--muted); max-width: 480px; }
.se-cta {
  display: inline-flex; justify-content: center; align-items: center;
  height: 48px; padding: 0 24px; margin-top: 8px;
  background: var(--accent); border-radius: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.5px; color: var(--ink); text-transform: uppercase;
}
.sc-tick {
  width: 48px; height: 48px; border-radius: 999px; background: var(--accent);
  display: inline-flex; justify-content: center; align-items: center;
}
.sc-tick svg { width: 22px; height: 22px; }
.sc-rows { display: flex; flex-direction: column; gap: 8px; width: min(344px, 100%); margin-top: 8px; }
.sc-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 8px;
}
.sc-label {
  font-family: var(--font-display); font-weight: 400; font-size: 12px;
  color: var(--gray-mid); text-transform: uppercase;
}
.sc-value { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.sc-value.is-return { font-size: 18px; color: var(--brown); }
@media (min-width: 992px) {
  .slip-empty,
  .slip-confirm { border: 0; border-radius: 4px; padding: 72px 48px; gap: 16px; }
  .se-title,
  .sc-title { font-size: 36px; letter-spacing: -1px; }
  .se-text,
  .sc-text { font-size: 14px; line-height: 1.5; }
}

/* ---------- responsible wagering ---------- */
.bs-responsible { background: var(--card); padding: 40px 0 16px; }
.rw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  line-height: 1; letter-spacing: -0.5px; color: var(--ink); text-transform: uppercase;
}
.rw-text { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 20px; }
.rw-divider { height: 1px; background: var(--line); margin-top: 20px; }
.rw-tools { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.rw-tool { display: flex; flex-direction: column; gap: 8px; }
.rw-tool + .rw-tool { border-top: 1px solid var(--line); padding-top: 16px; }
.rwt-num { font-family: var(--font-display); font-weight: 700; font-size: 12px; color: var(--muted); }
.rwt-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.rwt-text { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--muted); }
.rwt-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--ink); margin-top: 4px; }
@media (min-width: 992px) {
  .bs-responsible { padding: 96px 0; }
  .rw-title { font-size: 72px; letter-spacing: -2px; }
  .rw-text { font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 760px; margin-top: 40px; }
  .rw-divider { margin-top: 40px; }
  .rw-tools { gap: 24px; margin-top: 40px; }
  .rw-tool { gap: 12px; }
  .rw-tool + .rw-tool { padding-top: 24px; }
  .rwt-num { font-size: 14px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }
  .rwt-title { font-size: 24px; }
  .rwt-text { font-size: 14px; line-height: 1.5; color: var(--ink); }
  .rwt-link { font-size: 13px; margin-top: 0; }
}

/* ---------- loss warning ---------- */
.loss-warning { background: var(--accent); padding: 16px 0; }
.lw-wrap { display: flex; flex-direction: column; gap: 20px; }
.lw-left { display: flex; flex-direction: column; gap: 12px; }
.lw-kicker { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.lw-title {
  font-family: var(--font-display); font-weight: 700; font-size: 36px;
  line-height: 1.05; color: var(--ink); text-transform: uppercase;
}
.lw-line1 { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: var(--ink); }
.lw-line2 { font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--ink); }
.betstop-module {
  background: var(--ink); border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.bm-title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #ffffff; }
.bm-text { font-family: var(--font-ui); font-size: 13px; line-height: 1.4; color: #ffffff; opacity: 0.9; }
.bm-link { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--accent); }
@media (min-width: 992px) {
  .loss-warning { padding: 96px 0; }
  .lw-wrap { flex-direction: row; gap: 24px; }
  .lw-left { flex: 1 1 0; gap: 16px; }
  .lw-title { font-size: 64px; }
  .lw-line1 { font-size: 14px; line-height: 1.25; }
  .lw-line2 { font-size: 14px; }
  .betstop-module { width: 360px; flex: none; border-radius: 24px; padding: 24px; gap: 12px; }
  .bm-title { font-size: 44px; letter-spacing: -1px; }
  .bm-text { font-size: 14px; line-height: 1.2; opacity: 1; }
  .bm-link { color: #ffffff; }
}

/* --- interaction polish --- */
.qa-btn:hover { border-color: var(--ink); }
.qa-clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-remove:hover { border-color: var(--ink); }
.place-bet:not(:disabled):hover { background: #eaba0b; }
.place-bet:not(:disabled):active { transform: translateY(1px); }
.sm-foot-link:hover, .rwt-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .qa-btn, .sr-remove, .place-bet { transition: background-color 0.15s cubic-bezier(0.2, 0, 0, 1), border-color 0.15s cubic-bezier(0.2, 0, 0, 1), transform 0.12s cubic-bezier(0.2, 0, 0, 1); }
}
