.logo {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.logo:focus-visible {
  border-radius: 5px;
  outline: 2px solid #0b6ca8;
  outline-offset: 4px;
}

.terminal-indicator.connection-indicator {
  position: absolute;
  top: 0;
  left: 2px;
  display: flex;
  min-height: 42px;
  align-items: center;
  color: #b56a08;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.terminal-indicator.connection-indicator.with-navigation {
  left: 42px;
}

.terminal-indicator.connection-indicator .terminal-dot {
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(181, 106, 8, .1);
}

.terminal-indicator.connection-indicator[data-status="online"] {
  color: #178650;
}

.terminal-indicator.connection-indicator[data-status="online"] .terminal-dot {
  box-shadow: 0 0 0 3px rgba(23, 134, 80, .1);
}

.terminal-indicator.connection-indicator[data-status="offline"] {
  color: #b23b3b;
}

.terminal-indicator.connection-indicator[data-status="offline"] .terminal-dot {
  box-shadow: 0 0 0 3px rgba(178, 59, 59, .1);
}

/* Shared top-bar controls keep navigation consistent across every PayPOS screen. */
.back,
.close,
.menu-button {
  position: absolute;
  top: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #082a48;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.back,
.close {
  left: -4px;
}

.menu-button {
  right: -4px;
}

.back:active,
.close:active,
.menu-button:active,
.menu-button[aria-expanded="true"] {
  background: #f1f6fa;
}

.back:focus-visible,
.close:focus-visible,
.menu-button:focus-visible {
  outline: 2px solid #0b6ca8;
  outline-offset: 1px;
}

/* The navigation menu belongs to the shared top bar, so every page gets the
   same presentation regardless of its page-specific stylesheet. */
.app-menu {
  position: absolute;
  z-index: 20;
  top: 46px;
  right: 0;
  width: 210px;
  padding: 6px;
  border: 1px solid var(--line, #dbe3ea);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 42, 72, .18);
}

.app-menu[hidden] {
  display: none;
}

.menu-item {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy, #082a48);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.menu-item:active,
.menu-item:focus-visible {
  background: var(--pressed, #f1f6fa);
  outline: 0;
}

.menu-item[data-menu-action="logout"] {
  margin-top: 4px;
  color: #b42318;
  box-shadow: inset 0 1px 0 var(--line, #dbe3ea);
}

.paypos-payment-toast {
  position: fixed;
  z-index: 100;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  display: flex;
  width: min(calc(100% - 28px), 402px);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #bde4cf;
  border-radius: 12px;
  background: #eaf8f0;
  color: #178650;
  box-shadow: 0 8px 28px rgba(8, 42, 72, .18);
  pointer-events: none;
  transform: translateX(-50%);
  animation: paypos-payment-toast-in .22s ease-out;
}

.paypos-payment-toast[hidden] {
  display: none;
}

.paypos-payment-toast-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #178650;
  color: #fff;
}

.paypos-payment-toast-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paypos-payment-toast-copy {
  min-width: 0;
}

.paypos-payment-toast-copy strong,
.paypos-payment-toast-copy span {
  display: block;
}

.paypos-payment-toast-copy strong {
  font-size: 12px;
  line-height: 1.3;
}

.paypos-payment-toast-copy span {
  overflow: hidden;
  margin-top: 2px;
  color: #082a48;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes paypos-payment-toast-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Shared POS layout: keep the primary action in the thumb-friendly bottom zone. */
.screen {
  display: flex;
  flex-direction: column;
}

.pos-action-dock {
  position: sticky;
  z-index: 10;
  bottom: 0;
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
  background: #fff;
}

.pos-action-dock > button {
  margin-top: 0;
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .paypos-payment-toast {
    animation: none;
  }
}
/* Amount composition is shared by channel, waiting, success and detail pages. */
.transaction-summary.has-tip {
  height: auto !important;
  min-height: 0 !important;
}

:root { --transaction-breakdown-font-size: clamp(15px, 1.7vmin, 20px); }

.transaction-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #536575;
  font-size: var(--transaction-breakdown-font-size);
  font-weight: 650;
  line-height: 1.45;
  white-space: normal;
}

.transaction-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 9px;
}

.transaction-breakdown-row strong {
  color: var(--navy);
  font-size: inherit;
  white-space: nowrap;
}

@media (min-width: 600px) and (min-height: 480px) {
  :root { --transaction-breakdown-font-size: clamp(18px, 2.3vmin, 22px); }
}

.sms-credit-chip{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 16px;margin:12px 0;border:1px solid #dbe5ed;border-radius:12px;background:#f3f9fd;color:#15394f;text-decoration:none;font-size:14px;line-height:1.5}
