.pos-shell {
  min-height: calc(100vh - 92px);
  background: #222;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.pos-top {
  display: none;
}

.pos-touch-layout {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr) 460px;
  gap: 10px;
  background: #2d2d2d;
  padding: 0;
}

.pos-category-rail {
  background: #2b2b2b;
  border-right: 1px solid #4a4a4a;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 8px;
  color: #fff;
}

.pos-category-rail > strong {
  font-size: 18px;
  padding: 6px 8px 0;
}

.pos-side-action,
.pos-category-btn {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-weight: 900;
  line-height: 1.05;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16);
}

.pos-side-action {
  background: #16a34a;
  font-size: 17px;
}

.pos-side-action.is-hot {
  background: #e02b24;
  border: 3px solid #ffd400;
  font-size: 20px;
}

.pos-side-action.is-discount {
  background: #0d8ec3;
}

.pos-category-btn {
  min-height: 45px;
  font-size: 16px;
}

.pos-category-btn.is-active {
  outline: 3px solid #ffd400;
}

.pos-category-btn small {
  font-size: 11px;
}

.pos-touch-products {
  background: #efedc8;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px;
}

.pos-search {
  grid-template-columns: minmax(0, 1fr) 140px;
  margin-bottom: 8px;
}

.pos-search input {
  font-size: 18px;
  border-radius: 7px;
}

.pos-category-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: #111;
}

.pos-category-title strong {
  font-size: 18px;
}

.pos-category-title span {
  color: #444;
  font-weight: 700;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 8px;
  align-content: stretch;
}

.pos-touch-product {
  min-height: 154px;
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  padding: 14px;
  color: #fff;
  text-align: left;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 7px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.pos-touch-product strong {
  font-size: clamp(15px, 1.15vw, 20px);
  line-height: 1.08;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pos-touch-product span,
.pos-touch-product small {
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
}

.pos-touch-product em {
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  font-style: normal;
}

.pos-touch-cart {
  background: #2f2f2f;
  border: 0;
  border-left: 1px solid #555;
  border-radius: 0;
  color: #fff;
  box-shadow: none;
  min-height: calc(100vh - 92px);
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
}

.pos-touch-cart .section-head h2 {
  color: #fff;
  margin: 0;
}

.pos-cart-rows {
  min-height: 300px;
  align-content: start;
}

.pos-cart-row {
  background: #101010;
  border: 1px solid #4a4a4a;
  border-left: 5px solid #1eb7e8;
  color: #fff;
}

.pos-cart-row small {
  color: #cfcfcf;
}

.pos-qty button {
  min-width: 38px;
  min-height: 38px;
  background: #444;
  color: #fff;
  border-radius: 5px;
}

.pos-total {
  background: #0d8ec3;
  margin: 0 -14px;
  padding: 12px 14px;
  border: 0;
  display: grid;
  gap: 2px;
}

.pos-total span,
.pos-total strong,
.pos-total small {
  color: #fff;
}

.pos-total strong {
  font-size: 30px;
}

.pos-total small {
  min-height: 16px;
  font-weight: 800;
}

.pos-manual {
  display: grid;
  gap: 8px;
}

.pos-manual-display {
  background: #171717;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pos-manual-display span {
  color: #d6d6d6;
  font-weight: 800;
}

.pos-manual-display strong {
  color: #fff;
  font-size: 24px;
}

.pos-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pos-keypad button {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid #555;
  background: #f7f3ed;
  color: #171717;
  font-size: 18px;
  font-weight: 1000;
}

.pos-keypad .wide {
  grid-column: 1 / -1;
  background: #118477;
  border-color: #118477;
  color: #fff;
}

.pos-cart-row-manual {
  border-left-color: #ffd400;
}

.pos-discount-box {
  display: none;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
  margin-bottom: 8px;
}

.pos-discount-box.is-open {
  display: grid;
}

.pos-discount-box input,
.pos-discount-box select {
  min-height: 42px;
  font-size: 18px;
  font-weight: 900;
}

.pos-touch-cart label {
  color: #e8e8e8;
}

.pos-touch-cart select {
  background: #f8fafc;
}

.pos-touch-cart .primary {
  background: #df2a22;
  font-size: 18px;
}

.pos-empty {
  background: #2a2a2a;
  color: #cfcfcf;
  border-color: #555;
}

.pos-shell:fullscreen {
  border-radius: 0;
  padding: 0;
}

.pos-shell:fullscreen .pos-touch-layout,
.pos-shell:fullscreen .pos-touch-cart {
  min-height: 100vh;
}

@media (min-width: 1280px) {
  .pos-touch-product {
    min-height: 168px;
  }
}

@media (max-width: 1100px) {
  .pos-touch-layout {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .pos-touch-cart {
    grid-column: 1 / -1;
    min-height: auto;
    position: static;
  }
}

@media (max-width: 720px) {
  .pos-touch-layout {
    grid-template-columns: 1fr;
  }

  .pos-category-rail {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #4a4a4a;
  }

  .pos-category-rail > strong {
    display: none;
  }

  .pos-side-action,
  .pos-category-btn {
    min-width: 116px;
  }

  .pos-product-grid {
    grid-template-columns: 1fr;
  }

  .pos-touch-product {
    min-height: 128px;
  }
}
