/* point-of-sale.css · Point of Sale
   Execution point-of-sale-20260907-011220-ac5d00 · Storyboard STB-POS-AC5D00-r7.
   Page-scoped layout, confirmed sequencer geometry and native-DOM Admin anchors. */

.pmm-point-of-sale .pos-hero h1 {
  max-width: 720px;
}

.pmm-point-of-sale .pos-hero h3 {
  max-width: 620px;
}

.pmm-point-of-sale .pos-hero img.object-cover {
  object-position: center center;
}

.pmm-point-of-sale .pos-feature {
  position: relative;
  overflow: visible;
}

.pmm-point-of-sale .pos-feature > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(560px, 3fr);
  align-items: center;
  width: 100%;
}

.pmm-point-of-sale .pos-feature > div > div:first-child h2 {
  max-width: 31rem;
}

.pmm-point-of-sale .pos-feature > div > div:first-child h3 {
  max-width: 33rem;
}

.pmm-point-of-sale .pos-feature > div > div:last-child {
  min-width: 0;
}

.pmm-point-of-sale .pos-feature--reverse > div > div:first-child {
  grid-column: 2;
  grid-row: 1;
}

.pmm-point-of-sale .pos-feature--reverse > div {
  grid-template-columns: minmax(560px, 3fr) minmax(0, 2fr);
}

.pmm-point-of-sale .pos-feature--reverse > div > div:last-child {
  grid-column: 1;
  grid-row: 1;
}

/* Composite kit · KIT-v1 compact UI ladder. */
.pmm-point-of-sale .pmm-ui {
  --cui-title: 16px;
  --cui-primary: 15px;
  --cui-support: 13px;
  --cui-aux: 12px;
  --ui-ink: #0f172a;
  --ui-ink2: #475569;
  --ui-ink3: #94a3b8;
  --ui-line: #e2e8f0;
  --ui-line2: #eef2f6;
  --ui-brand: #1f5fe0;
  --ui-ctl: #d3d9e1;
  --ui-card: #fff;
  --ui-avatar: #e2e8f0;
  --ui-avatar-ink: #334155;
  --ui-soft: #f4f6f8;
}

.pmm-point-of-sale .pmm-ui .cmp {
  position: relative;
  width: 100%;
  overflow: visible;
  color: var(--ui-ink);
}

.pmm-point-of-sale .pmm-ui .cmp-canvas {
  position: relative;
  width: 100%;
  overflow: visible;
  clip-path: none;
  aspect-ratio: 3 / 2;
}

.pmm-point-of-sale .pmm-ui .cmp-field {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
}

.pmm-point-of-sale .pmm-ui .cmp-field-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pmm-point-of-sale .pmm-ui .cmp-anchor {
  position: absolute;
  /* Let the proof determine the height; percentage heights clipped live content. */
  height: auto;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: 16px;
  color: var(--ui-ink);
  background: var(--ui-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 28px 64px -12px rgba(15, 23, 42, .22);
  font-size: var(--cui-primary);
  line-height: 1.35;
  transform: none;
}

.pmm-point-of-sale .pmm-ui .ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .ui-title {
  display: block;
  font-size: var(--cui-title);
  font-weight: 700;
  letter-spacing: -.01em;
}

.pmm-point-of-sale .pmm-ui .ui-sub {
  display: block;
  color: var(--ui-ink2);
  font-size: var(--cui-support);
}

.pmm-point-of-sale .pmm-ui .ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pmm-point-of-sale .pmm-ui .ui-grow {
  flex: 1;
  min-width: 0;
}

.pmm-point-of-sale .pmm-ui .ui-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 20px;
}

.pmm-point-of-sale .pmm-ui .ui-body-soft {
  border-top: 1px solid var(--ui-line2);
  background: var(--ui-soft);
}

.pmm-point-of-sale .pmm-ui .ui-customer-search {
  padding: 14px 18px 0;
}

.pmm-point-of-sale .pmm-ui .ui-avatar {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ui-avatar-ink);
  background: var(--ui-avatar);
  font-size: var(--cui-aux);
  font-weight: 700;
}

.pmm-point-of-sale .pmm-ui .ui-avatar--photo {
  object-fit: cover;
  object-position: center 28%;
}

.pmm-point-of-sale .pmm-ui .ui-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--ui-line2);
}

.pmm-point-of-sale .pmm-ui .ui-line.is-last,
.pmm-point-of-sale .pmm-ui .ui-prow.is-last {
  padding-bottom: 20px;
  border-bottom: 0;
}

