/* * (C) (C) (C) (C) (C) (R) S S S S S (R) S S S S S (R) S S S S S (R) S S S S S ... */ #seat-chooser { display: flex; flex-direction: column; align-items: center; justify-content: center; --seat-width: 2.5rem; --seat-height: var(--seat-width); --seat-gap: 0.5rem; --seat-border-size: 0.1rem; --seat-border-radius: 0.5rem; } #seat-chooser .row { display: flex; flex-direction: row; align-items: center; justify-content: center; width: 100%; height: 100%; } #seat-chooser .row .seat { display: flex; align-items: center; justify-content: center; width: var(--seat-width); height: var(--seat-height); margin: var(--seat-gap); border: var(--seat-border-size) solid var(--primary-color); border-radius: var(--seat-border-radius); background-color: var(--second-bg); cursor: pointer; } #seat-chooser .row .seat.linked-left { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; } #seat-chooser .row .seat.linked-right { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 0; } #seat-chooser .row .seat.loveseat { background-color: #ff3fe5; } #seat-chooser .row .no-seat { /* this seat DOES NOT EXISTS it's a filler for layout*/ border: none; background-color: transparent; cursor: default; width: var(--seat-width); height: var(--seat-height); margin: calc(var(--seat-border-size) + var(--seat-gap)); } #seat-chooser .row .seat.selected { border: calc(var(--seat-gap) - 0.1rem) solid var(--primary-color); margin: 0.1rem; filter: brightness(1.2); } #seat-chooser .row .seat.reserved { background-color: var(--highlight-bg); cursor: not-allowed; } #seat-chooser .row .seat.disabled { background-color: var(--default-bg); cursor: not-allowed; } #seat-chooser .row .seat.wheelchair { background-color: #3498db; } #seat-chooser .row .seat:hover { filter: brightness(0.8); } #seat-chooser #seat-chooser-status { text-align: center; margin: 1rem; }