#casheer-preview {
  --paper: light-dark(#ffffff, #1d2528);
  --bg: light-dark(#f3f5f4, #141b1d);
  --ink: light-dark(#203733, #edf4f1);
  --sub: light-dark(#657772, #adbfba);
  --line: light-dark(#dfe7e3, #354641);
  --tint: light-dark(#e9f3ed, #233e34);
  font:
    14px/1.5 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
#casheer-preview * {
  box-sizing: border-box;
}
#casheer-preview button,
#casheer-preview select {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
#casheer-preview button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 14px;
}
#casheer-preview button:hover {
  background: var(--tint);
}
#casheer-preview button:disabled {
  opacity: 0.45;
  cursor: default;
}
#casheer-preview header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-inline-end: 92px;
}
#casheer-preview .brand {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-inline-end: auto;
}
#casheer-preview .brand span {
  color: #43856b;
}
#casheer-preview small {
  display: block;
  color: var(--sub);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
#casheer-preview select {
  max-width: 165px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 8px;
}
#casheer-preview nav {
  display: flex;
  gap: 6px;
  padding: 16px 24px;
}
#casheer-preview nav button {
  background: transparent;
  border-color: transparent;
}
#casheer-preview nav .active {
  background: var(--ink);
  color: var(--paper);
}
#casheer-preview main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 16px;
  padding: 0 24px 24px;
  align-items: stretch;
  direction: ltr;
}
#casheer-preview section {
  min-width: 0;
}
#casheer-preview h2 {
  font-size: 16px;
  margin: 0 0 16px;
  font-weight: 650;
}
#casheer-preview .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#casheer-preview .product {
  padding: 14px 7px;
  min-height: 114px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
}
#casheer-preview .emoji {
  font-size: 26px;
}
#casheer-preview .price {
  color: var(--sub);
  font-size: 12px;
}
#casheer-preview .badge {
  position: absolute;
  top: 5px;
  inset-inline-end: 6px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 0 6px;
  font-size: 11px;
}
#casheer-preview .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
#casheer-preview .cash {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
#casheer-preview .cash strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#casheer-preview .keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  direction: ltr;
}
#casheer-preview main > .panel > h2 {
  min-height: 48px;
}
#casheer-preview .keys button {
  font-size: 22px;
  min-height: 57px;
  padding: 6px;
}
#casheer-preview .exact {
  width: 100%;
  margin-top: 10px;
}
#casheer-preview .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
#casheer-preview .cartitem {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
#casheer-preview .cartitem .row {
  margin: 6px 0;
}
#casheer-preview .qty {
  display: flex;
  align-items: center;
  gap: 12px;
}
#casheer-preview .qty button {
  padding: 0;
  width: 36px;
  min-height: 36px;
}
#casheer-preview .total {
  font-size: 25px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin: 22px 0;
}
#casheer-preview .change {
  padding: 16px;
  border-radius: 12px;
  background: var(--tint);
  margin-bottom: 16px;
}
#casheer-preview .change strong {
  font-size: 24px;
  display: block;
  overflow-wrap: anywhere;
}
#casheer-preview .pay {
  background: #26684e;
  color: #fff;
  width: 100%;
  border-color: #26684e;
  font-weight: 600;
}
#casheer-preview .pay:hover {
  background: #20583f;
}
#casheer-preview .empty {
  padding: 30px 0;
  color: var(--sub);
  text-align: center;
}
#casheer-preview .foot {
  padding: 0 24px 18px;
  color: var(--sub);
  font-size: 12px;
}
#casheer-preview .history {
  padding: 0 24px 24px;
}
#casheer-preview .receipt {
  background: var(--paper);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