.pmm-point-of-sale .pmm-ui .ui-nm {
  display: block;
  font-size: var(--cui-primary);
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .ui-pv {
  display: block;
  margin-top: 1px;
  color: var(--ui-ink2);
  font-size: var(--cui-support);
}

.pmm-point-of-sale .pmm-ui .ui-val {
  font-size: var(--cui-primary);
  font-weight: 700;
  white-space: nowrap;
}

.pmm-point-of-sale .pmm-ui .ui-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ui-ink2);
  background: var(--ui-soft);
  font-size: var(--cui-aux);
  font-weight: 600;
  white-space: nowrap;
}

.pmm-point-of-sale .pmm-ui .ui-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.pmm-point-of-sale .pmm-ui .ui-btn-pri {
  color: #fff;
  background: var(--ui-brand);
}

.pmm-point-of-sale .pmm-ui .ui-btn-out {
  border-color: var(--ui-ctl);
  color: var(--ui-ink);
  background: var(--ui-card);
}

.pmm-point-of-sale .pmm-ui .ui-btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.pmm-point-of-sale .pmm-ui .ui-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  color: var(--ui-ink3);
  background: var(--ui-card);
  font-size: var(--cui-primary);
}

.pmm-point-of-sale .pmm-ui .ui-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ui-ink2);
  background: var(--ui-soft);
  font-size: var(--cui-aux);
}

.pmm-point-of-sale .pmm-ui .ui-prow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--ui-line2);
}

.pmm-point-of-sale .pmm-ui .ui-thumb {
  display: block;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ui-soft);
  object-fit: cover;
}

.pmm-point-of-sale .pmm-ui .ui-pname {
  display: block;
  font-size: var(--cui-primary);
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .ui-pmeta {
  display: block;
  margin-top: 1px;
  color: var(--ui-ink2);
  font-size: var(--cui-support);
}

.pmm-point-of-sale .pmm-ui .ui-pprice {
  font-size: var(--cui-primary);
  font-weight: 700;
  white-space: nowrap;
}

.pmm-point-of-sale .pmm-ui .ui-split {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr);
  min-height: 0;
}

.pmm-point-of-sale .pmm-ui .ui-pane {
  min-width: 0;
}

.pmm-point-of-sale .pmm-ui .ui-pane + .ui-pane {
  border-left: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .ui-minihead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 14px;
  gap: 10px;
  border-bottom: 1px solid var(--ui-line2);
}

.pmm-point-of-sale .pmm-ui .ui-minihead strong {
  font-size: var(--cui-primary);
}

.pmm-point-of-sale .pmm-ui .ui-kicker {
  padding: 10px 14px 6px;
  color: var(--ui-ink3);
  font-size: var(--cui-aux);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pmm-point-of-sale .pmm-ui .ui-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--ui-line2);
}

.pmm-point-of-sale .pmm-ui .ui-radio {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ui-ctl);
  border-radius: 50%;
  background: var(--ui-card);
}

.pmm-point-of-sale .pmm-ui .ui-radio.is-on {
  border: 6px solid var(--ui-brand);
}

.pmm-point-of-sale .pmm-ui .ui-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-ink2);
  font-size: var(--cui-aux);
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .ui-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  content: '';
}

.pmm-point-of-sale .pmm-ui .ui-ctabs {
  display: flex;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .ui-ctab {
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  color: var(--ui-ink3);
  font-size: var(--cui-primary);
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .ui-ctab.is-on {
  border-bottom-color: var(--ui-ink);
  color: var(--ui-ink);
}

.pmm-point-of-sale .pmm-ui .ui-total {
  display: grid;
  gap: 7px;
  padding: 10px 14px;
  border-top: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .ui-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ui-ink2);
  font-size: var(--cui-support);
}

.pmm-point-of-sale .pmm-ui .ui-total-line strong {
  color: var(--ui-ink);
  font-size: var(--cui-primary);
}

.pmm-point-of-sale .pmm-ui .ui-menu-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  gap: 10px;
  border-bottom: 1px solid var(--ui-line2);
  font-size: var(--cui-primary);
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .ui-menu-item:last-child {
  border-bottom: 0;
}

.pmm-point-of-sale .pmm-ui .ui-menu-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ui-ink2);
  background: var(--ui-soft);
  font-size: 15px;
}

