/* round151 2026-11-18: Penrith Markets stall-number board + picker (hidden preview). Colours match the Blacktown map. */
#wsm-r151-ui { font-family: Poppins, Roboto, Arial, sans-serif; margin: 16px 0; }
.wsm-r151-banner { background: #0b1b3a; color: #fff; border-radius: 8px; padding: 14px 18px; margin: 0 0 16px; }
.wsm-r151-banner strong { color: #ffd04a; }
.wsm-r151-banner p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.wsm-r151-cta { display: inline-block; background: #ffd04a; color: #0b1b3a !important; font-weight: 600; border-radius: 6px; padding: 6px 12px; text-decoration: none; }
.wsm-r151-toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin: 0 0 14px; }
.wsm-r151-date span { display: block; font-size: 12px; font-weight: 600; color: #333; margin-bottom: 4px; }
.wsm-r151-date select { font-size: 14px; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; }
.wsm-r151-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #333; }
.wsm-r151-tickets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.wsm-r151-tickets button { font-family: inherit; font-size: 14px; border-radius: 6px; border: 1px solid #ccc; background: #fff; padding: 8px 10px; cursor: pointer; }
.wsm-r151-tickets button small { display: block; font-size: 11px; opacity: .8; }
.wsm-r151-tickets button.is-on { background: #0b1b3a; color: #fff; border-color: #0b1b3a; }
.wsm-r151-nopick { font-size: 14px; margin-left: 4px; }
.wsm-r151-note { font-size: 13px; color: #555; margin: 0 0 12px; }
.wsm-r151-selection { background: #f7f7f7; border: 1px solid #e2e2e2; border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }
.wsm-r151-selection h3 { margin: 0 0 6px; font-size: 16px; }
.wsm-r151-selection p { margin: 0; font-size: 14px; }
.wsm-r151-reserve { margin-top: 10px; background: #0b1b3a; color: #fff; border: 0; border-radius: 6px; padding: 10px 16px; font-weight: 600; font-size: 15px; cursor: pointer; }
.wsm-r151-reserve[disabled] { opacity: .6; cursor: wait; }
.wsm-r151-msg { margin-top: 8px; font-size: 14px; color: #b42318; }
.wsm-r151-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #333; margin: 0 0 12px; }
.wsm-r151-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wsm-r151-legend i { width: 16px; height: 16px; border-radius: 2px; display: inline-block; box-sizing: border-box; }
.wsm-r151-legend i.free, .wsm-r151-cell[data-status="free"] { background: #00c853; color: #fff; }
.wsm-r151-legend i.permanent, .wsm-r151-cell[data-status="permanent"] { background: #0d2a6b; color: #fff; }
.wsm-r151-legend i.booked, .wsm-r151-cell[data-status="booked"] { background: #e10600; color: #fff; }
.wsm-r151-legend i.away, .wsm-r151-cell[data-status="away"] { background: #7b1fa2; color: #fff; }
.wsm-r151-legend i.not_bookable, .wsm-r151-cell[data-status="not_bookable"] { background: #cfcfcf; color: #4a4a4a; }
.wsm-r151-legend i.casual, .wsm-r151-cell[data-status="casual"], .wsm-r151-cell.is-gone {
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), #333 calc(50% - 1px), #333 calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), #333 calc(50% - 1px), #333 calc(50% + 1px), transparent calc(50% + 1px)),
    #fff;
  border: 1.5px solid #222; color: #111;
}
.wsm-r151-board { display: flex; flex-direction: column; gap: 14px; margin: 0 0 8px; }
.wsm-r151-row h4 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #0b1b3a; }
.wsm-r151-row h4 small { font-weight: 400; color: #666; font-size: 12px; margin-left: 6px; }
.wsm-r151-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 3px; }
.wsm-r151-cell { position: relative; height: 34px; border: 1px solid rgba(0,0,0,.15); border-radius: 2px; font: 600 12px/1 Roboto, Arial, sans-serif; padding: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.wsm-r151-cell span { position: relative; z-index: 1; }
.wsm-r151-cell[data-status="casual"] span { background: #fff; padding: 1px 2px; border-radius: 2px; }
.wsm-r151-cell[disabled] { cursor: default; opacity: 1; }
.wsm-r151-cell.is-suitable { cursor: pointer; box-shadow: 0 0 0 2px #00c853 inset; }
.wsm-r151-cell.is-dim { opacity: .35; }
.wsm-r151-cell.is-selected { background: #ffd04a !important; color: #0b1b3a !important; box-shadow: 0 0 0 3px #0b1b3a; z-index: 2; }
.wsm-r151-fine { font-size: 12px; color: #666; margin: 6px 0 0; }
@media (max-width: 767px) { .wsm-r151-cells { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); } .wsm-r151-cell { height: 32px; font-size: 11px; } }
/* r151b: crossed boxes go to the end of each row (same as Blacktown r150b) */
.wsm-r151-cell[data-status="casual"] { order: 1; }
.wsm-r151-cell.is-gone { order: 2; }

/* round171 2026-11-23: stall-number text contrast (backgrounds unchanged). */
.wsm-r151-cell[data-status="permanent"],
.wsm-r151-cell[data-status="booked"],
.wsm-r151-cell[data-status="away"] {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 2px rgba(0,0,0,.85), 0 1px 0 rgba(0,0,0,.55);
}
.wsm-r151-cell[data-status="free"] {
  color: #111111;
  font-weight: 700;
}
.wsm-r151-cell[data-status="not_bookable"] {
  color: #111111;
  font-weight: 700;
}