#casheer-preview .receipt strong {
  font-size: 19px;
}
#casheer-preview.phone {
  max-width: 390px;
  margin: auto;
}
#casheer-preview.phone main {
  display: flex;
  flex-direction: column;
}
#casheer-preview.phone main section {
  width: 100%;
}
#casheer-preview.phone .cartpanel {
  order: 1;
}
#casheer-preview.phone .payment {
  order: 2;
}
#casheer-preview.phone header {
  padding: 18px;
}
#casheer-preview.phone .products {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  #casheer-preview main {
    display: flex;
    flex-direction: column;
    padding: 0 16px 16px;
  }
  #casheer-preview main section {
    width: 100%;
  }
  #casheer-preview .cartpanel {
    order: 1;
  }
  #casheer-preview .payment {
    order: 2;
  }
  #casheer-preview header {
    padding: 16px;
  }
  #casheer-preview .product {
    min-height: 94px;
  }
}
#casheer-preview header {
  direction: ltr;
}
#casheer-preview .seller-picker {
  display: grid;
  gap: 2px;
}
#casheer-preview .settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 24px;
}
#casheer-preview .setting-field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
#casheer-preview .setting-field select {
  width: 100%;
  max-width: none;
}
#casheer-preview input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 16px system-ui;
  padding: 10px;
}
#casheer-preview .user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#casheer-preview .user-row span {
  min-width: 0;
}
#casheer-preview.phone .settings-layout {
  grid-template-columns: 1fr;
}
#casheer-preview #cp-user-error {
  margin-top: 8px;
}
@media (max-width: 700px) {
  #casheer-preview .settings-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }
}
#casheer-preview .product-settings {
  grid-column: 1/-1;
}
#casheer-preview .product-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
#casheer-preview fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#casheer-preview .product-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
#casheer-preview .product-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#casheer-preview .editor-heading {
  margin-top: 24px;
}
#casheer-preview #cp-icon-preview {
  margin-bottom: 12px;
}
#casheer-preview .hookah {
  display: inline-block;
  width: 38px;
  height: 42px;
  position: relative;
  vertical-align: middle;
  flex-shrink: 0;
}
#casheer-preview .hookah .bowl {
  position: absolute;
  top: 0;
  left: 10px;
  width: 14px;
  height: 7px;
  background: #ba7648;
  border-radius: 2px 2px 6px 6px;
}
#casheer-preview .hookah .stem {
  position: absolute;
  top: 6px;
  left: 15px;
  width: 4px;
  height: 22px;
  background: #b99652;
}
#casheer-preview .hookah .stem:after {
  content: "";
  position: absolute;
  top: 4px;
  left: -8px;
  width: 20px;
  height: 3px;
  background: #b99652;
  border-radius: 50%;
}
#casheer-preview .hookah .vase {
  position: absolute;
  bottom: 0;
  left: 7px;
  width: 20px;
  height: 19px;
  background: #53a8ae;
  border: 2px solid #31787e;
  border-radius: 6px 6px 10px 10px;
}
#casheer-preview .hookah .hose {
  position: absolute;
  top: 13px;
  left: 18px;
  width: 20px;
  height: 22px;
  border: 3px solid #9b7544;
  border-left-color: transparent;
  border-radius: 0 12px 12px 0;
}
#casheer-preview.phone .product-fields {
  grid-template-columns: 1fr;
}
@media (max-width: 600px) {
  #casheer-preview .product-fields {
    grid-template-columns: 1fr;
  }
  #casheer-preview .product-settings .user-row {
    flex-wrap: wrap;
  }
}
#casheer-preview .sales-view {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}
#casheer-preview .sales-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#casheer-preview .sales-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#casheer-preview .sales-metrics strong {
  font-size: 24px;
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
}
#casheer-preview .sales-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#casheer-preview .sales-view .row {
  flex-wrap: wrap;
}
#casheer-preview.phone .sales-metrics,
#casheer-preview.phone .sales-columns {
  grid-template-columns: 1fr;
}
@media (max-width: 700px) {
  #casheer-preview .sales-metrics,
  #casheer-preview .sales-columns {
    grid-template-columns: 1fr;
  }
  #casheer-preview .sales-view {
    padding: 0 16px 16px;
  }
}
#casheer-preview .record-columns {
  direction: ltr;
  align-items: start;
}
#casheer-preview .record-entry {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#casheer-preview .record-entry summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}
#casheer-preview .record-entry summary:before {
  content: "▸";
}
#casheer-preview .record-entry[open] summary:before {
  content: "▾";
}
#casheer-preview .record-entry .change {
  margin-bottom: 0;
}
#casheer-preview .record-entry .row {
  align-items: start;
}
#casheer-preview .record-entry small {
  margin: 4px 0;
}
