.vm-customer-canvas .vm-redeem-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;

  .vm-redeem-brand {
    display: flex;
    flex: 0 0 80px;
    align-items: center;
    padding: 0 var(--vm-customer-gutter);
    .vm-customer-brand {
      gap: 8px;
    }
    .vm-customer-monogram {
      flex-basis: 36px;
      width: 36px;
      height: 36px;
      font-size: 14px;
      line-height: 20px;
    }
    .vm-customer-brand-name {
      font-size: 16px;
      line-height: 24px;
      color: rgba(36, 28, 63, 0.7);
    }
  }
  .vm-redeem-heading {
    flex-shrink: 0;
    padding: 8px var(--vm-customer-gutter) 16px;
    h1 {
      font-size: 44px;
      line-height: 1.05;
    }
    p {
      max-width: 38ch;
      margin-top: 12px;
      color: rgba(36, 28, 63, 0.7);
      font-size: 20px;
      line-height: 1.375;
    }
  }
  .vm-redeem-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 var(--vm-customer-gutter) var(--vm-bottom-bar-space);
  }
  .vm-redeem-scanner-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid rgba(36, 28, 63, 0.1);
    border-radius: 24px;
    background: #fff;
  }
  .vm-redeem-scanner-symbol {
    position: relative;
    display: flex;
    flex: 0 0 96px;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
  }
  .vm-redeem-pulse {
    position: absolute;
    inset: 0;
    border: 4px solid var(--vm-customer-primary);
    border-radius: 24px;
    pointer-events: none;
    animation: vm-redeem-pulse 1.8s ease-out infinite;
  }
  .vm-redeem-scanner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--vm-customer-soft);
    color: var(--vm-customer-primary);
    font-size: 40px;
  }
  .vm-redeem-scanner-copy {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .vm-redeem-scanner-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
  }
  .vm-redeem-scanner-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: rgba(36, 28, 63, 0.6);
    font-size: 18px;
    line-height: 28px;
    .vm-prototype-icon {
      font-size: 20px;
    }
  }
  .vm-redeem-code {
    margin-top: 32px;
  }
  .vm-redeem-code-label {
    color: rgba(36, 28, 63, 0.7);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
  }
  .vm-redeem-code-field {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 80px;
    margin-top: 16px;
    padding: 0 20px;
    border: 2px solid rgba(36, 28, 63, 0.15);
    border-radius: 16px;
    background: #fff;
    &:focus-within {
      border-color: var(--vm-customer-primary);
    }
    .vm-prototype-icon {
      color: rgba(36, 28, 63, 0.4);
      font-size: 24px;
    }
    input {
      flex: 1;
      width: 100%;
      min-width: 0;
      padding: 0;
      border: 0;
      outline: none;
      background: transparent;
      color: var(--vm-customer-ink);
      font-family: inherit;
      font-size: 30px;
      font-weight: 600;
      line-height: 36px;
      letter-spacing: 0.025em;
      caret-color: var(--vm-customer-primary);
      &::placeholder {
        color: rgba(36, 28, 63, 0.4);
        font-weight: 400;
        letter-spacing: normal;
      }
    }
  }
  .vm-redeem-code-clear {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(36, 28, 63, 0.4);
    font-size: 30px;
    line-height: 1;
  }
  .vm-redeem-code-hint {
    margin-top: 12px;
    color: rgba(36, 28, 63, 0.55);
    font-size: 16px;
    line-height: 1.375;
  }
  &.vm-customer-paused .vm-redeem-pulse {
    animation-play-state: paused;
  }
}

@container vending-customer (max-width: 620px) {
  .vm-customer-canvas .vm-redeem-screen {
    .vm-redeem-heading h1 {
      font-size: 32px;
    }
    .vm-redeem-heading p {
      font-size: 18px;
    }
    .vm-redeem-scanner-card {
      flex-direction: column;
      gap: 16px;
      padding: 20px;
    }
    .vm-redeem-scanner-copy {
      width: 100%;
    }
    .vm-redeem-code-field input {
      font-size: 22px;
    }
  }
}

@keyframes vm-redeem-pulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vm-customer-canvas .vm-redeem-screen .vm-redeem-pulse {
    animation: none;
    opacity: 0.25;
  }
}
