* {
  box-sizing: border-box;
}

html {
  background: #c8f0e1;
  min-height: 100%;
}

body.ako-pos-page {
  --ako-pos-gold: var(--ako-pos-brand);
  --ako-pos-gold-dark: var(--ako-pos-accent);
  --ako-pos-gold-soft: #ddf8ee;
  --ako-pos-ink: var(--ako-pos-accent);
  --ako-pos-muted: #496359;
  --ako-pos-line: #bee2d3;
  --ako-pos-card: #fbfffd;
  background:
    linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.08) 56%, rgba(0,0,0,.04)),
    var(--ako-pos-brand);
  color: var(--ako-pos-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.ako-pos-icon-sprite {
  display: none;
}

.ako-pos-icon {
  display: block;
  flex: 0 0 auto;
  height: 1.08em;
  width: 1.08em;
}

button .ako-pos-icon,
a .ako-pos-icon {
  pointer-events: none;
}

.ako-pos-login-page {
  align-items: center;
  display: flex;
  justify-content: center;
}

.ako-pos-login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  width: 100%;
}

.ako-pos-login-panel {
  background: var(--ako-pos-card);
  border: 1px solid rgba(199, 150, 42, .28);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(63, 43, 14, .16);
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.ako-pos-login-brand,
.ako-pos-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.ako-pos-login-brand > span,
.ako-pos-brand > span {
  align-items: center;
  background: linear-gradient(135deg, var(--ako-pos-ink), var(--ako-pos-gold));
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 8px;
  color: #fff;
  display: flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.ako-pos-login-brand h1,
.ako-pos-brand h1 {
  color: var(--ako-pos-ink);
  font-size: 22px;
  line-height: 1.15;
  margin: 0;
}

.ako-pos-login-brand p,
.ako-pos-brand p {
  color: var(--ako-pos-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.ako-pos-alert,
.ako-pos-message {
  border-radius: 8px;
  font-weight: 700;
  margin-top: 16px;
  padding: 12px;
}

.ako-pos-alert,
.ako-pos-message.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ako-pos-message.is-success {
  background: #f2fdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ako-pos-login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ako-pos-login-form label {
  display: grid;
  gap: 7px;
}

.ako-pos-login-form span {
  color: #4b3d26;
  font-size: 13px;
  font-weight: 800;
}

.ako-pos-login-form input,
.ako-pos-search input,
.ako-pos-field-grid input,
.ako-pos-panel textarea {
  background: #fffdf7;
  border: 1px solid #d9c8a5;
  border-radius: 8px;
  color: var(--ako-pos-ink);
  outline: none;
  padding: 12px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.ako-pos-login-form input:focus,
.ako-pos-search input:focus,
.ako-pos-field-grid input:focus,
.ako-pos-panel textarea:focus {
  border-color: var(--ako-pos-gold);
  box-shadow: 0 0 0 3px rgba(199, 150, 42, .2);
}

.ako-pos-login-form button,
.ako-pos-complete {
  align-items: center;
  background: linear-gradient(180deg, #d7ad45, var(--ako-pos-gold-dark));
  border: 0;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 20px rgba(138, 95, 25, .2);
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
}

.ako-pos-login-form button:hover,
.ako-pos-complete:hover {
  filter: brightness(1.02);
}

.ako-pos-shell {
  display: grid;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.ako-pos-topbar {
  align-items: center;
  background: rgba(255,250,240,.96);
  border: 1px solid rgba(199, 150, 42, .24);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(63,43,14,.08);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 18px;
}

.ako-pos-operator {
  align-items: center;
  display: flex;
  gap: 10px;
}

.ako-pos-operator > span {
  color: var(--ako-pos-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ako-pos-operator strong {
  color: var(--ako-pos-ink);
}

.ako-pos-operator a {
  align-items: center;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border: 1px solid #991b1b;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  font-weight: 900;
  justify-content: center;
  padding: 9px 12px;
  text-decoration: none;
}

.ako-pos-operator button {
  align-items: center;
  background: linear-gradient(180deg, #d7ad45, var(--ako-pos-gold-dark));
  border: 1px solid var(--ako-pos-gold-dark);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  font-weight: 900;
  justify-content: center;
  padding: 9px 12px;
}

.ako-pos-online-open {
  align-items: center;
  background: #211b13 !important;
  border-color: #211b13 !important;
  display: inline-flex;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px !important;
  white-space: nowrap;
}

.ako-pos-online-open > span:not(.ako-pos-online-count) {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
}

.ako-pos-online-count {
  align-items: center;
  background: #991b1b;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  min-width: 24px;
  padding: 0 7px;
}

.ako-pos-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 0;
}

.ako-pos-products,
.ako-pos-checkout {
  min-width: 0;
}

.ako-pos-search {
  background: rgba(255,250,240,.96);
  border: 1px solid var(--ako-pos-line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(63,43,14,.06);
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
}

.ako-pos-search small {
  color: var(--ako-pos-muted);
  font-size: 12px;
  font-weight: 700;
}

.ako-pos-products-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.ako-pos-product {
  background: #fffdf7;
  border: 1px solid var(--ako-pos-line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(63,43,14,.06);
  display: grid;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.ako-pos-product:hover {
  border-color: var(--ako-pos-gold);
  box-shadow: 0 18px 42px rgba(138,95,25,.14);
}

.ako-pos-product img {
  aspect-ratio: 1;
  background: #fff8e7;
  border: 1px solid #efe1bf;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.ako-pos-product h3 {
  color: var(--ako-pos-ink);
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  min-height: 38px;
}

.ako-pos-product-meta {
  color: var(--ako-pos-muted);
  display: grid;
  font-size: 12px;
  gap: 3px;
}

.ako-pos-product-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ako-pos-price {
  color: #2b2114;
  font-size: 17px;
  font-weight: 900;
}

.ako-pos-stock {
  background: var(--ako-pos-gold-soft);
  border-radius: 999px;
  color: #6f4c14;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.ako-pos-stock.is-low {
  background: #fff7ed;
  color: #9a3412;
}

.ako-pos-stock.is-out {
  background: #fee2e2;
  color: #991b1b;
}

.ako-pos-checkout {
  display: grid;
  gap: 14px;
  grid-auto-rows: min-content;
}

.ako-pos-panel {
  background: rgba(255,250,240,.98);
  border: 1px solid var(--ako-pos-line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(63,43,14,.06);
  padding: 14px;
}

.ako-pos-panel h2,
.ako-pos-panel-head h2 {
  color: var(--ako-pos-ink);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.ako-pos-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ako-pos-panel-head span {
  align-items: center;
  background: var(--ako-pos-gold-soft);
  border-radius: 999px;
  color: #6f4c14;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-width: 28px;
  padding: 0 9px;
}

.ako-pos-cart-items {
  display: grid;
  gap: 10px;
  max-height: 34vh;
  overflow: auto;
  padding-right: 2px;
}

.ako-pos-cart-empty,
.ako-pos-empty {
  align-items: center;
  background: #fff8e7;
  border: 1px dashed #d8c190;
  border-radius: 8px;
  color: var(--ako-pos-muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 98px;
  padding: 16px;
  text-align: center;
}

.ako-pos-cart-item {
  background: #fffdf8;
  border: 1px solid #eadfca;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.ako-pos-cart-item h3 {
  color: var(--ako-pos-ink);
  font-size: 14px;
  margin: 0;
}

.ako-pos-cart-options {
  color: var(--ako-pos-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.ako-pos-cart-main {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
}

.ako-pos-cart-main img {
  background: #fff8e7;
  border: 1px solid #eadfca;
  border-radius: 8px;
  height: 76px;
  object-fit: cover;
  width: 76px;
}

.ako-pos-cart-line {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.ako-pos-stepper {
  align-items: center;
  display: flex;
  gap: 6px;
}

.ako-pos-stepper button,
.ako-pos-remove {
  align-items: center;
  background: #fff7e2;
  border: 1px solid #d8c190;
  border-radius: 8px;
  color: #5b461d;
  display: flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  min-width: 32px;
}

.ako-pos-stepper button .ako-pos-icon,
.ako-pos-remove .ako-pos-icon {
  height: 16px;
  width: 16px;
}

.ako-pos-remove {
  background: #fff1f2;
  border-color: #fecaca;
  color: #991b1b;
}

.ako-pos-stepper span {
  font-weight: 900;
  min-width: 22px;
  text-align: center;
}

.ako-pos-cart-item-total {
  color: var(--ako-pos-ink);
  font-weight: 900;
}

.ako-pos-total-row {
  align-items: center;
  border-top: 1px solid #eadfca;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
}

.ako-pos-total-row span {
  color: var(--ako-pos-muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ako-pos-total-row strong {
  color: var(--ako-pos-ink);
  font-size: 24px;
}

.ako-pos-field-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ako-pos-segmented {
  background: #fff7e2;
  border: 1px solid #eadfca;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
  padding: 4px;
}

.ako-pos-segmented button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ako-pos-muted);
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 8px;
}

.ako-pos-segmented button.is-active {
  background: linear-gradient(180deg, #fffdf7, #fff1c2);
  box-shadow: 0 8px 18px rgba(138,95,25,.12);
  color: var(--ako-pos-ink);
}

.ako-pos-panel textarea {
  display: block;
  margin-bottom: 12px;
  resize: vertical;
}

.ako-pos-complete {
  width: 100%;
}

.ako-pos-complete:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.ako-pos-message:empty {
  display: none;
}

.ako-pos-modal[hidden] {
  display: none;
}

.ako-pos-modal {
  align-items: center;
  background: rgba(32, 23, 13, .58);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999;
}

.ako-pos-modal-card {
  background: #fffaf0;
  border: 1px solid rgba(199, 150, 42, .26);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(32,23,13,.28);
  max-width: 420px;
  padding: 24px;
  text-align: center;
  width: 100%;
}

.ako-pos-modal-icon {
  align-items: center;
  background: var(--ako-pos-gold-soft);
  border-radius: 999px;
  color: var(--ako-pos-gold-dark);
  display: flex;
  font-size: 34px;
  font-weight: 900;
  height: 70px;
  justify-content: center;
  margin: 0 auto 14px;
  width: 70px;
}

.ako-pos-modal-icon .ako-pos-icon {
  height: 38px;
  width: 38px;
}

.ako-pos-modal-card h2 {
  color: var(--ako-pos-ink);
  font-size: 24px;
  margin: 0 0 8px;
}

.ako-pos-modal-card p {
  color: var(--ako-pos-muted);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 18px;
}

.ako-pos-modal-card button:not(.ako-pos-image-zoom) {
  align-items: center;
  background: linear-gradient(180deg, #d7ad45, var(--ako-pos-gold-dark));
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  min-width: 120px;
  padding: 10px 18px;
}

.ako-pos-recent-sales {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ako-pos-date-filter {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.ako-pos-date-filter label {
  color: var(--ako-pos-muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
}

.ako-pos-date-filter input {
  background: #fffdf7;
  border: 1px solid #d9c8a5;
  border-radius: 8px;
  color: var(--ako-pos-ink);
  min-height: 38px;
  padding: 7px 9px;
  width: 100%;
}

.ako-pos-date-filter button {
  align-items: center;
  background: #fff7e2;
  border: 1px solid #d8c190;
  border-radius: 8px;
  color: #5b461d;
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  white-space: normal;
}

.ako-pos-date-filter button:first-of-type {
  background: linear-gradient(180deg, #d7ad45, var(--ako-pos-gold-dark));
  border-color: var(--ako-pos-gold-dark);
  color: #fff;
}

.ako-pos-date-filter button:last-of-type {
  background: #211b13;
  border-color: #211b13;
  color: #fff;
  grid-column: 1 / -1;
}

.ako-pos-recent-sale {
  background: #fffdf8;
  border: 1px solid #eadfca;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 12px;
}

.ako-pos-recent-sale-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.ako-pos-recent-sale-head > div {
  min-width: 0;
}

.ako-pos-recent-sale-head > strong {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.ako-pos-recent-sale strong {
  color: var(--ako-pos-ink);
  display: block;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ako-pos-recent-sale span {
  color: var(--ako-pos-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.ako-pos-recent-sale-items {
  border-top: 1px solid #eadfca;
  display: grid;
  gap: 8px;
  padding-top: 9px;
}

.ako-pos-recent-items-title {
  color: var(--ako-pos-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ako-pos-recent-item {
  align-items: flex-start;
  background: #fff8e7;
  border: 1px solid #efe1bf;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px minmax(0, 1fr);
  min-width: 0;
  padding: 8px;
}

.ako-pos-recent-item > div {
  min-width: 0;
}

.ako-pos-recent-item img {
  background: #fffdf8;
  border: 1px solid #eadfca;
  border-radius: 8px;
  height: 56px;
  object-fit: contain;
  width: 56px;
}

.ako-pos-return {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  font-weight: 900;
  justify-content: center;
  margin-top: 6px;
  min-height: 30px;
  padding: 5px 9px;
  width: auto;
}

.ako-pos-payment-edit,
.ako-pos-online-status {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  max-width: 240px;
}

.ako-pos-payment-edit span,
.ako-pos-online-status span {
  color: var(--ako-pos-muted);
  font-size: 11px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.ako-pos-payment-edit select,
.ako-pos-online-status select {
  background: #fffdf7;
  border: 1px solid #d9c8a5;
  border-radius: 8px;
  color: var(--ako-pos-ink);
  font: inherit;
  min-height: 36px;
  padding: 7px 9px;
  width: 100%;
}

.ako-pos-online-order .ako-pos-online-status {
  margin: 12px 16px 0;
  max-width: 340px;
}

.ako-pos-payment-card {
  display: grid;
  gap: 12px;
}

.ako-pos-payment-options {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.ako-pos-payment-options button,
.ako-pos-modal-secondary {
  background: #fff7e2;
  border: 1px solid #d8c190;
  border-radius: 8px;
  color: #5b461d;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 12px;
}

.ako-pos-payment-card {
  gap: 14px;
  max-width: min(740px, calc(100% - 24px));
  padding: 26px;
}

.ako-pos-payment-card h2 {
  font-size: 30px;
  margin-bottom: 8px;
  text-align: center;
}

.ako-pos-payment-options button {
  align-items: center;
  box-shadow: 0 12px 24px rgba(33,27,19,.12);
  display: flex;
  font-size: 22px;
  gap: 14px;
  justify-content: flex-start;
  min-height: 72px;
  overflow: hidden;
  padding: 14px 18px;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.ako-pos-payment-options button > span:last-child {
  flex: 1;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.ako-pos-payment-icon,
.ako-pos-action-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
}

.ako-pos-payment-icon {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-size: 22px;
  height: 42px;
  width: 42px;
}

.ako-pos-payment-icon .ako-pos-icon {
  height: 24px;
  width: 24px;
}

.ako-pos-action-icon {
  font-size: 18px;
  height: 28px;
  width: 28px;
}

.ako-pos-action-icon .ako-pos-icon {
  height: 18px;
  width: 18px;
}

.ako-pos-payment-cash {
  --ako-payment-choice: #15803d;
  background: linear-gradient(180deg, #2fce73, #15803d) !important;
  border: 1px solid #166534 !important;
}

.ako-pos-payment-card-choice {
  --ako-payment-choice: #1d4ed8;
  background: linear-gradient(180deg, #60a5fa, #1d4ed8) !important;
  border: 1px solid #1e40af !important;
}

.ako-pos-payment-transfer {
  --ako-payment-choice: #6d28d9;
  background: linear-gradient(180deg, #a78bfa, #6d28d9) !important;
  border: 1px solid #5b21b6 !important;
}

.ako-pos-payment-options button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.ako-pos-payment-options button.is-active {
  box-shadow: 0 0 0 4px rgba(255,255,255,.84), 0 0 0 7px rgba(199,150,42,.38), 0 16px 30px rgba(33,27,19,.18);
  color: #fff;
  transform: translateY(-1px);
}

.ako-pos-payment-options button.is-active .ako-pos-payment-icon {
  background: #fff;
  color: var(--ako-payment-choice);
}

.ako-pos-modal-secondary {
  background: #fffdf7;
}

.ako-pos-payment-actions {
  border-top: 1px solid #eadfca;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, .65fr);
  margin-top: 4px;
  padding-top: 14px;
}

#ako-pos-payment-confirm,
#ako-pos-payment-cancel {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 58px;
  width: 100%;
}

#ako-pos-payment-confirm {
  background: linear-gradient(180deg, #22c55e, #15803d) !important;
  border: 1px solid #166534 !important;
  box-shadow: 0 12px 24px rgba(21,128,61,.18);
  font-size: 20px;
}

#ako-pos-payment-confirm .ako-pos-action-icon {
  background: rgba(255,255,255,.22);
  color: #fff;
}

#ako-pos-payment-cancel {
  background: #fff1f2 !important;
  border: 1px solid #fca5a5 !important;
  color: #991b1b !important;
  font-size: 18px;
}

#ako-pos-payment-cancel .ako-pos-action-icon {
  background: #fee2e2;
  color: #991b1b;
}

.ako-pos-option-card {
  display: grid;
  gap: 12px;
  max-height: min(720px, 90vh);
  max-width: 520px;
  overflow: auto;
  width: calc(100% - 24px);
}

.ako-pos-option-product {
  color: var(--ako-pos-muted);
  font-weight: 800;
  margin: -4px 0 2px;
}

.ako-pos-option-fields {
  display: grid;
  gap: 12px;
}

.ako-pos-option-field {
  border: 0;
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.ako-pos-option-field > span,
.ako-pos-option-field legend {
  color: #4b3d26;
  font-size: 13px;
  font-weight: 900;
  padding: 0;
}

.ako-pos-option-field select,
.ako-pos-option-field input[type="text"],
.ako-pos-option-field input[type="date"],
.ako-pos-option-field input[type="time"],
.ako-pos-option-field input[type="datetime-local"],
.ako-pos-option-field textarea {
  background: #fffdf7;
  border: 1px solid #d9c8a5;
  border-radius: 8px;
  color: var(--ako-pos-ink);
  font: inherit;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
}

.ako-pos-option-choice {
  align-items: center;
  background: #fff8e7;
  border: 1px solid #eadfca;
  border-radius: 8px;
  display: flex;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
}

.ako-pos-option-choice input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.ako-pos-online-card {
  max-height: min(820px, 92vh);
  max-width: 1120px;
  overflow: auto;
  padding: 20px;
  text-align: left;
  width: calc(100% - 24px);
}

.ako-pos-online-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ako-pos-online-head h2 {
  margin-bottom: 4px;
}

.ako-pos-online-head p {
  margin-bottom: 0;
}

.ako-pos-online-actions {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 8px;
}

.ako-pos-online-actions .ako-pos-complete {
  min-width: 140px;
  width: auto;
}

#ako-pos-online-refresh {
  background: linear-gradient(180deg, #22c55e, #15803d) !important;
  border-color: #166534 !important;
  box-shadow: 0 10px 20px rgba(21,128,61,.18);
  color: #fff !important;
}

.ako-pos-online-more {
  align-items: center;
  background: linear-gradient(180deg, #334155, #111827) !important;
  border: 1px solid #111827 !important;
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  justify-content: center;
  justify-self: center;
  margin-top: 16px;
  min-height: 44px;
  min-width: 180px;
  padding: 10px 18px;
}

.ako-pos-online-more:disabled {
  cursor: wait;
  opacity: .72;
}

.ako-pos-online-more[hidden] {
  display: none !important;
}

.ako-pos-online-list {
  display: grid;
  gap: 16px;
}

.ako-pos-online-order {
  background: #fff;
  border: 1px solid #d8c190;
  border-left: 5px solid var(--ako-pos-gold);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(63,43,14,.08);
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.ako-pos-online-order-head {
  align-items: flex-start;
  background: #fff8e7;
  border-bottom: 1px solid #eadfca;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.ako-pos-online-order-head > div {
  min-width: 0;
}

.ako-pos-online-order-head > strong {
  background: #211b13;
  border-radius: 8px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 15px;
  padding: 8px 10px;
  text-align: right;
  white-space: nowrap;
}

.ako-pos-online-order-head strong {
  color: var(--ako-pos-ink);
  display: block;
  font-size: 14px;
}

.ako-pos-online-order-head span {
  color: var(--ako-pos-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.ako-pos-online-order-head > strong {
  color: #fff;
}

.ako-pos-online-total {
  align-items: flex-end;
  display: grid !important;
  gap: 3px;
  min-width: 96px;
}

.ako-pos-online-total span {
  color: rgba(255,255,255,.72) !important;
  font-size: 11px !important;
  font-weight: 900;
  line-height: 1;
  margin: 0 !important;
}

.ako-pos-online-total b {
  color: #fff;
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.ako-pos-online-address {
  background: #fff;
  border: 1px solid #eadfca;
  border-radius: 8px;
  color: #4b3d26 !important;
  margin-top: 8px !important;
  padding: 8px 10px;
}

.ako-pos-online-items {
  border-top: 1px solid #eadfca;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 12px 16px 16px;
  padding-top: 12px;
}

.ako-pos-online-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eadfca;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(63,43,14,.06);
  display: grid;
  gap: 14px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 10px;
}

.ako-pos-image-zoom {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  display: block;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0;
  position: relative;
  width: 150px;
}

.ako-pos-image-zoom img {
  background: #fffdf8;
  border: 1px solid #eadfca;
  border-radius: 8px;
  height: 200px;
  object-fit: contain;
  width: 150px;
}

.ako-pos-image-zoom:hover img {
  border-color: var(--ako-pos-gold);
  box-shadow: 0 12px 28px rgba(138,95,25,.18);
}

.ako-pos-zoom-icon {
  align-items: center;
  background: rgba(33,27,19,.78);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  bottom: 8px;
  color: #fff;
  display: flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 8px;
  width: 34px;
}

.ako-pos-zoom-icon .ako-pos-icon {
  height: 17px;
  width: 17px;
}

.ako-pos-online-item strong {
  color: var(--ako-pos-ink);
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.ako-pos-online-item span {
  color: var(--ako-pos-muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.ako-pos-image-card {
  max-width: min(720px, calc(100% - 24px));
  text-align: left;
}

.ako-pos-image-card img {
  background: #fff8e7;
  border: 1px solid #eadfca;
  border-radius: 8px;
  display: block;
  margin-top: 14px;
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

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

  .ako-pos-checkout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ako-pos-cart-panel {
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  .ako-pos-shell {
    padding: 10px;
  }

  .ako-pos-topbar,
  .ako-pos-operator {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ako-pos-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ako-pos-product h3 {
    font-size: 13px;
    min-height: 34px;
  }

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

  .ako-pos-date-filter {
    grid-template-columns: 1fr;
  }

  .ako-pos-payment-card {
    padding: 18px;
  }

  .ako-pos-payment-card h2 {
    font-size: 24px;
  }

  .ako-pos-payment-options button {
    font-size: 18px;
    min-height: 64px;
    padding: 12px 14px;
  }

  .ako-pos-payment-icon {
    font-size: 19px;
    height: 36px;
    width: 36px;
  }

  .ako-pos-payment-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .ako-pos-products-grid {
    grid-template-columns: 1fr;
  }

  .ako-pos-online-item {
    grid-template-columns: 1fr;
  }
}

/* Mint and black terminal theme. The two custom properties are set in the POS settings. */
.ako-pos-login-panel,
.ako-pos-topbar,
.ako-pos-search,
.ako-pos-panel,
.ako-pos-modal-card {
  background: rgba(251, 255, 253, .96);
  border-color: rgba(9, 84, 65, .18);
  box-shadow: 0 18px 45px rgba(10, 50, 40, .12);
}

.ako-pos-login-form input,
.ako-pos-search input,
.ako-pos-field-grid input,
.ako-pos-panel textarea,
.ako-pos-date-filter input,
.ako-pos-payment-edit select,
.ako-pos-online-status select {
  background: #fff;
  border-color: #b9dfd0;
}

.ako-pos-login-form input:focus,
.ako-pos-search input:focus,
.ako-pos-field-grid input:focus,
.ako-pos-panel textarea:focus,
.ako-pos-date-filter input:focus,
.ako-pos-payment-edit select:focus,
.ako-pos-online-status select:focus {
  border-color: var(--ako-pos-brand);
  box-shadow: 0 0 0 3px rgba(96, 205, 166, .28);
}

.ako-pos-login-form button,
.ako-pos-complete,
.ako-pos-date-filter button:first-of-type,
.ako-pos-modal-card button:not(.ako-pos-image-zoom),
.ako-pos-operator button,
.ako-pos-online-open,
.ako-pos-date-filter button:last-of-type {
  background: var(--ako-pos-accent) !important;
  border: 1px solid var(--ako-pos-accent) !important;
  box-shadow: 0 10px 22px rgba(10, 35, 28, .18);
  color: #fff !important;
}

.ako-pos-login-form button:hover,
.ako-pos-complete:hover,
.ako-pos-operator button:hover,
.ako-pos-date-filter button:hover,
.ako-pos-modal-card button:not(.ako-pos-image-zoom):hover {
  filter: brightness(1.14);
}

.ako-pos-login-brand > span,
.ako-pos-brand > span {
  background: var(--ako-pos-accent);
  border-color: rgba(255,255,255,.6);
}

.ako-pos-product,
.ako-pos-cart-item,
.ako-pos-recent-sale,
.ako-pos-online-order,
.ako-pos-online-item,
.ako-pos-recent-item,
.ako-pos-option-field,
.ako-pos-image-card img,
.ako-pos-cart-main img,
.ako-pos-image-zoom img {
  background: #fff;
  border-color: #c6e5d9;
}

.ako-pos-product:hover,
.ako-pos-image-zoom:hover img {
  border-color: var(--ako-pos-brand);
  box-shadow: 0 14px 30px rgba(18, 111, 86, .16);
}

.ako-pos-product img,
.ako-pos-cart-empty,
.ako-pos-empty,
.ako-pos-recent-item,
.ako-pos-online-order-head {
  background: #ecfbf5;
  border-color: #c3e6d8;
}

.ako-pos-stock,
.ako-pos-panel-head span,
.ako-pos-modal-icon {
  background: var(--ako-pos-brand);
  color: var(--ako-pos-accent);
}

.ako-pos-stepper button,
.ako-pos-date-filter button,
.ako-pos-modal-secondary {
  background: #f3fffa !important;
  border-color: #a9d8c8 !important;
  color: #174b3d !important;
}

.ako-pos-stepper button:hover,
.ako-pos-date-filter button:not(:first-of-type):hover,
.ako-pos-modal-secondary:hover {
  background: #dcf7ec !important;
}

.ako-pos-payment-cash {
  background: linear-gradient(180deg, #38b98f, #15735c) !important;
  border-color: #12634e !important;
}

.ako-pos-payment-card-choice {
  background: linear-gradient(180deg, #1f2c29, #080d0c) !important;
  border-color: #080d0c !important;
}

.ako-pos-payment-transfer {
  background: linear-gradient(180deg, #79dcc0, #18735c) !important;
  border-color: #12634e !important;
}

#ako-pos-payment-confirm {
  background: #16725b !important;
  border-color: #12634e !important;
}

#ako-pos-payment-cancel,
.ako-pos-operator a {
  background: #fff1f2 !important;
  border-color: #f3b6be !important;
  color: #a2182d !important;
}

.ako-pos-operator a .ako-pos-icon {
  color: #a2182d;
}

.ako-pos-online-order-head > strong {
  background: var(--ako-pos-accent);
}

.ako-pos-cart-toast[hidden] {
  display: none;
}

.ako-pos-cart-toast {
  align-items: center;
  background: #fbfffd;
  border: 1px solid #9cd8c3;
  border-left: 5px solid #168064;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(6, 43, 33, .2);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px 52px minmax(0, 1fr) 28px;
  max-width: min(410px, calc(100vw - 28px));
  padding: 10px;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 10000;
}

.ako-pos-cart-toast-icon {
  color: #168064;
}

.ako-pos-cart-toast img {
  background: #ecfbf5;
  border: 1px solid #c6e5d9;
  border-radius: 7px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.ako-pos-cart-toast strong,
.ako-pos-cart-toast span {
  display: block;
  overflow-wrap: anywhere;
}

.ako-pos-cart-toast strong {
  color: var(--ako-pos-accent);
  font-size: 13px;
}

.ako-pos-cart-toast div span {
  color: var(--ako-pos-muted);
  font-size: 12px;
  margin-top: 3px;
}

.ako-pos-cart-toast button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #547067;
  display: flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.ako-pos-remove-card {
  max-width: 470px;
  text-align: left;
}

.ako-pos-remove-head {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.ako-pos-remove-head h2 {
  font-size: 21px;
  margin: 0 0 4px;
}

.ako-pos-remove-head p {
  margin: 0;
}

.ako-pos-remove-icon {
  align-items: center;
  background: #fff0f1;
  border: 1px solid #f5bec5;
  border-radius: 8px;
  color: #aa1e34;
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.ako-pos-remove-product {
  align-items: center;
  background: #f2fcf7;
  border: 1px solid #cbe8dc;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(0, 1fr);
  margin: 18px 0;
  padding: 10px;
}

.ako-pos-remove-product img {
  background: #fff;
  border: 1px solid #c6e5d9;
  border-radius: 7px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.ako-pos-remove-product strong {
  color: var(--ako-pos-accent);
  overflow-wrap: anywhere;
}

.ako-pos-remove-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ako-pos-modal-card .ako-pos-remove-confirm {
  background: #b42335 !important;
  border-color: #951c2b !important;
  color: #fff !important;
}

@media (max-width: 520px) {
  .ako-pos-cart-toast {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .ako-pos-remove-actions {
    grid-template-columns: 1fr;
  }
}