/* Preserve the confirmed composition pins; card height is intrinsic, never cropped. */
@media (min-width: 1200px) {
  .pmm-point-of-sale .pmm-ui .cmp-fulfil .cmp-field {
    inset: 0 46.6% 31.4% 0;
  }

  .pmm-point-of-sale .pmm-ui .cmp-fulfil .cmp-field img {
    object-position: 0 50%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-fulfil .cmp-anchor {
    right: 0;
    bottom: 0;
    width: 69.2%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-stock .cmp-field {
    inset: 0 0 0 15.6%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-stock .cmp-field img {
    object-position: 100% 50%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-stock .cmp-anchor {
    top: 9.8%;
    left: 0;
    width: 72.8%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-customer .cmp-field {
    inset: 33.8% 48.8% 0 0;
  }

  .pmm-point-of-sale .pmm-ui .cmp-customer .cmp-field img {
    object-position: 0 50%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-customer .cmp-anchor {
    top: 0;
    right: 0;
    width: 72.2%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-continuity .cmp-field {
    inset: 0 0 0 18%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-continuity .cmp-field img {
    object-position: 100% 50%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-continuity .cmp-anchor {
    top: 7.2%;
    left: 0;
    width: 72.4%;
  }
}

.pmm-point-of-sale .pos-related {
  padding: 6rem 0;
}

.pmm-point-of-sale .pos-related__inner,
.pmm-point-of-sale .pos-final__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.pmm-point-of-sale .pos-related__intro {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.pmm-point-of-sale .pos-related__intro p:last-child,
.pmm-point-of-sale .pos-final__inner > p:not(.kicker) {
  max-width: 42rem;
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.65;
}

.pmm-point-of-sale .pos-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pmm-point-of-sale .pos-related__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 1.5rem;
  gap: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  color: #0f172a;
  background: #fff;
  font-size: 1rem;
  font-weight: 650;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pmm-point-of-sale .pos-related__card:hover {
  border-color: #bfd0f8;
  box-shadow: 0 14px 30px -24px rgba(15, 23, 42, .42);
  transform: translateY(-2px);
}

.pmm-point-of-sale .pos-final {
  padding: 7rem 0;
  background: #fff;
}

.pmm-point-of-sale .pos-final__inner {
  text-align: left;
}



.pmm-point-of-sale .pos-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

@media (max-width: 1199px) {
  .pmm-point-of-sale .pos-hero img.object-cover {
    object-position: 68% 50%;
  }

  .pmm-point-of-sale .pos-feature > div {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 576px;
  }

  .pmm-point-of-sale .pos-feature--reverse > div > div:first-child,
  .pmm-point-of-sale .pos-feature--reverse > div > div:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .pmm-point-of-sale .pos-feature--reverse > div {
    display: flex;
  }

  .pmm-point-of-sale .pmm-ui .cmp .cmp-canvas {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
  }

  .pmm-point-of-sale .pmm-ui .cmp .cmp-field {
    position: relative;
    inset: auto;
    flex: none;
    width: 100%;
    height: 220px;
  }

  .pmm-point-of-sale .pmm-ui .cmp .cmp-field img {
    object-position: center;
  }

  .pmm-point-of-sale .pmm-ui .cmp .cmp-anchor {
    position: relative;
    inset: auto;
    z-index: 2;
    width: auto;
    height: auto;
    margin: -48px 12px 0;
  }
}

@media (max-width: 767px) {
  .pmm-point-of-sale .pos-related {
    padding: 4.5rem 0;
  }

  .pmm-point-of-sale .pos-related__inner,
  .pmm-point-of-sale .pos-final__inner {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .pmm-point-of-sale .pos-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmm-point-of-sale .pos-final {
    padding: 5rem 0;
  }
}

@media (max-width: 640px) {
  .pmm-point-of-sale .pos-hero img.object-cover {
    object-position: 73% 50%;
  }

  .pmm-point-of-sale .pmm-ui .cmp .cmp-field {
    height: 200px;
  }

  .pmm-point-of-sale .pmm-ui .cmp .cmp-anchor {
    margin-right: 0;
    margin-left: 0;
  }

  .pmm-point-of-sale .pmm-ui .ui-split {
    grid-template-columns: 1fr;
  }

  .pmm-point-of-sale .pmm-ui .ui-pane + .ui-pane {
    border-top: 1px solid var(--ui-line);
    border-left: 0;
  }

  .pmm-point-of-sale .pmm-ui .ui-head,
  .pmm-point-of-sale .pmm-ui .ui-line,
  .pmm-point-of-sale .pmm-ui .ui-prow,
  .pmm-point-of-sale .pmm-ui .ui-radio-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .pmm-point-of-sale .pos-related__inner,
  .pmm-point-of-sale .pos-final__inner {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .pmm-point-of-sale .pos-related__grid {
    grid-template-columns: 1fr;
  }


}

/* Reflow from the actual card width, not the viewport. Keep the UI type ladder intact. */
@container (max-width: 360px) {
  .pmm-point-of-sale .pmm-ui .ui-head {
    flex-wrap: wrap;
  }

  .pmm-point-of-sale .pmm-ui .ui-head > div {
    flex: 1 1 100%;
  }

  .pmm-point-of-sale .pmm-ui .ui-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pmm-point-of-sale .pmm-ui .ui-footer-row > .ui-grow:empty {
    display: none;
  }

  .pmm-point-of-sale .pmm-ui .ui-prow {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .pmm-point-of-sale .pmm-ui .ui-prow .ui-pprice {
    grid-column: 2;
  }

  .pmm-point-of-sale .pmm-ui .ui-radio-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .pmm-point-of-sale .pmm-ui .ui-radio-row > :last-child {
    grid-column: 2;
  }

  .pmm-point-of-sale .pmm-ui .cmp-stock .ui-line {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pmm-point-of-sale .pmm-ui .cmp-stock .ui-line > .ui-grow {
    flex-basis: 100%;
  }

  .pmm-point-of-sale .pmm-ui .cmp-stock .ui-line > :last-child {
    display: flex;
    gap: 12px;
  }

  .pmm-point-of-sale .pmm-ui .ui-customer-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px 12px;
  }

  .pmm-point-of-sale .pmm-ui .ui-customer-row .ui-btn {
    grid-column: 2;
    justify-self: start;
  }
}

/* Complete new POS overview. Source: admin-web POS Home.vue, HomeHeaderStatus.vue,
   CartPanel.vue, CartSummary.vue and pos-revamp/_palette.scss (light palette).
   Run-local exception requested by Frost: standalone tablet device, no Scene Field.
   The kit's phone-only device geometry is not reused for a landscape tablet. */
.pmm-point-of-sale .pos-feature--overview .pos-feature > div {
  display: block;
}

.pmm-point-of-sale .pos-feature--overview .pos-feature > div > div:first-child {
  text-align: center;
}

.pmm-point-of-sale .pos-feature--overview .pos-feature > div > div:first-child h2 {
  max-width: 52rem;
  margin-right: auto;
  margin-left: auto;
  text-wrap: balance;
}

.pmm-point-of-sale .pos-feature--overview .pos-feature > div > div:first-child h3 {
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
}

.pmm-point-of-sale .pmm-ui .pos-tablet {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  color: var(--ui-ink);
}

.pmm-point-of-sale .pmm-ui .ui-device--tablet {
  position: relative;
  padding: 22px;
  border: 1px solid #74777c;
  border-radius: 34px;
  background: #202226;
  box-shadow: inset 0 0 0 2px #46494e, inset 0 0 0 4px #15171a,
    0 2px 3px rgba(15, 23, 42, .16), 0 30px 60px -28px rgba(15, 23, 42, .4);
}

.pmm-point-of-sale .pmm-ui .ui-device--tablet .ui-device__camera {
  position: absolute;
  top: 8px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border: 1px solid #424b58;
  border-radius: 50%;
  background: #0b1018;
}

.pmm-point-of-sale .pmm-ui .ui-device--tablet .ui-device__power {
  position: absolute;
  top: 42px;
  right: -3px;
  width: 3px;
  height: 28px;
  border-radius: 0 2px 2px 0;
  background: #55595e;
}

.pmm-point-of-sale .pmm-ui .pos-screen {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ui-card);
  font-size: var(--cui-primary);
  line-height: 1.35;
}

.pmm-point-of-sale .pmm-ui .pos-screen__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  min-height: 580px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__home,
.pmm-point-of-sale .pmm-ui .pos-screen__cart {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pmm-point-of-sale .pmm-ui .pos-screen__home {
  background: #f3f4f7;
}

.pmm-point-of-sale .pmm-ui .pos-screen__cart {
  border-left: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .pos-screen svg {
  flex: none;
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

.pmm-point-of-sale .pmm-ui .pos-screen__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 16px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__header-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__search {
  padding: 0 16px 16px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__search .ui-search {
  min-height: 44px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 128px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  font-size: var(--cui-primary);
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .pos-screen__tile--scan { background: #519cc6; }
.pmm-point-of-sale .pmm-ui .pos-screen__tile--inventory { background: #56a79e; }
.pmm-point-of-sale .pmm-ui .pos-screen__tile--customer { background: #9280e4; }
.pmm-point-of-sale .pmm-ui .pos-screen__tile--fulfilment { background: #c5a098; }
.pmm-point-of-sale .pmm-ui .pos-screen__tile--pickup { background: #c983b7; }

.pmm-point-of-sale .pmm-ui .pos-screen__product {
  gap: 8px;
  border: 1px solid var(--ui-line);
  color: var(--ui-ink);
  background: #fff;
}

.pmm-point-of-sale .pmm-ui .pos-screen__product img {
  width: 100%;
  height: 48px;
  object-fit: contain;
}

.pmm-point-of-sale .pmm-ui .pos-screen__customer {
  padding: 16px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__customer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  border-radius: 12px;
  color: var(--ui-brand);
  background: #e9effb;
}

.pmm-point-of-sale .pmm-ui .pos-screen__cart-items {
  flex: 1;
  padding: 0 16px 24px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__cart-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .pos-screen__cart-item .ui-val {
  font-size: var(--cui-support);
}

.pmm-point-of-sale .pmm-ui .pos-screen__totals {
  display: grid;
  gap: 16px;
  padding: 16px 16px 20px;
  border-top: 1px solid var(--ui-line);
}

.pmm-point-of-sale .pmm-ui .pos-screen__subtotal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.pmm-point-of-sale .pmm-ui .pos-screen__subtotal svg {
  width: 16px;
  height: 16px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__checkout {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}

.pmm-point-of-sale .pmm-ui .pos-screen__totals .ui-btn {
  gap: 8px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: 12px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .pmm-point-of-sale #section-pos-s1 > div {
    max-width: 1152px;
  }
}

.pmm-point-of-sale .pmm-ui .ui-device__island,
.pmm-point-of-sale .pmm-ui .ui-device__homebar,
.pmm-point-of-sale .pmm-ui .pos-screen__phone-status,
.pmm-point-of-sale .pmm-ui .pos-screen__mobile-footer,
.pmm-point-of-sale .pmm-ui .pos-screen__mobile-cart-header {
  display: none;
}

@container (max-width: 740px) {
  .pmm-point-of-sale .pmm-ui .pos-screen__layout {
    min-height: 0;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__tile {
    min-height: 104px;
    padding: 12px;
    gap: 20px;
  }
}

@container (max-width: 620px) {
  .pmm-point-of-sale .pmm-ui .pos-screen__layout {
    grid-template-columns: 1fr;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__cart {
    border-top: 1px solid var(--ui-line);
    border-left: 0;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__cart-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
}

@container (max-width: 480px) {
  .pmm-point-of-sale .pmm-ui .pos-screen__bar {
    flex-wrap: wrap;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__header-status {
    width: 100%;
    justify-content: flex-end;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__tile {
    padding: 12px;
    gap: 20px;
  }
}

@container (max-width: 280px) {
  .pmm-point-of-sale .pmm-ui .pos-screen__tile {
    padding: 8px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__cart-item .ui-val {
    grid-column: 2 / -1;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__checkout {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 6px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__checkout .ui-btn-pri {
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.35;
    padding: 8px;
  }
}

/* Phone device uses the kit's physical proportions. Native mobile Home and Cart
   are separate states; only the tile region scrolls, while the cart action stays visible. */
@media (max-width: 767px) {
  .pmm-point-of-sale .pmm-ui .pos-tablet {
    width: 92%;
    max-width: 322px;
  }

  .pmm-point-of-sale .pmm-ui .ui-device--tablet {
    aspect-ratio: 70.6 / 146.6;
    padding: 0;
    border-radius: 14% / 6.75%;
  }

  .pmm-point-of-sale .pmm-ui .ui-device__camera {
    display: none;
  }

  .pmm-point-of-sale .pmm-ui .ui-device--tablet .ui-device__power {
    top: 26.5%;
    height: 11.8%;
  }

  .pmm-point-of-sale .pmm-ui .ui-device__island {
    position: absolute;
    display: block;
    z-index: 3;
    top: 1.9%;
    left: 37%;
    width: 26%;
    height: 3.4%;
    border-radius: 999px;
    background: #0b0c0f;
  }

  .pmm-point-of-sale .pmm-ui .ui-device__homebar {
    position: absolute;
    display: block;
    z-index: 3;
    bottom: 1.6%;
    left: 32%;
    width: 36%;
    height: .6%;
    border-radius: 999px;
    background: #0f172a;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen {
    position: absolute;
    inset: 1.01% 2.1%;
    display: flex;
    flex-direction: column;
    border-radius: 12% / 5.8%;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__phone-status {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f7;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__phone-status > span:last-child {
    display: flex;
    gap: 3px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__phone-status svg {
    width: 12px;
    height: 12px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__layout {
    display: block;
    flex: 1;
    min-height: 0;
    margin-bottom: 16px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__home,
  .pmm-point-of-sale .pmm-ui .pos-screen__cart {
    height: 100%;
    min-height: 0;
  }

  .pmm-point-of-sale .pmm-ui [data-pos-view="home"] .pos-screen__cart,
  .pmm-point-of-sale .pmm-ui [data-pos-view="cart"] .pos-screen__home {
    display: none;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__bar {
    flex: none;
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__header-status {
    flex: none;
    width: auto;
    gap: 2px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__status-icon {
    width: 26px;
    height: 28px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__header-status .ui-avatar {
    width: 24px;
    height: 24px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__search {
    flex: none;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__search .ui-search {
    min-height: 40px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__tiles {
    flex: 1;
    min-height: 0;
    grid-auto-rows: 112px;
    align-content: start;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #a5adc2 transparent;
    overscroll-behavior-y: contain;
    scroll-padding-block: 16px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__product {
    gap: 8px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__product img {
    flex: 0 1 40px;
    min-height: 0;
    height: 40px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__product > div {
    flex: none;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__mobile-footer {
    display: block;
    flex: none;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--ui-line);
    background: var(--ui-card);
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__mobile-footer .ui-btn {
    width: 100%;
    gap: 8px;
    min-height: 48px;
    padding: 8px;
    border-radius: 12px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__mobile-cart-header {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__cart {
    border: 0;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__customer {
    flex: none;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__cart-items {
    min-height: 0;
    overflow-y: auto;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__totals {
    flex: none;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen button:focus-visible,
  .pmm-point-of-sale .pmm-ui .pos-screen__tiles:focus-visible {
    outline: 2px solid var(--ui-brand);
    outline-offset: -2px;
  }
}

@container (max-width: 240px) {
  .pmm-point-of-sale .pmm-ui .pos-screen__bar {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__header-status {
    width: 100%;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__tiles {
    grid-template-columns: 1fr;
  }

  .pmm-point-of-sale .pmm-ui .pos-screen__mobile-footer .ui-btn {
    gap: 5px;
    font-size: 13px;
  }
}

/* Shared section shells retain the approved wide overview and 40/60 story layout. */
.pmm-point-of-sale .pos-feature > div > div { max-width: none; min-width: 0; }
.pmm-point-of-sale .pos-feature > div > div:last-child { padding-inline: 12px; }
.pmm-point-of-sale #section-pos-s1 .section-title h2 { max-width: 52rem; margin-inline: auto; text-wrap: balance; }
.pmm-point-of-sale #section-pos-s1 .section-title h3 { max-width: 42rem; margin-inline: auto; }
.pmm-point-of-sale .ui-menu-icon svg { width: 18px; height: 18px; }
.pmm-point-of-sale .ui-menu-item > svg { width: 16px; height: 16px; flex: none; }
.pmm-point-of-sale .pos-related__card svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 1199px) {
  .pmm-point-of-sale .pos-feature > div > div:last-child { padding-inline: 32px; }
}
.pmm-point-of-sale .pos-tablet { text-align: left; }

/* Preserve complete labels on small phones; the tile area remains scrollable. */
.pmm-point-of-sale .pos-screen__tile { overflow-wrap: anywhere; }
@container (max-width: 360px) {
  .pmm-point-of-sale .pmm-ui .ui-customer-row .ui-btn {
    max-width: 100%;
    white-space: normal;
  }
}
@media (max-width: 767px) {
  .pmm-point-of-sale .pmm-ui .pos-screen__tiles { grid-auto-rows: minmax(112px, auto); }
}

@media (min-width: 768px) {
  .pmm-point-of-sale #section-pos-s1 > div > div:last-child { padding-inline: 12px; }
}
