.pi-payment-adyen-scan-container {
  .pisell-lowcode-floating-layer-body {
    padding: 0;
  }
  .adyen-scan-dialog {
    height: 646px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    --wallet-color: #099b54;
    background: #fff;
    color: #101828;
    border-radius: 16px;
    overflow: hidden;
  }
  .adyen-scan-alipay {
    --wallet-color: #1677ff;
  }
  .adyen-scan-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid #eaecf0;

    h1 {
      font-size: 18px;
    }

    p {
      margin: 0;
      font-size: 12px;
    }
  }
  .adyen-scan-wallet-icon {
    display: flex;
    color: var(--wallet-color);
    font-size: 40px;
  }
  h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
  }
  p {
    margin: 6px 0 0;
    color: #667085;
    font-size: 14px;
  }
  .adyen-scan-close {
    margin-left: auto;
    flex-shrink: 0;
  }
  .adyen-scan-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 24px;
  }
  .adyen-scan-amount {
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
  }
  .adyen-scan-qr {
    position: relative;
    display: inline-flex;
    border: 1px solid #eaecf0;
    border-radius: 16px;
    background: #fff;
  }
  .adyen-scan-qr-expired .adyen-scan-qr-code {
    filter: grayscale(1);
    opacity: 0.18;
  }
  .adyen-scan-qr-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    color: #999;
    font-size: 16px;
    text-align: center;
    strong {
      font-weight: 500;
    }
  }
  .adyen-scan-expired-icon {
    font-size: 28px;
  }
  .adyen-scan-instruction {
    margin-top: 20px;
    text-align: center;
  }
  .adyen-scan-dialog[data-state='expired'] .adyen-scan-instruction {
    color: #999;
  }
  .adyen-scan-countdown {
    display: flex;
    align-items: center;
    color: #bbbbbb;
    min-height: 22px;
    margin-top: 8px;
    font-size: 14px;
  }
  .adyen-scan-result {
    width: 100%;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
  }
  .adyen-scan-loading {
    min-height: 0;
  }
  .adyen-scan-result-icon {
    font-size: 68px;
    margin-bottom: 20px;
  }
  .adyen-scan-success {
    color: #52c41a;
  }
  .adyen-scan-success-amount {
    margin: 16px 0 0;
    color: #389e0d;
  }
  .adyen-scan-failure {
    color: #ff4d4f;
  }
  .adyen-scan-warning {
    color: #faad14;
  }
  h2 {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
  }
  .adyen-scan-result p {
    max-width: 380px;
    margin-top: 12px;
  }
  .adyen-scan-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-top: 1px solid #eaecf0;
  }
  .adyen-scan-footer .adyen-scan-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 44px;
    min-width: 112px;
    border-radius: 8px;
    font-weight: 500;
    white-space: normal;
    .ant-btn-icon {
      flex-shrink: 0;
    }
    > span:not(.ant-btn-icon) {
      min-width: 0;
      overflow-wrap: anywhere;
    }
  }
  .adyen-scan-footer .adyen-scan-button-primary {
    background: #7f56d9;
    border-color: #7f56d9;
  }
  .adyen-scan-footer .adyen-scan-button-primary:disabled {
    background: #f2f4f7;
    border-color: #eaecf0;
  }
  .adyen-scan-footer-end {
    margin-left: auto;
    flex-shrink: 0;
  }
  .adyen-scan-footer .adyen-scan-button-complete {
    color: #52c41a;
    background: #f6ffed;
    border-color: #b7eb8f;
    &:hover,
    &:focus-visible {
      color: #389e0d;
      background: #f6ffed;
      border-color: #73d13d;
    }
  }
  .adyen-scan-waiting {
    color: #667085;
    font-size: 14px;
  }
  .adyen-scan-action-content,
  .adyen-scan-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .adyen-scan-device-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .adyen-scan-device-hint {
    flex-shrink: 0;
    color: #667085;
    font-size: 14px;
  }
  .adyen-scan-device-list {
    min-height: 0;
    overflow-y: auto;
    margin-top: 10px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .adyen-scan-device {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 100%;
    gap: 16px;
    padding: 16px;
    border: 1px solid #cccccc;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    color: inherit;
    cursor: pointer;
    font: inherit;
    &:not([aria-disabled='true']):hover,
    &:not([aria-disabled='true']):focus-visible {
      border-color: var(--pi-payment-device-hover-border);
      background: #f9fafb;
    }
    &[aria-disabled='true'] {
      opacity: 0.5;
      cursor: default;
    }
  }

  .adyen-scan-device-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .adyen-scan-device-details strong {
    font-size: 16px;
    font-weight: 600;
  }
  .adyen-scan-device-meta {
    color: #667085;
    font-size: 13px;
    line-height: 20px;
  }
  .adyen-scan-device-total {
    font-size: 20px;
    font-weight: 600;
  }
  .adyen-scan-device-chevron {
    margin-left: auto;
    color: #98a2b3;
  }
  .adyen-scan-amount-content {
    padding: 0;
    display: flex;
    text-align: left;
  }
  .adyen-scan-amount-editor {
    flex: 1;
    min-height: 0;
  }
  .adyen-scan-amount-editor .pi-payment-amount-page {
    height: 100%;
    min-height: 0;
  }
  .adyen-scan-amount-editor .pi-payment-amount-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px;
  }
  .adyen-scan-amount-editor .pi-payment-result-actions {
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
    padding: 20px 28px;
    border-top: 1px solid #eaecf0;
  }
  @media (max-width: 480px) {
    .adyen-scan-header,
    .adyen-scan-content,
    .adyen-scan-footer {
      padding: 20px 16px;
    }
    h1 {
      font-size: 20px;
    }
    .adyen-scan-amount {
      font-size: 30px;
    }
  }
}
