:root {
  --totem-bg: #f5f8fa;
  --totem-surface: #ffffff;
  --totem-text: #181c32;
  --totem-muted: #7e8299;
  --totem-border: #eff2f5;
  --totem-secondary: var(--bs-primary, #009ef7);
  --totem-secondary-dark: #0a75c2;
  --totem-secondary-light: #eef8ff;
  --totem-success: #16a34a;
  --totem-danger: #dc2626;
  --totem-warning: #f59e0b;
  --totem-footer-badge-bg: #0a75c2;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #f5f8fa;
  overflow: hidden;
}

.btn:not(.btn-outline):not(.btn-dashed):not(.btn-bordered):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon):not(.btn-hover-outline) {
  border: 0;
  padding: calc(1rem + 1px) calc(1.2rem + 1px);
}

.btn.key-btn {
  padding: 0 !important;
}

.totem-app-host {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--totem-bg);
  position: relative;
  overflow: hidden;
}

.totem-app-host,
.totem-app-host * {
  box-sizing: border-box;
}

.totem-app-host button,
.totem-app-host input {
  font-family: inherit;
}

.totem-app-root {
  min-height: inherit;
  color: var(--totem-text);
  user-select: none;
  -webkit-user-select: none;
}

.totem-container,
.tela-home,
.success-screen {
  min-height: inherit;
  height: 100%;
}

.totem-container {
  display: flex;
  flex-direction: column;
  background: var(--totem-bg);
}

.totem-header {
  background: var(--totem-surface);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 10px rgba(43, 27, 78, 0.06);
  flex-shrink: 0;
}

.totem-header.totem-header-accent {
  background: var(--degrade_tera);
  padding: 18px 22px;
  min-height: 74px;
  justify-content: center;
  text-align: center;
  border-bottom: 0;
  box-shadow: 0 6px 16px rgba(39, 5, 57, 0.22);
}

.totem-header.totem-header-accent .totem-header-title {
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 1.15rem;
}

.totem-header-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--totem-secondary);
}

.totem-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.totem-bar {
  height: 40px;
  background: var(--degrade_tera);
  box-shadow: 0 6px 16px rgba(39, 5, 57, 0.2);
  flex-shrink: 0;
  position: relative;
}

.totem-footer-bar {
  height: 16px;
  background: var(--degrade_tera);
  box-shadow: 0 -2px 10px rgba(39, 5, 57, 0.18);
  flex-shrink: 0;
}

.totem-desktop-type-btn {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .totem-mobile-scan-btn {
    display: none !important;
  }

  .totem-desktop-type-btn {
    display: inline-flex !important;
  }
}

.totem-bar-scan-btn {
  position: absolute;
  top: 50%;
  left: 30px;
  transform: translate(-50%, -50%);
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  background: rgba(255, 255, 255, 0.13) !important;
  color: #fff !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  z-index: 2;
}

.totem-bar-scan-btn.totem-desktop-type-btn {
  left: 50%;
}

/* ─── Cliente + Vendedor — barra ────────────────────────────────────────── */
.totem-people-bar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--totem-border);
  flex-shrink: 0;
}

.totem-people-bar > .totem-client-bar {
  flex: 3 1 0;
}

.totem-people-bar > .totem-seller-bar {
  flex: 2 1 0;
}

.totem-client-bar,
.totem-seller-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--totem-border);
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(42, 27, 70, 0.03);
}

.totem-person-avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #94a3b8;
}

.totem-person-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.totem-person-avatar-client {
  background: var(--totem-secondary-light, #eef8ff);
  color: var(--totem-secondary);
}

.totem-person-avatar-seller {
  background: #dcfce7;
  color: #16a34a;
}

.totem-client-bar-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.totem-client-bar-meta {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--totem-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.totem-client-bar-edit {
  align-self: flex-start;
  flex-shrink: 0;
}

.totem-seller-bar-body {
  flex: 1;
  min-width: 0;
}

.totem-seller-bar-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--totem-muted);
  line-height: 1;
  margin-bottom: 3px;
}

.totem-seller-bar-name,
.totem-client-bar-name {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--totem-text);
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.totem-seller-bar-name-empty {
  color: #94a3b8;
  font-weight: 500;
}

/* ─── Identificação do Vendedor — modal ─────────────────────────────────── */
.totem-modal-sheet-header-accent {
  background: var(--degrade_tera);
  border-bottom: 0;
  padding: 16px 18px;
}

.totem-modal-sheet-header-accent .totem-modal-sheet-title {
  color: #fff;
  font-size: 1.12rem;
}

.totem-seller-display {
  background: #f8fafc;
  border: 2px solid #e2eaf5;
  border-radius: 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #1c2a44;
  letter-spacing: 0.18em;
  transition: border-color 0.15s, background 0.15s;
  padding: 0 20px;
}

.totem-seller-display-active {
  border-color: var(--totem-secondary, #009ef7);
  background: #fff;
}

.totem-seller-display-placeholder {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #b2bdd0;
}

.totem-seller-scan-btn {
  width: 100%;
  min-height: 46px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--totem-secondary) !important;
  background: var(--totem-secondary-light, #eef8ff) !important;
  border: 1.5px solid #b8e4ff !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none !important;
}

.totem-seller-scan-btn:hover,
.totem-seller-scan-btn:active {
  background: #d8f0ff !important;
}

.totem-seller-modal-footer {
  border-top: 1px solid #e7edf5;
  padding: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 2fr;
}

/* ──────────────────────────────────────────────────────────────────────────── */

.totem-modal-auth-input-wrap {
  position: relative;
}

.totem-modal-auth-input-wrap .totem-modal-auth-input {
  padding-right: 46px;
}

.totem-modal-auth-scan-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid #d7e8f8 !important;
  background: #f8fafc !important;
  color: #1f2a44 !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.totem-client-name-bar {
  min-height: 40px;
  padding: 8px 18px;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--totem-text);
  font-size: 0.96rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.totem-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.totem-content-cart {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  overflow-y: auto;
}

