﻿.block-editor .card-header > :nth-child(1),
.block-editor .card-header > :nth-child(3) {
  width: 1.8rem;
}
.block-editor .card-header > :nth-child(2) {
  flex: 1;
  text-align: center;
}
.block-editor .card-header > :nth-child(2) button {
  width: 100%;
  height: 100%;
}
.block-editor .card-footer {
  text-align: center;
}
.block-editor .card-footer button {
  max-width: 100%;
}

.list-group-horizontal.list-group-flush > .list-group-item {
  border-width: 0 var(--bs-list-group-border-width) 0;
}
.list-group-horizontal.list-group-flush > .list-group-item + .list-group-item {
  border-top-width: 0;
}
.list-group-horizontal.list-group-flush > .list-group-item:last-child {
  border-right-width: 0;
}

.brand-section img {
  width: 100%;
  height: auto;
}
.brand-section .brand-selected-True {
  background: #27A3D8;
}
.brand-section .brand-selected-False {
  background: silver;
}

.company-preview {
  background: #27A3D8;
  font-weight: bold;
  color: white;
  font-size: 2em;
}

.featured-items > div {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  width: 250px;
}
.featured-items img {
  max-height: 100%;
  max-width: 100%;
}

.basket {
  --bs-list-group-item-padding-x: .3rem;
  --bs-list-group-item-padding-y: .3rem;
  width: 100%;
  max-width: 500px;
}
.basket .slot-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.basket .slot-container > * {
  grid-column: 1/span 2;
}
.basket .slot-container > *.slot-half-width:nth-of-type(odd) {
  grid-column: 1;
}
.basket .slot-container > *.slot-half-width:nth-of-type(even) {
  grid-column: 2;
}

.shelf .slot-container {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  align-items: stretch;
}
.shelf .slot-container .slot {
  grid-row: 1/span 2;
}
.shelf .slot-container .slot > .card {
  height: 100%;
}
.shelf .slot-container .slot.slot-half-width:nth-of-type(odd) {
  grid-row: 1;
}
.shelf .slot-container .slot.slot-half-width:nth-of-type(even) {
  grid-row: 2;
}

.slot {
  border-color: var(--bs-primary);
  border-width: 2px;
}
.slot .card-header, .slot .card-footer {
  --bs-card-cap-padding-y: .1rem;
  --bs-card-cap-padding-x: .1rem;
}
.slot .card-body {
  --bs-card-spacer-y: .2rem;
  --bs-card-spacer-x: .2rem;
}

.entry-item {
  width: 100%;
}
.entry-item > div {
  aspect-ratio: 1/1;
  max-width: 200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-item > div img {
  max-width: 100%;
  max-height: 100%;
}
.entry-item > div img.right90 {
  transform: rotate(90deg);
}
.entry-item > div img.left90 {
  transform: rotate(-90deg);
}

.barcode {
  font-size: 400%;
  line-height: 1;
  width: 100%;
  text-align: center;
}

.slot-lines-1.horizontal {
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.slot-lines-1.horizontal .entry-item > div {
  width: 100%;
  margin: auto;
}
.slot-lines-1.vertical {
  grid-template-columns: repeat(1, 1fr);
}

.slot-lines-2.horizontal {
  grid-template-rows: repeat(2, 0.5fr);
  grid-auto-flow: column;
  grid-auto-columns: 0.5fr;
}
.slot-lines-2.horizontal .entry-item > div {
  width: 50%;
  margin: auto;
}
.slot-lines-2.vertical {
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 1/1;
}

.span-badge {
  position: absolute;
  z-index: 10;
  bottom: -0.6em;
  left: 50%;
  transform: translateX(-50%);
}

.item-option .image-area {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.menu-entry-img {
  height: 2em;
  width: auto;
}
.menu-entry-img.right90 {
  transform: rotate(90deg);
  width: 2em;
  height: auto;
}
.menu-entry-img.left90 {
  transform: rotate(-90deg);
  width: 2em;
  height: auto;
}
