/* Shared FO/BO seat presentation. Geometry stays in bus_template. */
.hu-seat-choice .hu-seat-choice__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin: 0 0 16px; padding: 0; list-style: none; }
.hu-seat-choice__legend li { display: flex; align-items: center; gap: 7px; color: var(--hu-text-body); font-size: 13px; }
.hu-seat-choice .hu-seat-choice__plan { width: 100%; padding: 16px 12px; overflow-x: auto; background: var(--hu-card); border: 1px solid var(--hu-border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.hu-seat-choice .carContainer { width: max-content; min-width: 100%; }
.hu-seat-choice .seatContainer { width: auto; margin: 0 auto; border-collapse: separate; border-spacing: 4px; color: var(--hu-text-body); }
.hu-seat-choice .seatContainer td { padding: 0; vertical-align: middle; }
.hu-seat-choice .seatContainer h4, .hu-seat-choice .carContainer > h4 { text-align: center; }
.hu-seat-choice .seat { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-width: 34px; margin: 0; padding: 0; border: 1px solid #c7c9cf; border-radius: 50%; background: #fff; color: #202127; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; appearance: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.hu-seat-choice .seat:before { content: none; }
.hu-seat-choice .seat:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hu-seat-choice .seat.busySeat { background: #ec3645; border-color: #ec3645; color: #fff; cursor: default; }
.hu-seat-choice .seat.activeSeat { background: #42685b; border: 2px solid #b9ddcf; color: #fff; box-shadow: 0 0 0 3px #42685b; }
.hu-seat-choice .seatContainer .frontCar { padding: 8px 10px !important; background: var(--hu-hover); border-radius: 10px; color: var(--hu-text-body); text-align: center; font-size: 12px; line-height: 1.4; min-width: 48px; }
.hu-seat-choice__participants { padding-top: 12px; }
.hu-seat-choice__participants ul { margin: 0; padding-left: 20px; }
.hu-seat-key { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid #c7c9cf; border-radius: 50%; background-color: #fff; }
.hu-seat-key--busy { border-color: #ec3645; background-color: #ec3645; }
.hu-seat-key--selected { background: #42685b; border: 2px solid #b9ddcf; box-shadow: 0 0 0 2px #42685b; }
@media (hover: hover) { .hu-seat-choice .seat:not(.busySeat):not(.activeSeat):hover { background: #e6efeb; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.25); } }
@media (max-width: 767px) { .hu-seat-choice .hu-seat-choice__plan { padding: 12px 6px; } .hu-seat-choice .hu-seat-choice__legend { gap: 10px 16px; } }
@media (prefers-reduced-motion: reduce) { .hu-seat-choice .seat { transition: none; } }

/* Match the template details previously inherited from the FO theme. */
.hu-seat-choice .seatContainer td { text-align: center; }
.hu-seat-choice .seatContainer thead th { padding-bottom: 10px; text-align: center; }
.hu-seat-choice .seatContainer tbody th { padding-right: 10px; }
.hu-seat-choice .emptySeat { width: 25px; display: inherit; }
.hu-seat-choice .seatContainer tr td img { height: 30px !important; }

/* Admin presentation only; keep the WordPress palette outside the plan. */
.hu-event-participants .car-container { width: 640px; max-width: calc(100% - 10px); box-sizing: border-box; }
.hu-seat-choice--admin {
    --hu-card: #1C272B;
    --hu-hover: #253238;
    --hu-border: #34464D;
    --hu-text-body: #C3CECE;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    margin-top: 16px;
}
.hu-seat-choice--admin,
.hu-seat-choice--admin * { box-sizing: border-box; }
.hu-seat-choice--admin .hu-seat-choice__legend { padding: 12px; background: var(--hu-card); border-radius: 12px; }
.hu-seat-choice--admin .carContainer { color: #F3F6F5; }
.hu-seat-choice--admin .seatContainer th,
.hu-seat-choice--admin .seatContainer td { font-weight: 400; }
.hu-seat-choice--admin .seatContainer b { font-weight: 700; }
.hu-seat-choice--admin .seatContainer h4,
.hu-seat-choice--admin .carContainer > h4 { margin: 10px 0; font-size: 18px; font-weight: 300; text-transform: uppercase; }
.hu-seat-choice--admin .seat.busySeat.lockedSeat,
.hu-seat-choice--admin .hu-seat-key--locked { border: 2px dashed #fff; background-color: #ec3645; color: #fff; }

@media print {
    .hu-event-participants .car-container { width: 100%; margin-left: 0; }
    .hu-seat-choice--admin .hu-seat-choice__plan { overflow: visible; background: #fff; }
    .hu-seat-choice--admin .seatContainer,
    .hu-seat-choice--admin .carContainer > h4 { color: #202127; }
    .hu-seat-choice--admin .seatContainer td { border-bottom: 0; }
    .hu-seat-choice--admin .hu-seat-choice__legend { display: none; }
    .hu-seat-choice--admin .seat { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