.totem-content-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tela-home,
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
}

.tela-home {
  background: linear-gradient(160deg, var(--totem-secondary), var(--totem-secondary-dark));
  color: #fff;
}

.tela-home-particles {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ecf0f3;
  color: var(--totem-text);
}

.home-particles-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tela-home-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-brand-top-left {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.home-brand-top-left img {
  height: 65px;
  width: auto;
  display: block;
}

.home-brand-top-left[data-action] {
  cursor: pointer;
  border-radius: 10px;
  transition: opacity 0.15s;
}

.home-brand-top-left[data-action]:hover {
  opacity: 0.75;
}

/* Modal de configurações de zoom */
.totem-zoom-modal-sheet {
  width: min(420px, 100%);
}

.totem-zoom-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 20px;
}

.totem-zoom-modal-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--totem-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.totem-zoom-modal-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.totem-zoom-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid var(--totem-border);
  background: var(--totem-surface);
  color: var(--totem-text);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.totem-zoom-btn:not(:disabled):hover,
.totem-zoom-btn:not(:disabled):active {
  background: var(--totem-secondary-light);
  border-color: var(--totem-secondary);
  color: var(--totem-secondary);
}

.totem-zoom-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.totem-zoom-indicator {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--totem-text);
  min-width: 110px;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1;
}


.tela-home-light {
  background: #ecf0f3;
  color: var(--totem-text);
}

.tela-home-light p,
.tela-home-particles p {
  color: #5e6278;
  opacity: 1;
}

.logo-inicial {
  width: min(180px, 42vw);
  height: auto;
  border-radius: 18px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

.btn-start-home {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--totem-text) !important;
  min-width: min(46vw, 210px);
  min-height: 76px;
}

.tela-home .btn.hover-primary:hover {
  color: #fff;
  background-color: var(--azul_software_dark, var(--bs-primary));
  border-color: var(--azul_software_dark, var(--bs-primary));
}

.success-screen {
  background: linear-gradient(160deg, #1fbf63, #128043);
  color: #fff;
}

.cpf-icon {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 14px;
}

.tela-home h1,
.tela-home h2,
.success-screen h2 {
  margin: 0 0 12px;
  font-weight: 700;
}

.tela-home h1 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.35rem);
}

.tela-home h2 {
  font-size: clamp(1.45rem, 1.8vw + 0.9rem, 2rem);
}

.tela-home p {
  margin: 0 0 28px;
  opacity: 0.92;
  font-size: 1.05rem;
  max-width: 680px;
}

@media (max-width: 768px) {
  .home-brand-top-left {
    top: 8px;
    left: 12px;
    gap: 4px;
  }

  .home-brand-top-left img {
    height: 60px;
  }
}

.ask-cpf-title {
  margin-bottom: 8px;
}

.ask-cpf-subtitle {
  margin-bottom: 24px;
}

.btn-totem {
  min-height: 52px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 20px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-totem:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-totem:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-totem-secondary {
  background: var(--totem-secondary);
  color: #fff;
}

.btn-totem-secondary:hover {
  background: var(--totem-secondary-dark);
  color: #fff;
}

.btn-totem.totem-btn-back-touch {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--totem-secondary) !important;
}

.btn-totem.totem-btn-back-touch:hover,
.btn-totem.totem-btn-back-touch:focus,
.btn-totem.totem-btn-back-touch:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--totem-secondary) !important;
}

.btn-totem.totem-btn-back-touch:active:not(:disabled),
.btn-totem.totem-btn-back-touch.active:not(:disabled) {
  background: var(--totem-secondary) !important;
  border-color: var(--totem-secondary) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(88, 3, 127, 0.18) !important;
}

.btn-totem.totem-btn-danger-solid {
  background: var(--bs-danger, #f8285a) !important;
  border-color: var(--bs-danger, #f8285a) !important;
  color: #fff !important;
}

.btn-totem.totem-btn-danger-solid:hover,
.btn-totem.totem-btn-danger-solid:focus,
.btn-totem.totem-btn-danger-solid:focus-visible,
.btn-totem.totem-btn-danger-solid:active,
.btn-totem.totem-btn-danger-solid.active {
  background: #d81c4b !important;
  border-color: #d81c4b !important;
  color: #fff !important;
}

.totem-btn-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.totem-btn-stack {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.totem-form-wrapper {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.totem-form-wrapper-wide {
  max-width: 980px;
}

.totem-input {
  width: 100%;
  border: 2px solid var(--totem-border);
  border-radius: 12px;
  background: #fff;
  color: var(--totem-text);
  padding: 28px 14px;
  text-align: center;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 1.85rem;
  outline: none;
}

.totem-input:focus {
  border-color: var(--totem-secondary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.totem-field-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.totem-field-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  color: var(--totem-text);
  box-shadow: inset 0 0 0 2px var(--totem-border);
  outline: none;
  cursor: pointer;
}

.totem-field-input.totem-field-active {
  box-shadow: inset 0 0 0 2px var(--totem-border);
}

.totem-state-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-weight: 600;
}

.totem-state-picker:hover {
  background: #fff;
}

.totem-state-picker-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #94a3b8;
}

.totem-state-picker.totem-state-picker-selected .totem-state-picker-value {
  color: var(--totem-text);
}

.totem-state-picker-icon {
  color: #64748b;
  font-size: 1rem;
}

.totem-field-help {
  font-size: 0.85rem;
  color: var(--totem-muted);
  line-height: 1.35;
}

.totem-register-content {
  padding: 14px 18px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 158, 247, 0.08), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(0, 158, 247, 0.06), transparent 40%),
    var(--totem-bg);
}

.totem-register-layout {
  --totem-register-center-max: 760px;
  height: 100%;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
  align-content: center;
  justify-items: center;
  min-height: 0;
}

.totem-register-step-panel {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px;
  width: 100%;
  max-width: var(--totem-register-center-max);
}

.totem-register-layout-review {
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 8px;
}

.totem-register-step-panel-review,
.totem-register-layout-review .totem-register-step-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  align-self: center;
  height: auto;
  max-height: min(56vh, 580px);
}

.totem-register-layout-review .totem-wizard-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.totem-register-layout-review .totem-next-action {
  margin-top: 4px;
}

.totem-register-layout-review .totem-wizard-actions-footer {
  margin-top: 0;
  padding-top: 2px;
}

.totem-register-keyboard-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  align-self: auto;
  position: static;
  width: 100%;
  max-width: var(--totem-register-center-max);
}

.totem-register-keyboard-wrap .virtual-keyboard {
  margin-top: 0 !important;
  width: 100%;
  max-width: var(--totem-register-center-max);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bs-gray-300);
  border: 1px solid var(--bs-gray-500);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.totem-next-action {
  margin-top: 10px;
  width: 100%;
  max-width: var(--totem-register-center-max);
}

.totem-next-action.totem-next-action-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.totem-next-action .totem-register-enter-btn {
  min-height: 58px;
  width: 100%;
}

.totem-next-action.totem-next-action-dual .totem-register-enter-btn {
  width: 100%;
}

.totem-next-action.totem-next-action-dual .key-btn.key-confirm {
  grid-column: auto;
}

.totem-wizard-actions-footer {
  width: 100%;
  max-width: var(--totem-register-center-max);
  margin-inline: auto;
}

.totem-wizard-title {
  margin: 0;
  color: var(--totem-text);
  font-size: 1.62rem;
  line-height: 1.12;
  font-weight: 800;
}

.totem-wizard-heading {
  display: grid;
  gap: 2px;
}

.totem-wizard-title-secondary {
  color: var(--totem-text);
  font-size: 1.18rem;
  line-height: 1.15;
  font-weight: 700;
}

.totem-wizard-subtitle {
  margin: 0;
  color: #4d5c72;
  font-size: 1.04rem;
  line-height: 1.25;
  font-weight: 500;
}

.totem-wizard-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  gap: 14px;
}

.totem-step-input {
  min-height: 68px;
  font-size: 1.3rem;
  padding: 28px 18px;
  border-radius: 14px;
  border-width: 2px;
  text-transform: inherit;
}

.totem-review-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  max-height: 100%;
  padding-right: 4px;
}

.totem-review-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--totem-border);
}

.totem-review-header {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.totem-review-edit-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  align-self: center;
}

.totem-review-edit-btn i {
  font-size: 0.95rem;
}

.totem-review-label {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}

.totem-review-value {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--totem-text);
  text-align: left;
  overflow-wrap: anywhere;
  min-width: 0;
}

.totem-review-list::-webkit-scrollbar {
  width: 6px;
}

.totem-review-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.totem-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.totem-modal-sheet {
  width: min(560px, 100%);
  max-height: min(78vh, 700px);
  background: #fff;
  border-radius: 18px;
  border: 0;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.28);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  transform: translateY(-3vh);
}

.totem-modal-sheet-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e7edf5;
}

.totem-modal-sheet-header.bg-danger .totem-modal-sheet-title {
  color: #fff;
}

.totem-modal-sheet-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--totem-text);
  text-align: center;
}

.totem-modal-sheet-body {
  min-height: 0;
  padding: 10px 10px 0;
}

.totem-modal-sheet-body-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
}

.totem-modal-confirm-message {
  margin: 0;
  text-align: center;
  color: var(--totem-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
}

.totem-modal-auth-content {
  display: grid;
  gap: 10px;
  padding: 4px 6px 12px;
}

.totem-modal-auth-keyboard {
  margin-top: 2px;
  padding: 12px;
  border-radius: 14px;
}

.totem-modal-auth-keyboard .key-btn {
  min-height: 54px;
  font-size: 1.04rem;
  transition: none;
  transform: none !important;
  box-shadow: none !important;
  outline: 0 !important;

  --bs-btn-color: #1f2a44;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #d7e8f8;
  --bs-btn-hover-color: #1f2a44;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #d7e8f8;
  --bs-btn-focus-shadow-rgb: 0, 0, 0;
  --bs-btn-active-color: #1f2a44;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #d7e8f8;
}

.totem-modal-auth-keyboard .key-btn:hover,
.totem-modal-auth-keyboard .key-btn:focus,
.totem-modal-auth-keyboard .key-btn:focus-visible,
.totem-modal-auth-keyboard .key-btn:active,
.totem-modal-auth-keyboard .key-btn.active {
  transform: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  border-color: #d7e8f8 !important;
  background: #fff !important;
  color: #1f2a44 !important;
}

.totem-modal-auth-keyboard .key-btn.key-special,
.totem-modal-auth-keyboard .key-btn.key-special:hover,
.totem-modal-auth-keyboard .key-btn.key-special:focus,
.totem-modal-auth-keyboard .key-btn.key-special:focus-visible,
.totem-modal-auth-keyboard .key-btn.key-special:active,
.totem-modal-auth-keyboard .key-btn.key-special.active {
  background: #edf3f9 !important;
  color: #1f2a44 !important;
  border-color: #d7e8f8 !important;
}

.totem-modal-auth-input {
  text-align: center;
}

.totem-modal-auth-hint {
  text-align: center;
  color: var(--totem-muted);
  font-size: 0.88rem;
}

.totem-modal-auth-error {
  text-align: center;
  color: var(--bs-danger, #dc2626);
  font-weight: 700;
  font-size: 0.92rem;
}

.totem-state-modal-list {
  max-height: min(55vh, 460px);
  overflow-y: auto;
  padding-right: 2px;
  display: grid;
  gap: 6px;
}

.totem-state-modal-option {
  width: 100%;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #fff;
  color: var(--totem-text);
  min-height: 52px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.totem-state-modal-option:hover {
  border-color: #aac8e9;
  background: #f8fbff;
}

.totem-state-modal-option.active {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.24);
}

.totem-state-modal-option-label {
  font-size: 0.95rem;
  font-weight: 600;
}

.totem-modal-sheet-footer {
  border-top: 1px solid #e7edf5;
  padding: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.totem-modal-sheet-btn {
  min-height: 46px;
}

.totem-address-preview {
  border: 1px dashed #93d5ff;
  background: linear-gradient(180deg, #f7fcff 0%, #eef8ff 100%);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  font-size: 0.88rem;
  color: #334155;
}

.totem-address-preview-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.totem-wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: auto;
  padding-top: 4px;
}

.totem-wizard-actions>div:empty {
  flex: 1 1 auto;
}

.totem-wizard-nav-btn {
  min-height: 46px;
  padding: 9px 14px;
  font-size: 0.86rem;
  border-radius: 12px;
}

.totem-wizard-actions-footer {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #e6f0fa;
}

.totem-wizard-nav-btn-muted {
  min-width: 0;
  border-width: 1px !important;
  color: #5e6278 !important;
  border-color: #dce4ee !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.totem-wizard-nav-btn-muted:hover {
  background: #eef3f8 !important;
  color: #1f2a44 !important;
  border-color: #cfd9e5 !important;
}

.virtual-keyboard {
  background: var(--bs-gray-300);
  border: 1px solid var(--bs-gray-500);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.keyboard-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.keyboard-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.keyboard-row-center {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.keyboard-grid-numeric .keyboard-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.key-btn {
  min-width: 0;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d7e8f8;
  background: #fff;
  color: #1f2a44;
  font-weight: 700;
  font-size: 1.12rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}

.key-btn:hover {
  border-color: #9fd8ff;
  box-shadow: inset 0 0 0 1px rgba(0, 158, 247, 0.08);
}

.key-btn:active {
  transform: scale(0.97);
  background: var(--totem-secondary);
  color: #fff;
}

.key-btn:disabled,
.key-btn.key-btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.key-btn:disabled:active,
.key-btn.key-btn-disabled:active {
  background: #f3f4f6;
  color: #6b7280;
}

.key-btn.key-special {
  background: #edf3f9;
  font-size: 0.95rem;
}

.key-btn.key-alpha {
  flex: 1 1 0;
  max-width: 56px;
  min-width: 0;
  padding-inline: 0;
}

.key-btn.key-space {
  flex: 3 1 0;
}

.key-btn.key-wide {
  flex: 1.5 1 0;
}

.key-btn.key-confirm {
  grid-column: 1 / -1;
  background: var(--totem-secondary);
  color: #fff;
}

.key-btn.key-confirm:hover {
  background: var(--totem-secondary-dark);
  color: #fff;
}

.footer-action-btn-confirm {
  background: var(--totem-secondary);
}

.footer-action-btn-confirm:hover {
  background: var(--totem-secondary-dark);
}

@media (min-width: 576px) {
  .keyboard-grid-full .keyboard-row-actions {
    justify-content: stretch;
    gap: 10px;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-space {
    flex: 1 1 auto;
    min-width: 0;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-special,
  .keyboard-grid-full .keyboard-row-actions .key-btn.key-wide {
    flex: 0 0 88px;
    min-width: 88px;
    min-height: 60px;
  }
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 960px),
(orientation: landscape) {
  .cart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--totem-border);
  box-shadow: 0 3px 12px rgba(42, 27, 70, 0.03);
}

.product-card.product-card--destaque {
  z-index: 1;
  animation: destaqueCard 2.2s cubic-bezier(.22, 1, .36, 1) var(--destaque-atraso, 0ms) both;
}

.product-card.product-card--destaque::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%) no-repeat;
  background-size: 220% 100%;
  pointer-events: none;
  animation: destaqueBrilho .9s ease-out calc(var(--destaque-atraso, 0ms) + 250ms) both;
}

@keyframes destaqueCard {
  0% {
    transform: translateY(12px) scale(.97);
    background-color: #fff7d1;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 3px 12px rgba(42, 27, 70, .03);
  }
  14% {
    transform: translateY(0) scale(1.02);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .9), 0 14px 34px rgba(245, 158, 11, .38);
  }
  24% {
    transform: none;
  }
  70% {
    background-color: #fff7d1;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .75), 0 10px 26px rgba(245, 158, 11, .25);
  }
  100% {
    transform: none;
    background-color: #fff;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0), 0 3px 12px rgba(42, 27, 70, .03);
  }
}

@keyframes destaqueBrilho {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -60% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.product-card--destaque {
    animation: none;
    background-color: #fff7d1;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .75);
  }

  .product-card.product-card--destaque::after {
    display: none;
  }
}

.product-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--totem-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.product-photo--fallback {
  width: 80%;
  height: 80%;
}

.product-details {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 18px;
  row-gap: 4px;
  align-content: start;
}

.product-name {
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2px;
  grid-column: 1 / -1;
}

.product-meta {
  color: var(--totem-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: nowrap;
}

.product-subtotal-line {
  margin-top: 2px;
  color: var(--totem-secondary);
  font-weight: 800;
  font-size: 1.02rem;
  grid-column: 1 / -1;
}

.remove-item-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 42px;
  height: 42px;
  padding: 0;
  line-height: 1;
  border-radius: 0;
  border: 0;
  background: transparent !important;
  color: inherit;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.remove-item-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.remove-item-btn-label {
  display: none;
}

.remove-item-btn:hover {
  background: transparent !important;
  transform: translateY(-50%) scale(1.04);
}

.cart-empty {
  text-align: center;
  padding: 56px 16px;
  color: var(--totem-muted);
}

.cart-empty-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.cart-empty-icon img {
  display: block;
  width: min(180px, 58vw);
  height: auto;
  margin: 0 auto;
}

.cart-empty-title {
  margin: 0 0 4px;
  color: var(--totem-text);
  font-weight: 700;
}

.cart-empty-sub {
  margin: 0;
  font-size: 0.9rem;
}

.totem-footer {
  flex-shrink: 0;
  background: var(--degrade_tera);
  color: #fff;
  box-shadow: 0 -4px 12px rgba(42, 27, 70, 0.15);
}

.totem-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  min-height: 108px;
  padding: 10px 14px;
}

.totem-footer-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.footer-summary-line {
  font-size: 1rem;
  line-height: 1;
  color: #fff;
}

.footer-summary-badge {
  width: 176px;
  min-width: 176px;
  min-height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  text-align: center;
  background: var(--totem-footer-badge-bg) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.totem-footer-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
}

.footer-action-btn {
  min-width: 160px;
  min-height: 96px;
  border: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff !important;
  white-space: nowrap;
  border-radius: 12px !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 6px 14px rgba(15, 23, 42, 0.25);
}

.footer-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.footer-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.footer-action-btn:hover {
  color: #fff !important;
}

.footer-action-btn-cancel {
  background: var(--bs-danger) !important;
}

.footer-action-btn-cancel:hover {
  background: var(--bs-danger-active, #b02a37) !important;
}

.footer-action-btn-home {
  background: var(--degrade_tera) !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 22px;
  min-width: 240px;
}

.footer-action-btn-home:hover {
  filter: brightness(1.12);
}

.footer-action-btn-home .footer-action-icon {
  color: #fff !important;
}

.footer-action-btn-home .footer-action-label {
  color: #fff !important;
  text-align: left;
}

.footer-action-sublabel {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.footer-action-btn-pay {
  background: var(--bs-success) !important;
  min-width: 286px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 18px;
}

.footer-action-btn-pay:hover {
  background: var(--bs-success-active, #157347) !important;
}

.footer-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0;
}

.footer-action-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
}

.footer-action-label {
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.2px;
  line-height: 1.05;
  color: #fff;
  white-space: normal;
  text-align: center;
}

.footer-action-value {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
}

.footer-action-btn-pay .footer-action-label {
  font-size: 1.52rem;
  line-height: 1;
  text-align: left;
}

.footer-summary-line strong,
.footer-action-value {
  font-weight: 900;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  margin-bottom: 22px;
}

.payment-option {
  width: min(360px, 100%);
  border-radius: 14px;
  border: 2px solid var(--totem-border);
  background: #fff;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--bs-primary, #009ef7);
  background: var(--totem-secondary-light);
  box-shadow: 0 0 0 2px rgba(0, 158, 247, 0.25);
  transform: translateY(-1px);
}

.payment-option.selected,
.payment-option.selected:hover,
.payment-option.selected:focus,
.payment-option.selected:focus-visible {
  border: 3px solid var(--bs-primary, #009ef7) !important;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.28) !important;
}

.payment-option .payment-icon {
  min-height: 52px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.payment-option .payment-icon img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
}

.payment-option--credit .payment-icon img,
.payment-option--debit .payment-icon img {
  width: 80px;
  height: 80px;
}

.payment-option--pix .payment-icon img {
  width: 58px;
  height: 58px;
}

.payment-option .payment-label {
  font-weight: 700;
}

.totem-btn-group-payment {
  margin-inline: auto;
}

.totem-card-centered {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.totem-card-centered-cpf-not-found {
  overflow-x: hidden;
}

.totem-card-title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--totem-text);
}

.totem-card-text {
  margin: 0 0 22px;
  color: var(--totem-muted);
  line-height: 1.45;
}

.totem-confirm-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--totem-border);
  box-shadow: 0 8px 24px rgba(42, 27, 70, 0.08);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.totem-confirm-card.totem-confirm-card-pix {
  max-width: 460px;
}

.payment-status-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin: 8px auto 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
}

.payment-status-box .spinner-border {
  width: 1.15rem;
  height: 1.15rem;
  border-width: 0.17em;
}

.payment-status-box.payment-status-box-waiting {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.payment-status-box.payment-status-box-success {
  background: #16a34a;
  color: #fff;
  border: 1px solid #15803d;
}

.payment-status-box.payment-status-box-success i {
  font-size: 1.08rem;
}

.totem-confirm-actions {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}

.pix-qr-box {
  width: min(280px, 82vw);
  margin: 10px auto 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce4ee;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.pix-qr-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.pix-waiting-text {
  margin: 8px 0 4px;
  font-weight: 600;
  color: var(--totem-muted);
}

.confirm-total {
  margin: 18px 0 22px;
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--totem-secondary);
}

.success-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  margin-bottom: 20px;
  animation: successPop 0.45s ease;
}

.success-screen p {
  margin: 0 0 8px;
  font-size: 1.16rem;
}

.success-title {
  font-size: 2.35rem;
  color: #fff;
}

.success-sub {
  opacity: 0.9;
  font-size: 1.2rem;
}

.success-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.success-msg {
  opacity: 0.86;
  margin-bottom: 26px;
  font-size: 1.22rem;
}

.enviar.btn {
  width: min(26.5vw, 116px);
  min-height: 52px;
  height: 52px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: none !important;
  transform: none !important;
}

.success-new-sale-btn.btn,
.success-new-sale-btn.btn-primary {
  width: min(82vw, 360px);
  min-height: 52px;
  height: 52px;
  margin-top: 22px;
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: none !important;
  transform: none !important;

  --bs-btn-color: var(--totem-text);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: var(--totem-text);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  --bs-btn-active-color: var(--totem-text);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-disabled-color: var(--totem-text);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #fff;
}

.success-screen .success-new-sale-btn.btn:hover,
.success-screen .success-new-sale-btn.btn:focus,
.success-screen .success-new-sale-btn.btn:focus-visible,
.success-screen .success-new-sale-btn.btn:active,
.success-screen .success-new-sale-btn.btn.active {
  box-shadow: none !important;
  transform: none !important;
}

.totem-header-logo {
  width: auto;
  height: 74px;
  object-fit: contain;
  max-width: 180px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* .totem-header-logo-client {
  height: 75px;
  max-width: 75px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
} */

.totem-toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1055;
  border-radius: 12px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  animation: toastIn 0.2s ease, toastOut 0.25s ease 1.75s forwards;
  max-width: min(92vw, 540px);
  text-align: center;
}

.totem-toast-success {
  background: var(--totem-success);
}

.totem-toast-danger {
  background: var(--totem-danger);
}

.totem-toast-info {
  background: #2563eb;
}

.totem-content::-webkit-scrollbar {
  width: 6px;
}

.totem-content::-webkit-scrollbar-thumb {
  background: #cbbbe8;
  border-radius: 999px;
}

.screen-fade-enter {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes successPop {
  0% {
    transform: scale(0);
  }

  55% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 991.98px) {
  .totem-app-host {
    min-height: 100vh;
    height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
  }

  .totem-register-layout {
    max-width: 760px;
    gap: 12px;
  }

  .totem-register-step-panel {
    overflow-y: auto;
  }

  .totem-register-keyboard-wrap {
    position: static;
    align-self: auto;
  }

  .totem-footer-bar {
    height: 14px;
  }

  .totem-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 8px 10px;
    gap: 8px;
  }

  .totem-footer-actions {
    display: flex;
    gap: 6px;
  }

  .footer-summary-badge {
    width: 148px;
    min-width: 148px;
    min-height: 30px;
    padding: 0 10px;
  }

  .footer-action-btn {
    min-width: 126px;
    min-height: 62px;
    padding: 8px 10px;
  }

  .footer-action-btn-pay {
    min-width: 210px;
    gap: 8px;
  }

  .footer-action-label {
    font-size: 1.08rem;
  }

  .footer-action-btn-pay .footer-action-label {
    font-size: 1.80rem;
    line-height: 1.2;
  }

  .footer-action-value {
    font-size: 1.6rem;
  }

  .footer-action-icon {
    font-size: 2.2rem;
  }

  .totem-btn-group {
    grid-template-columns: 1fr;
  }

  .totem-toast {
    top: 72px;
  }

  .totem-wizard-actions {
    flex-direction: column;
  }

  .totem-wizard-actions>* {
    width: 100%;
  }

  .totem-wizard-actions.totem-wizard-actions-footer {
    flex-direction: row;
    gap: 8px;
  }

  .totem-wizard-actions.totem-wizard-actions-footer>* {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .totem-wizard-actions.totem-wizard-actions-footer .totem-wizard-nav-btn,
  .totem-wizard-actions.totem-wizard-actions-footer .btn-totem {
    width: 100%;
  }

  .totem-modal-sheet {
    width: min(640px, 100%);
    max-height: 84vh;
  }
}

@media (max-width: 575.98px) {
  .product-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      'image details'
      'remove remove';
    align-items: start;
    gap: 12px;
  }

  .product-img {
    grid-area: image;
  }

  .product-details {
    grid-area: details;
  }

  .remove-item-btn {
    grid-area: remove;
    position: static;
    top: auto;
    right: auto;
    width: calc(100% + 28px);
    height: 40px;
    min-height: 40px;
    margin: 2px -14px -14px;
    border-radius: 0 0 12px 12px;
    background: var(--bs-danger) !important;
    color: #fff !important;
    transform: none;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .remove-item-btn:hover {
    background: var(--totem-danger) !important;
    transform: none;
  }

  .remove-item-btn .text-danger {
    color: #fff !important;
  }

  .remove-item-btn-icon {
    font-size: 0.95rem;
  }

  .remove-item-btn-icon .fa-2xl {
    font-size: 1.1rem;
    line-height: 1;
  }

  .remove-item-btn-label {
    display: inline;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  /* .totem-mobile-scan-btn {
    display: inline-flex !important;
  } */

  .totem-bar-scan-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .totem-modal-auth-scan-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .totem-footer-bar {
    height: 12px;
  }

  .totem-footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    padding: 8px 10px;
    gap: 6px;
  }

  .totem-footer-summary {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: visible;
    white-space: normal;
    padding: 6px 0 2px;
  }

  .totem-footer-summary > .footer-summary-line.footer-summary-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    justify-content: center;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
  }

  .totem-footer-summary > :not(:last-child)::after {
    content: none;
    margin: 0;
  }

  .totem-footer-actions {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .totem-footer-actions > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .footer-action-btn {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .footer-action-btn-pay {
    /* flex: 1.25 1 0; */
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
  }

  .footer-action-btn-cancel {
    /* flex: 0.95 1 0; */
  }

  .footer-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    font-size: 2rem;
  }

  .footer-action-content {
    align-items: flex-start;
    gap: 1px;
  }

  .footer-action-label {
    font-size: 0.9rem;
    line-height: 1;
    white-space: normal;
  }

  .footer-action-btn-pay .footer-action-label {
    font-size: 1.02rem;
  }

  .footer-action-value {
    font-size: 1.05rem;
  }

  .totem-content {
    padding: 14px;
  }

  .totem-header {
    padding: 10px 14px;
  }

  .totem-header.totem-header-accent {
    padding: 14px 16px;
    min-height: 64px;
  }

  .totem-header-title {
    font-size: 0.95rem;
  }

  .totem-header-logo {
    width: auto;
    height: 56px;
    max-width: 140px;
    padding: 0;
  }

  /* .totem-header-logo-client {
    height: 48px;
    max-width: 112px;
    border-radius: 10px;
  } */

  .totem-client-name-bar {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.88rem;
  }

  .totem-people-bar {
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
  }

  .totem-people-bar > .totem-client-bar,
  .totem-people-bar > .totem-seller-bar {
    flex: none;
  }

  .totem-person-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .totem-modal-backdrop {
    padding: 8px;
  }

  .totem-modal-sheet {
    border-radius: 16px;
    transform: translateY(-1.5vh);
  }

  .totem-modal-sheet-footer {
    grid-template-columns: 1fr;
  }

  .totem-modal-remove-auth-confirm-btn {
    order: 1;
  }

  .totem-modal-remove-auth-cancel-btn {
    order: 2;
  }

  .totem-review-item {
    gap: 8px;
  }

  .totem-review-value {
    text-align: left;
  }

  .totem-register-layout {
    height: auto;
    min-height: 100%;
    align-content: start;
    justify-items: stretch;
    gap: 10px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .totem-register-content {
    overflow-y: auto;
    align-items: flex-start;
  }

  .totem-register-step-panel {
    overflow: visible;
    gap: 10px;
  }

  .totem-next-action.totem-next-action-dual {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .totem-next-action .totem-register-enter-btn {
    min-height: 50px;
  }

  .totem-wizard-nav-btn {
    min-height: 42px;
    padding: 8px 12px;
  }

  .virtual-keyboard {
    padding: 8px;
  }

  .keyboard-grid {
    gap: 6px;
  }

  .keyboard-row,
  .keyboard-row-center {
    gap: 6px;
  }

  .key-btn {
    min-height: 50px;
    font-size: 1rem;
    padding: 8px 6px;
  }

  .keyboard-grid-full {
    --alpha-key-size: 32px;
  }

  .keyboard-grid-full .keyboard-row-center {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .keyboard-grid-full .key-btn {
    width: var(--alpha-key-size);
    min-width: var(--alpha-key-size);
    max-width: var(--alpha-key-size);
    min-height: var(--alpha-key-size);
    border: 1px solid var(--bs-gray-300) !important;
    box-shadow: none;
    border-radius: 10px;
    font-size: 0.74rem;
    line-height: 1;
    flex: 0 0 var(--alpha-key-size);
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn {
    min-width: 0;
    max-width: none;
    width: auto;
    min-height: 34px;
    flex: 0.75 1 0;
    font-size: 0.66rem;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-special,
  .keyboard-grid-full .keyboard-row-actions .key-btn.key-wide {
    flex: 0.58 1 0;
    font-size: 0.58rem;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-space {
    flex: 2.7 1 0;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-wide {
    flex: 0.75 1 0;
  }

  .keyboard-grid-full .key-btn i {
    font-size: 0.68rem !important;
  }

  .keyboard-grid-full .key-btn:hover,
  .keyboard-grid-full .key-btn:focus,
  .keyboard-grid-full .key-btn:focus-visible,
  .keyboard-grid-full .key-btn:active {
    border-color: var(--bs-gray-300) !important;
  }

  .totem-step-input {
    min-height: 54px;
    font-size: 1.05rem;
  }

  .totem-wizard-title {
    font-size: 1.28rem;
  }

  .totem-wizard-subtitle {
    font-size: 0.94rem;
  }

  .totem-wizard-title-secondary {
    font-size: 1.02rem;
  }

  .totem-register-content {
    padding: 10px 10px !important;
  }

  .payment-option {
    padding: 14px 12px;
  }

  .payment-option .payment-icon {
    font-size: 1.7rem;
  }

  .payment-option .payment-icon img {
    width: 60px;
    height: 60px;
  }

  .payment-option--credit .payment-icon img,
  .payment-option--debit .payment-icon img {
    width: 70px;
    height: 70px;
  }

  .payment-option--pix .payment-icon img {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 420px) {
  .virtual-keyboard {
    padding: 6px;
  }

  .keyboard-grid {
    gap: 5px;
  }

  .keyboard-row,
  .keyboard-row-center {
    gap: 5px;
  }

  .key-btn {
    min-height: 46px;
    font-size: 0.94rem;
    padding: 6px 5px;
  }

  .keyboard-grid-full {
    --alpha-key-size: 29px;
  }

  .fs-1 {
    font-size: calc(.8rem + .6vw)!important;
  }

  .keyboard-grid-full .keyboard-row-center {
    gap: 2px;
  }

  .keyboard-grid-full .key-btn {
    width: var(--alpha-key-size);
    min-width: var(--alpha-key-size);
    max-width: var(--alpha-key-size);
    min-height: var(--alpha-key-size);
    border-radius: 9px;
    font-size: 0.66rem;
    flex: 0 0 var(--alpha-key-size);
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn {
    min-height: 32px;
    font-size: 0.6rem;
    flex: 0.72 1 0;
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-special,
  .keyboard-grid-full .keyboard-row-actions .key-btn.key-wide {
    flex: 0.55 1 0;
    font-size: 0.54rem;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-space {
    flex: 2.6 1 0;
  }

  .keyboard-grid-full .keyboard-row-actions .key-btn.key-wide {
    flex: 0.72 1 0;
  }

  .keyboard-grid-full .key-btn i {
    font-size: 0.6rem !important;
  }

  .totem-next-action .totem-register-enter-btn {
    min-height: 46px;
  }
}




.border-glow-effect {
  --bw: 2px;
  --speed: 4s;
  --beam-length: 400;
  --beam-thickness: 2px;
  --beam-outset: 1px;
  --halo-blur: 20px;
  --halo-opacity: .65;
  --trail-opacity: .1;
  --flicker-speed: 50s;
  --flicker-min-opacity: 0;

  --c1: var(--azul_software);
  --c2: var(--vermelho_tera);
  --c3: var(--azul_software_dark);
  --c4: var(--vermelho_tera_dark);
  --transparencia: #ffffff00;

  position: relative;
  border: var(--bw) solid rgba(0, 0, 0, .14);
  color: inherit;
  background: inherit;
  isolation: isolate;
  overflow: visible;
}

.border-glow-effect>.border-glow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
  animation: border-glow-visibility var(--flicker-speed) linear infinite;
  will-change: opacity;
}

.border-glow-effect>.border-glow-svg .border-glow-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dashoffset: 0;
  animation: border-glow-effect var(--speed) linear infinite;
  will-change: stroke-dashoffset;
}

.border-glow-effect>.border-glow-svg .border-glow-path-halo {
  stroke-width: calc(var(--beam-thickness) + 6px);
  opacity: var(--halo-opacity);
  filter: blur(var(--halo-blur)) saturate(1.2) brightness(1.06);
}

.border-glow-effect>.border-glow-svg .border-glow-path-main {
  stroke-width: var(--beam-thickness);
  opacity: var(--trail-opacity);
  filter: saturate(1.2) brightness(1.08) drop-shadow(0 0 3px rgb(255 255 255 / 0.22));
}

@keyframes border-glow-effect {
  to {
    stroke-dashoffset: calc(var(--glow-path-length, 0) * -1px);
  }
}

@keyframes border-glow-visibility {

  0%,
  8%,
  24%,
  42%,
  61%,
  80%,
  100% {
    opacity: 1;
  }

  9.2% {
    opacity: .2;
  }

  10.3%,
  17.4% {
    opacity: var(--flicker-min-opacity);
  }

  18.5% {
    opacity: .8;
  }

  19.6% {
    opacity: 1;
  }

  26.1% {
    opacity: .16;
  }

  27.2%,
  35.8% {
    opacity: var(--flicker-min-opacity);
  }

  37.1% {
    opacity: .84;
  }

  38.3% {
    opacity: 1;
  }

  44.3% {
    opacity: .14;
  }

  45.5%,
  55.2% {
    opacity: var(--flicker-min-opacity);
  }

  56.5% {
    opacity: .86;
  }

  57.8% {
    opacity: 1;
  }

  63.5% {
    opacity: .18;
  }

  64.8%,
  75.3% {
    opacity: var(--flicker-min-opacity);
  }

  76.5% {
    opacity: .82;
  }

  77.7% {
    opacity: 1;
  }

  82.8% {
    opacity: .14;
  }

  84.1%,
  95.2% {
    opacity: var(--flicker-min-opacity);
  }

  96.2% {
    opacity: .9;
  }

  97.2% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .border-glow-effect>.border-glow-svg {
    animation: none;
    opacity: 1;
  }

  .border-glow-effect>.border-glow-svg .border-glow-path {
    animation: none;
  }
}

.btn-voltar, .btn-confirm {
  min-width: 0;  
  min-height: 0;
  width: 100px;
}

.action-icon-btn {
  width: 85px;
  height: 85px;
  border-radius: 20%;
  border: none;

  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  color: #ffffffd9;

  transition: transform 0.12s ease, background 0.2s ease;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

.action-icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.28);
}

.action-icon-btn {
  animation: softPop 0.35s ease;
}

@keyframes softPop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  70% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-body.ecommerce-modal-body {
    max-height: calc(100vh - 150px);
    overflow-y: auto; 
}

.glass-toggle {
  --bg: #ecf0f3;

  position: relative;
  display: flex;

  width: 100%;
  height: 85px;

  background: var(--bg);
  border-radius: 1.5rem;

  backdrop-filter: blur(10px);

  overflow: hidden;
}

.glass-toggle input {
  display: none;
}

.glass-toggle label {
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  font-size: 16px;
  font-weight: 600;
  color: #1f2a44;

  cursor: pointer;
  z-index: 2;

  transition: all 0.25s ease;
}

.glass-toggle label i {
  font-size: 26px;
}

.glass-toggle label:active {
  transform: scale(0.96);
}

.glass-toggle input:checked + label {
  color: #fff;
}

.glider {
  position: absolute;
  top: 0;
  left: 0;

  width: 50%;
  height: 100%;

  border-radius: 1.5rem;
  z-index: 1;

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
}

#camera:checked ~ .glider {
  transform: translateX(0%);
  background: linear-gradient(135deg, #08089e, #5957de);
}

#manual:checked ~ .glider {
  transform: translateX(100%);
  background: linear-gradient(135deg, #c00055, #c92b76);
}

.pq-caracteristicas-block {
  margin-top: 8px;
}

.pq-carac-header {
  font-size: 1rem;
  font-weight: 700;
  color: #0d2461;
  line-height: 1.4;
}

.pq-carac-wrapper {
  position: relative;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.pq-carac-wrapper.pq-expanded {
  max-height: 30vh;
  overflow-y: auto;
}

.pq-carac-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pq-carac-wrapper.pq-expanded::after {
  opacity: 0;
}

.pq-carac-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  background: none;
  border: none;
  color: #0d2461;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  padding: 2px 0;
}

.pq-carac-toggle-btn svg {
  transition: transform 0.3s ease;
}

.pq-carac-toggle-btn.pq-expanded svg {
  transform: rotate(180deg);
}

.totem-photo-simple {
  display: flex;
  align-items: center;
  gap: 20px;

  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
}

.tps-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;

  background: #e8eaf6;
  border: 3px dashed #9fa8da;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  cursor: pointer;
  flex-shrink: 0;

  transition: transform .15s, border-color .2s;
}

.tps-avatar:active {
  transform: scale(.96);
  border-color: #0a0566;
}

.tps-icon {
  font-size: 34px;
  color: #9fa8da;
}

.tps-img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;

  display: none;
}

.tps-avatar.has-image .tps-img {
  display: block;
}

.tps-avatar.has-image .tps-icon {
  display: none;
}

.tps-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tps-chip {
  background: #fff8e1;
  color: #f57f17;

  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;

  width: fit-content;
}

.tps-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--totem-text);
}

@media (orientation: landscape) {
  #modalParcelas .h-550px {
    height: calc(100vh - 290px) !important;
    max-height: 550px;
    min-height: 200px;
  }
}