/* Layout and neutral palette from Pisell_Purchase_Rewards_Multiple_Wallets_EN.html. */
.pisell-purchase-rewards {
  color-scheme: light;
  --bg: #f7f7f8;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #60636a;
  --line: #e1e2e5;
  --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  --theme: var(--theme-color, var(--lm-shop-theme-color, #ee837a));
  font-size: 20px;
  min-height: 100vh;
  min-width: 0;

  /* Merchant theme is configured through --theme. All other colors are neutral. */
  * {
    box-sizing: border-box;
  }
  button,
  input,
  select,
  textarea {
    font: inherit;
  }
  button {
    cursor: pointer;
    max-width: 100%;
    touch-action: manipulation;
  }
  button:disabled {
    cursor: not-allowed;
  }
  button,
  input,
  select,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  a:focus-visible {
    outline: 3px solid #bdbdbd;
    outline-offset: 3px;
  }
  svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex: none;
  }
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  h1,
  h2,
  h3 {
    line-height: 1.45;
    letter-spacing: -0.025em;
    font-weight: 650;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 19px;
  }
  p {
    line-height: 1.85;
  }
  p + p {
    margin-top: 12px;
  }
  strong {
    font-weight: 600;
  }
  small {
    font-size: 16px;
  }
  fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
  }
  a {
    color: var(--theme-ink, var(--theme));
    text-underline-offset: 3px;
  }
  [hidden] {
    display: none !important;
  }
  .hint,
  .subtitle {
    color: var(--muted);
  }
  .hint {
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  .subtitle {
    font-size: 18px;
    line-height: 1.85;
  }
  .divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
  }
  .sr-only {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
  }

  .header-inner,
  .page-shell {
    width: calc(100% - 64px);
    max-width: 1180px;
    margin: auto;
  }
  .site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 87px;
    padding: 17px 0;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    text-align: left;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    height: 43px;
    width: 43px;
    flex: none;
    border-radius: 12px;
    background: var(--theme);
    color: #ffffff;
    box-shadow: 0 3px 8px #0000001a;
  }
  .brand-mark svg {
    width: 23px;
    height: 23px;
  }
  .brand-copy {
    display: block;
    min-width: 0;
  }
  .brand-copy strong {
    display: block;
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -0.3px;
  }
  .brand-copy > span {
    display: block;
    color: #767676;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 3px;
  }
  .header-actions {
    display: flex;
    align-items: center;
    flex: none;
  }
  .lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f7f7f7;
  }
  .lang-switch .btn {
    min-height: 44px;
    padding: 7px 10px;
    font-size: 15px;
    font-weight: 500;
    color: #767676;
    background: none;
    border: 0;
    border-radius: 5px;
    box-shadow: none;
  }
  .lang-switch .is-active {
    background: #ffffff;
    color: #606060;
    box-shadow: 0 1px 5px #0000000c;
  }

  .page-shell {
    padding: 26px 0 54px;
  }
  .initial-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 260px;
    padding: 24px;
    color: var(--muted);
    overflow-wrap: anywhere;
  }
  .loading-indicator {
    flex: none;
    width: 24px;
    height: 24px;
    border: 3px solid var(--line);
    border-top-color: var(--theme);
    border-radius: 50%;
    animation: purchase-rewards-loading 0.8s linear infinite;
  }
  @keyframes purchase-rewards-loading {
    to {
      transform: rotate(360deg);
    }
  }
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    color: #767676;
    font-size: 15px;
  }
  .breadcrumb .btn {
    min-height: 44px;
    padding: 0 5px 0 0;
    border: 0;
    background: none;
    color: #767676;
    font-size: 15px;
    font-weight: 450;
  }
  .page-heading {
    margin-bottom: 25px;
    max-width: 860px;
  }
  .eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #767676;
  }
  .page-heading h1 {
    margin-bottom: 10px;
  }
  .page-heading .subtitle {
    max-width: 820px;
  }
  .workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
    min-width: 0;
  }
  .main-column,
  .side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
  }
  .side-column {
    position: sticky;
    top: 24px;
  }
  .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 5px 22px #00000005;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .panel-header {
    padding: 25px 30px 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .panel-header > svg {
    color: #767676;
    width: 20px;
    height: 20px;
    margin-top: 3px;
  }
  .panel-header h2 {
    font-size: 23px;
    flex: 1;
    min-width: 0;
  }
  .panel-body {
    padding: 0 30px 29px;
    min-width: 0;
  }
  .panel-body:first-child {
    padding-top: 30px;
  }
  .panel-body > p {
    font-size: 17px;
    color: var(--muted);
  }
  .side-column .panel-header {
    padding: 24px 24px 18px;
  }
  .side-column .panel-header h2 {
    font-size: 20px;
  }
  .side-column .panel-body {
    padding: 0 24px 25px;
  }
  .side-column .panel-body:first-child {
    padding-top: 25px;
  }
  .side-column .panel-body > p {
    font-size: 16px;
  }
  .single-column-layout {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .single-column-layout > .notice {
    margin: 0;
  }
  .single-column-layout .page-heading {
    margin-bottom: 4px;
  }
  .single-column-layout .panel-body:first-child {
    padding-top: 34px;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 11px 18px;
    line-height: 1.55;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #ffffff;
    color: #767676;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
  }
  .btn:hover {
    background: #f7f7f7;
    border-color: #cecece;
  }
  .btn:active {
    transform: translateY(1px);
  }
  .btn > svg {
    width: 17px;
    height: 17px;
  }
  .btn-primary {
    background: var(--theme);
    color: #ffffff;
    border-color: var(--theme-ink, var(--theme));
    box-shadow: 0 3px 8px #00000015;
  }
  .btn-primary:hover {
    background: var(--theme);
    border-color: var(--theme-ink, var(--theme));
  }
  .btn-primary:disabled {
    background: #bdbdbd;
    color: #ffffff;
    border-color: #bdbdbd;
    box-shadow: none;
    opacity: 1;
  }
  .btn-secondary {
    color: #767676;
    border-color: #cecece;
  }
  .btn-ghost {
    background: transparent;
    border-color: transparent;
    color: #767676;
    box-shadow: none;
    font-weight: 500;
  }
  .btn-ghost:hover {
    background: #f1f1f1;
    border-color: transparent;
  }
  .btn-block {
    width: 100%;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-bottom: 20px;
  }
  .field-label {
    font-size: 16px;
    font-weight: 600;
    color: #606060;
  }
  .input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 46px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 11px 13px;
    color: #454545;
    font-size: 18px;
    line-height: 1.5;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .input::placeholder {
    color: #767676;
    font-size: 16px;
  }
  .input:focus {
    outline: none;
    border-color: #9b9b9b;
    box-shadow: 0 0 0 3px #e8e8e8;
  }
  .input[aria-invalid='true'] {
    border-color: #acacac;
    background: #ffffff;
  }
  .field-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    flex-wrap: wrap;
  }
  .field-row > .input {
    flex: 1 1 160px;
  }
  .field-row > .btn {
    flex: 0 1 auto;
    font-size: 16px;
    padding: 10px 15px;
  }
  .auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #e8e8e8;
    background: #f7f7f7;
    border-radius: 9px;
    margin-bottom: 23px;
  }
  .auth-tabs .btn {
    flex: 1;
    min-height: 44px;
    border: 0;
    font-size: 16px;
    color: #767676;
    background: none;
    box-shadow: none;
  }
  .auth-tabs .is-active {
    background: #ffffff;
    color: #767676;
    box-shadow: 0 1px 5px #00000008;
  }
  .auth-form > .hint {
    margin: -7px 0 17px;
  }
  .inline-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 16px;
    line-height: 1.8;
    color: #767676;
    overflow-wrap: anywhere;
    margin: 0 0 15px;
  }
  .inline-error svg {
    height: 15px;
    width: 15px;
    margin-top: 3px;
  }
  .check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-size: 16px;
    line-height: 1.9;
    color: #767676;
    min-width: 0;
  }
  .check-row input {
    width: 17px;
    height: 17px;
    flex: none;
    margin: 4px 0 0;
    accent-color: var(--theme);
  }
  .check-row > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .inline-link {
    display: inline;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #767676;
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-align: left;
  }
  .auth-context {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 15px 16px;
    border: 1px solid #e8e8e8;
    background: #f7f7f7;
    border-radius: 9px;
    margin-top: 22px;
  }
  .auth-context > svg {
    color: #767676;
    width: 17px;
    height: 17px;
    margin-top: 3px;
  }
  .auth-context p {
    font-size: 15px;
    color: #767676;
    line-height: 1.85;
  }
  .saved-invoice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 17px;
  }
  .saved-invoice svg {
    color: #767676;
    width: 25px;
    height: 25px;
    margin-bottom: 7px;
  }
  .saved-invoice strong {
    font-size: 17px;
    color: #767676;
  }
  .saved-invoice > span {
    font-size: 15px;
    color: #767676;
    overflow-wrap: anywhere;
  }

  .entry-intro {
    padding: 4px 0 2px;
  }
  .entry-symbol {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    border-radius: 13px;
    background: #f1f1f1;
    color: #767676;
    margin-bottom: 22px;
  }
  .entry-symbol svg {
    width: 25px;
    height: 25px;
  }
  .entry-intro h2 {
    font-size: 27px;
    margin-bottom: 13px;
  }
  .entry-intro p {
    font-size: 17px;
    color: #767676;
    line-height: 1.9;
    max-width: 620px;
  }
  .entry-intro > .btn {
    margin-top: 25px;
  }
  .guide-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .guide-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    min-width: 0;
  }
  .guide-item .step-number {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    flex: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #767676;
    font-size: 14px;
    margin-top: 1px;
  }
  .guide-item > div {
    min-width: 0;
  }
  .guide-item strong {
    display: block;
    font-size: 16px;
    color: #767676;
    margin-bottom: 5px;
  }
  .guide-item p {
    font-size: 15px;
    line-height: 1.85;
    color: #767676;
  }
  .notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #e1e1e1;
    background: #f7f7f7;
    border-radius: 9px;
    color: #767676;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }
  .notice > svg {
    width: 17px;
    height: 17px;
    margin-top: 3px;
  }
  .notice > div {
    min-width: 0;
  }
  .notice:last-child {
    margin-bottom: 0;
  }
  .notice-warning {
    border-color: #e1e1e1;
    background: #f7f7f7;
    color: #767676;
  }
  .guidance-panel .notice {
    margin-top: 24px;
    padding: 12px 13px;
    font-size: 15px;
  }

  .account-card {
    display: flex;
    align-items: center;
    gap: 13px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
  }
  .avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #767676;
    font-size: 18px;
    font-weight: 600;
  }
  .account-meta {
    flex: 1;
    min-width: 0;
  }
  .account-meta strong {
    display: block;
    font-size: 17px;
    color: #767676;
    overflow-wrap: anywhere;
  }
  .account-meta > span {
    display: block;
    font-size: 15px;
    color: #767676;
    line-height: 1.8;
    margin-top: 3px;
    overflow-wrap: anywhere;
  }
  .account-card > .btn {
    flex: none;
    min-height: 44px;
    font-size: 15px;
    padding: 7px 9px;
  }
  // Keep long action labels in the right column, including at narrow breakpoints.
  .account-card.account-card-switchable {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) fit-content(35%);

    > .btn {
      width: auto;
      min-width: 44px;
      margin-top: 0;
    }
  }
  .account-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    font-size: 14px;
    color: #767676;
  }
  .account-verified svg {
    width: 13px;
    height: 13px;
  }
  .review-panel .account-card {
    margin-top: 17px;
  }
  .consent-reminder {
    margin: -4px 0 15px;
    color: #767676;
  }
  .final-action-hint {
    margin-top: 12px !important;
    text-align: center;
    font-size: 15px !important;
    color: #767676 !important;
  }
  .receipt-summary {
    font-size: 16px;
  }
  .receipt-merchant {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e8e8e8;
  }
  .receipt-merchant > svg {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: #767676;
  }
  .receipt-merchant > div {
    min-width: 0;
  }
  .receipt-merchant strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
    color: #767676;
  }
  .receipt-merchant span {
    display: block;
    font-size: 14px;
    margin-top: 4px;
    color: #767676;
    overflow-wrap: anywhere;
  }
  .summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    min-width: 0;
    line-height: 1.8;
    font-size: 16px;
  }
  .summary-row > span {
    flex: 1;
    min-width: 0;
    color: #767676;
  }
  .summary-row > strong {
    min-width: 0;
    max-width: 62%;
    text-align: right;
    font-weight: 500;
    color: #767676;
    overflow-wrap: anywhere;
  }
  .paid-amount-hint {
    margin: -4px 0 8px;
    text-align: right;
  }
  .receipt-panel .panel-body > .hint {
    margin-top: 17px;
    font-size: 15px;
    color: #767676;
  }

  .result-panel .panel-body:first-child {
    padding: 34px 36px 32px;
  }
  .result-heading {
    text-align: center;
    margin: 3px 0 25px;
  }
  .result-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 4px auto 24px;
    background: #f1f1f1;
    color: #767676;
    box-shadow: 0 0 0 8px #f7f7f7;
  }
  .result-icon svg {
    width: 30px;
    height: 30px;
  }
  .result-icon.is-warning {
    background: #f7f7f7;
    color: #767676;
    box-shadow: 0 0 0 8px #f7f7f7;
  }
  .result-icon.is-processing {
    background: #f1f1f1;
    color: #767676;
    box-shadow: 0 0 0 8px #f7f7f7;
  }
  .result-heading > .eyebrow {
    margin-bottom: 8px;
  }
  .result-heading h1 {
    font-size: 31px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 620px;
  }
  .result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }
  .result-actions > .btn {
    width: 100%;
  }
  .processing-state {
    text-align: center;
    padding: 7px 0 0;
  }
  .processing-state > h1 {
    font-size: 30px;
    margin-bottom: 14px;
    line-height: 1.5;
  }
  .processing-state > .subtitle {
    font-size: 17px;
    max-width: 560px;
    margin: auto;
  }
  .processing-state > .hint {
    margin-top: 14px;
  }
  .error-workspace {
    padding-top: 2px;
  }
  .error-card {
    text-align: center;
  }
  .error-card .panel-body:first-child {
    padding: 33px 30px 31px;
  }
  .error-card h1 {
    font-size: 31px;
    line-height: 1.5;
    margin: 0 auto 14px;
    max-width: 600px;
  }
  .error-card .subtitle {
    max-width: 570px;
    margin: auto;
    font-size: 17px;
    line-height: 1.9;
  }
  .error-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 26px;
  }
  .error-actions > .btn {
    width: 100%;
  }

  .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: #00000066;
    backdrop-filter: blur(3px);
    padding: 24px;
    overflow: auto;
  }
  .modal {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 16px;
    box-shadow: 0 24px 90px #00000029;
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 48px);
    min-width: 0;
    overflow: auto;
    overflow-wrap: anywhere;
  }
  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 27px 18px;
  }
  .modal-header h2 {
    font-size: 24px;
    padding-top: 7px;
  }
  .modal-header .icon-button {
    border: 0;
    border-radius: 7px;
    background: #f7f7f7;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    color: #767676;
    flex: none;
  }
  .modal-body {
    padding: 0 27px 25px;
    color: #767676;
    font-size: 17px;
    line-height: 1.9;
  }
  .modal-body p {
    font-size: 16px;
  }
  .modal-body .account-card {
    margin-top: 20px;
  }
  .modal-footer {
    padding: 19px 27px 24px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    flex: 0 1 auto;
  }
  .toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #454545;
    color: #ffffff;
    padding: 13px 20px;
    border-radius: 9px;
    box-shadow: 0 8px 30px #00000025;
    max-width: ~'min(90vw, 560px)';
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  .toast > svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }
  .toast > span {
    min-width: 0;
  }

  @media (max-width: 1100px) {
    .header-inner,
    .page-shell {
      width: calc(100% - 48px);
    }
    .workspace {
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 20px;
    }
    .panel-header {
      padding: 24px 25px 19px;
    }
    .panel-body {
      padding: 0 25px 26px;
    }
    .panel-body:first-child {
      padding-top: 26px;
    }
    .side-column .panel-header {
      padding: 23px 22px 17px;
    }
    .side-column .panel-body {
      padding: 0 22px 24px;
    }
  }
  @media (max-width: 900px) {
    .header-inner,
    .page-shell {
      width: calc(100% - 40px);
    }
    .workspace {
      grid-template-columns: minmax(0, 1fr) 285px;
      gap: 18px;
    }
    .panel-header {
      padding: 23px 22px 18px;
    }
    .panel-body {
      padding: 0 22px 24px;
    }
    .panel-body:first-child {
      padding-top: 24px;
    }
    .side-column .panel-header {
      padding: 22px 19px 16px;
    }
    .side-column .panel-body {
      padding: 0 19px 23px;
    }
    .account-card {
      padding: 15px 14px;
      gap: 10px;
      flex-wrap: wrap;
    }
    .account-card > .btn {
      flex-basis: 100%;
      width: 100%;
    }
    .account-meta {
      flex-basis: calc(100% - 52px);
    }
    .account-verified {
      margin-left: 52px;
    }
    .page-heading h1 {
      font-size: 32px;
    }
  }
  @media (max-width: 760px) {
    .workspace {
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
    }
    .main-column,
    .side-column {
      gap: 18px;
    }
    .side-column {
      position: static;
    }
    .review-workspace .side-column {
      order: -1;
    }
    .review-workspace .main-column {
      order: 0;
    }
    .header-inner {
      min-height: 80px;
      padding: 15px 0;
    }
    .page-shell {
      padding-top: 22px;
      padding-bottom: 38px;
    }
    .page-heading {
      margin-bottom: 23px;
    }
    .page-heading h1 {
      font-size: 31px;
    }
    .subtitle {
      font-size: 17px;
    }
    .panel-header,
    .side-column .panel-header {
      padding: 24px 24px 18px;
    }
    .panel-header h2 {
      font-size: 23px;
    }
    .side-column .panel-header h2 {
      font-size: 21px;
    }
    .panel-body,
    .side-column .panel-body {
      padding: 0 24px 25px;
    }
    .panel-body:first-child,
    .side-column .panel-body:first-child {
      padding-top: 26px;
    }
    .account-card {
      flex-wrap: nowrap;
      padding: 16px;
    }
    .account-meta {
      flex-basis: auto;
    }
    .account-card > .btn {
      width: auto;
      flex-basis: auto;
    }
    .account-verified {
      margin-left: 0;
    }
    .single-column-layout {
      gap: 16px;
    }
    .result-panel .panel-body:first-child {
      padding: 32px;
    }
    .modal-backdrop {
      padding: 18px;
    }
    .modal {
      max-height: calc(100dvh - 36px);
    }
  }
  @media (max-width: 520px) {
    .header-inner,
    .page-shell {
      width: calc(100% - 32px);
    }
    .header-inner {
      gap: 12px;
      padding: 15px 0;
      min-height: 77px;
    }
    .brand {
      gap: 10px;
      flex: 1;
      min-width: 0;
    }
    .brand-mark {
      width: 36px;
      height: 36px;
      border-radius: 10px;
    }
    .brand-mark svg {
      width: 21px;
      height: 21px;
    }
    .brand-copy strong {
      font-size: 18px;
      line-height: 1.5;
    }
    .brand-copy > span {
      font-size: 13px;
      line-height: 1.6;
      max-width: 170px;
      margin-top: 2px;
    }
    .lang-switch {
      padding: 2px;
      gap: 1px;
      border-radius: 7px;
    }
    .lang-switch .btn {
      font-size: 14px;
      min-height: 44px;
      padding: 6px 7px;
    }
    .header-actions {
      flex: none;
    }
    .page-shell {
      padding-top: 18px;
      padding-bottom: 30px;
    }
    .breadcrumb {
      margin-bottom: 13px;
      font-size: 14px;
      gap: 7px;
    }
    .breadcrumb .btn {
      font-size: 14px;
    }
    .page-heading {
      margin-bottom: 21px;
    }
    .eyebrow {
      font-size: 13px;
      letter-spacing: 1.3px;
      margin-bottom: 8px;
    }
    .page-heading h1 {
      font-size: 29px;
      line-height: 1.45;
      margin-bottom: 10px;
    }
    .subtitle {
      font-size: 16px;
      line-height: 1.9;
    }
    .workspace {
      gap: 17px;
    }
    .panel {
      border-radius: 12px;
    }
    .panel-header,
    .side-column .panel-header {
      padding: 22px 21px 17px;
      gap: 9px;
    }
    .panel-header h2 {
      font-size: 22px;
    }
    .side-column .panel-header h2 {
      font-size: 20px;
    }
    .panel-header > svg {
      height: 19px;
      width: 19px;
      margin-top: 3px;
    }
    .panel-body,
    .side-column .panel-body {
      padding: 0 21px 23px;
    }
    .panel-body:first-child,
    .side-column .panel-body:first-child {
      padding-top: 24px;
    }
    .panel-body > p {
      font-size: 16px;
    }
    .btn {
      min-height: 46px;
      font-size: 16px;
      padding: 11px 15px;
    }
    .btn-block {
      min-height: 47px;
    }
    .field {
      margin-bottom: 19px;
      gap: 8px;
    }
    .field-label {
      font-size: 16px;
    }
    .input {
      min-height: 46px;
      font-size: 20px;
      padding: 11px 12px;
    }
    .input::placeholder {
      font-size: 15px;
    }
    .field-row {
      gap: 8px;
    }
    .field-row > .input {
      flex-basis: 125px;
    }
    .field-row > .btn {
      font-size: 15px;
      padding: 10px 12px;
    }
    .hint {
      font-size: 14px;
    }
    .auth-tabs {
      margin-bottom: 21px;
    }
    .auth-tabs .btn {
      font-size: 15px;
      padding: 9px 10px;
    }
    .check-row {
      font-size: 15px;
      line-height: 1.9;
      gap: 9px;
    }
    .check-row input {
      width: 16px;
      height: 16px;
      margin-top: 4px;
    }
    .inline-error {
      font-size: 15px;
    }
    .auth-context {
      padding: 13px 14px;
      gap: 8px;
      margin-top: 20px;
    }
    .auth-context p {
      font-size: 14px;
    }
    .entry-symbol {
      height: 45px;
      width: 45px;
      border-radius: 12px;
      margin-bottom: 19px;
    }
    .entry-symbol svg {
      width: 23px;
      height: 23px;
    }
    .entry-intro h2 {
      font-size: 25px;
      line-height: 1.5;
      margin-bottom: 12px;
    }
    .entry-intro p {
      font-size: 16px;
    }
    .entry-intro > .btn {
      margin-top: 23px;
    }
    .guide-list {
      gap: 18px;
    }
    .guide-item {
      gap: 11px;
    }
    .guide-item strong {
      font-size: 16px;
    }
    .guide-item p {
      font-size: 15px;
    }
    .notice {
      font-size: 15px;
      padding: 13px 14px;
      gap: 8px;
      border-radius: 8px;
    }
    .notice > svg {
      height: 16px;
      width: 16px;
      margin-top: 3px;
    }
    .guidance-panel .notice {
      font-size: 14px;
    }
    .account-card {
      padding: 14px 13px;
      gap: 10px;
      flex-wrap: wrap;
    }
    .avatar {
      height: 36px;
      width: 36px;
      font-size: 16px;
    }
    .account-meta {
      flex-basis: calc(100% - 46px);
    }
    .account-meta strong {
      font-size: 16px;
    }
    .account-meta > span {
      font-size: 14px;
    }
    .account-card > .btn {
      width: 100%;
      flex-basis: 100%;
      font-size: 15px;
      margin-top: 3px;
    }
    .account-verified {
      margin-left: 46px;
      font-size: 13px;
    }
    .divider {
      margin: 20px 0;
    }
    .final-action-hint {
      font-size: 14px !important;
    }
    .receipt-merchant strong {
      font-size: 16px;
    }
    .receipt-merchant span {
      font-size: 14px;
    }
    .summary-row {
      font-size: 15px;
      gap: 13px;
      padding: 7px 0;
    }
    .receipt-panel .panel-body > .hint {
      font-size: 14px;
    }
    .result-panel .panel-body:first-child {
      padding: 28px 21px 25px;
    }
    .result-heading {
      margin-bottom: 22px;
    }
    .result-icon {
      height: 58px;
      width: 58px;
      margin-bottom: 22px;
    }
    .result-icon svg {
      height: 27px;
      width: 27px;
    }
    .result-heading h1 {
      font-size: 27px;
      line-height: 1.5;
    }
    .result-actions {
      margin-top: 20px;
      gap: 9px;
    }
    .single-column-layout .panel-body:first-child {
      padding-top: 27px;
    }
    .processing-state > h1 {
      font-size: 27px;
    }
    .processing-state > .subtitle {
      font-size: 16px;
    }
    .processing-state > .hint {
      margin-top: 13px;
    }
    .error-card .panel-body:first-child {
      padding: 29px 21px 25px;
    }
    .error-card h1 {
      font-size: 28px;
      margin-bottom: 13px;
    }
    .error-card .subtitle {
      font-size: 16px;
      line-height: 1.9;
    }
    .error-actions {
      margin-top: 23px;
      gap: 9px;
    }
    .modal-backdrop {
      padding: 12px;
    }
    .modal {
      max-height: calc(100dvh - 24px);
      border-radius: 13px;
    }
    .modal-header {
      padding: 18px 20px 15px;
      gap: 12px;
    }
    .modal-header h2 {
      font-size: 22px;
      padding-top: 8px;
    }
    .modal-body {
      padding: 0 20px 22px;
    }
    .modal-body p {
      font-size: 15px;
    }
    .modal-footer {
      padding: 16px 20px 20px;
      gap: 9px;
    }
    .modal-footer .btn {
      flex: 1 1 100%;
    }
    .toast {
      bottom: 17px;
      font-size: 15px;
      padding: 12px 16px;
      max-width: calc(100vw - 32px);
    }
  }
  @media (max-width: 370px) {
    .header-inner,
    .page-shell {
      width: calc(100% - 28px);
    }
    .brand {
      gap: 8px;
    }
    .brand-mark {
      width: 33px;
      height: 33px;
    }
    .brand-copy strong {
      font-size: 17px;
    }
    .brand-copy > span {
      max-width: 145px;
      font-size: 12px;
    }
    .lang-switch .btn {
      font-size: 13px;
      padding: 6px;
    }
    .panel-header,
    .side-column .panel-header {
      padding-left: 18px;
      padding-right: 18px;
    }
    .panel-body,
    .side-column .panel-body {
      padding-left: 18px;
      padding-right: 18px;
    }
    .field-row > .input {
      flex-basis: 100%;
    }
    .field-row > .btn {
      width: 100%;
      flex-basis: 100%;
    }
    .page-heading h1 {
      font-size: 28px;
    }
    .result-panel .panel-body:first-child,
    .error-card .panel-body:first-child {
      padding-left: 18px;
      padding-right: 18px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
      scroll-behavior: auto !important;
    }
  }
  @media print {
    .site-header,
    .breadcrumb,
    .modal-backdrop,
    .toast {
      display: none !important;
    }
    .page-shell {
      width: 100%;
      max-width: none;
      padding: 0;
    }
    .workspace,
    .single-column-layout {
      display: block;
      max-width: none;
    }
    .panel {
      box-shadow: none;
      break-inside: avoid;
    }
    .side-column {
      position: static;
      margin-top: 20px;
    }
    .btn {
      display: none !important;
    }
  }

  /* One merchant accent; status remains neutral in every screen and dialog. */
  a,
  .inline-link,
  .btn-secondary,
  .btn-ghost,
  .lang-switch .is-active,
  .auth-tabs .is-active {
    color: var(--theme-ink, var(--theme));
  }
  .account-card > .btn-ghost {
    color: var(--theme);
  }
  .brand-mark,
  .btn-primary {
    background: var(--theme);
    border-color: var(--theme-ink, var(--theme));
    color: #fff;
  }
  .btn-primary:hover {
    background: var(--theme);
    border-color: var(--theme-ink, var(--theme));
    box-shadow: 0 4px 12px #0000001a;
  }
  .btn-primary:disabled {
    background: #d0d1d4;
    border-color: #d0d1d4;
    color: #fff;
    box-shadow: none;
  }
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  a:focus-visible {
    outline-color: var(--theme-ink, var(--theme));
  }
  .input:focus {
    border-color: var(--theme-ink, var(--theme));
    box-shadow: 0 0 0 2px #e8e8e8;
  }
  .check-row input {
    accent-color: var(--theme);
  }
  .notice,
  .notice-warning,
  .inline-error,
  .result-icon,
  .result-icon.is-warning,
  .result-icon.is-processing,
  .account-verified {
    color: #60636a;
  }
  .notice,
  .notice-warning {
    background: #f7f7f8;
    border-color: #e1e2e5;
  }
  .result-icon,
  .result-icon.is-warning,
  .result-icon.is-processing {
    background: #f1f1f2;
    box-shadow: 0 0 0 8px #f7f7f8;
  }
  .wallet-reward-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .wallet-reward-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    border: 1px solid #e1e2e5;
    border-radius: 10px;
    background: #fff;
    min-width: 0;
    text-align: left;
  }
  .wallet-reward-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e8e8e8;
    background: #f7f7f8;
    border-radius: 9px;
    flex: none;
    color: #60636a;
  }
  .wallet-reward-icon svg {
    width: 21px;
    height: 21px;
  }
  .wallet-reward-main {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .wallet-reward-caption {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    color: #76797f;
    margin-bottom: 4px;
  }
  .wallet-destination {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: #202124;
    overflow-wrap: anywhere;
  }
  .wallet-reward-label {
    display: block;
    font-size: 15px;
    line-height: 1.7;
    color: #76797f;
    margin-top: 4px;
  }
  .wallet-reward-amount {
    display: block;
    flex: none;
    white-space: nowrap;
    min-width: max-content;
    text-align: right;
    font-size: 33px;
    font-weight: 600;
    letter-spacing: -0.6px;
    line-height: 1.25;
    color: var(--theme);
    font-variant-numeric: tabular-nums;
  }
  .wallet-reward-detail {
    display: block;
    font-size: 14px;
    line-height: 1.8;
    color: #76797f;
    margin-top: 6px;
  }
  .reward-review-hint {
    margin-top: -2px;
  }
  .error-card .wallet-reward-list {
    margin-top: 23px;
  }
  .result-heading {
    margin-bottom: 25px;
  }
  .result-heading h1 {
    font-size: 31px;
  }
  .processing-state > .btn {
    margin-top: 24px;
  }
  .processing-state > .hint {
    margin-top: 15px;
  }
  .profile-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 21px 0 23px;
  }
  .profile-wallet-card {
    padding: 21px 22px;
    border: 1px solid #e1e2e5;
    background: #fff;
    border-radius: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .profile-wallet-heading {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    line-height: 1.8;
    color: #76797f;
    margin-bottom: 11px;
  }
  .profile-wallet-heading svg {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }
  .profile-wallet-card h2 {
    font-size: 22px;
    line-height: 1.6;
    color: #202124;
  }
  .profile-wallet-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
  }
  .profile-wallet-amount > span {
    font-size: 15px;
    color: #76797f;
    min-width: 0;
  }
  .profile-wallet-amount > strong {
    font-size: 32px;
    font-weight: 600;
    color: var(--theme-ink, var(--theme));
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    line-height: 1.3;
  }
  .profile-wallet-card > .hint {
    margin-top: 12px;
  }
  @media (max-width: 760px) {
    .wallet-reward-row {
      padding: 17px;
    }
    .wallet-reward-amount {
      font-size: 32px;
    }
  }
  @media (max-width: 520px) {
    .wallet-reward-list {
      gap: 10px;
      margin: 18px 0;
    }
    .wallet-reward-row {
      gap: 9px;
      padding: 14px 12px;
    }
    .wallet-reward-icon {
      height: 30px;
      width: 30px;
      border-radius: 7px;
    }
    .wallet-reward-icon svg {
      width: 17px;
      height: 17px;
    }
    .wallet-reward-caption {
      font-size: 13px;
      margin-bottom: 3px;
    }
    .wallet-destination {
      font-size: 16px;
      line-height: 1.7;
    }
    .wallet-reward-label {
      font-size: 14px;
      margin-top: 3px;
    }
    .wallet-reward-amount {
      font-size: 29px;
      letter-spacing: -0.4px;
    }
    .wallet-reward-detail {
      font-size: 13px;
    }
    .result-heading h1 {
      font-size: 27px;
    }
    .profile-wallet-list {
      gap: 12px;
      margin: 19px 0 21px;
    }
    .profile-wallet-card {
      padding: 18px;
    }
    .profile-wallet-heading {
      font-size: 14px;
      margin-bottom: 10px;
    }
    .profile-wallet-card h2 {
      font-size: 20px;
    }
    .profile-wallet-amount {
      padding-top: 13px;
      margin-top: 15px;
    }
    .profile-wallet-amount > span {
      font-size: 14px;
    }
    .profile-wallet-amount > strong {
      font-size: 29px;
    }
  }
  @media (max-width: 370px) {
    .wallet-reward-row {
      padding: 13px 10px;
      gap: 8px;
    }
    .wallet-reward-icon {
      width: 27px;
      height: 27px;
    }
    .wallet-reward-icon svg {
      width: 16px;
      height: 16px;
    }
    .wallet-reward-amount {
      font-size: 27px;
    }
    .wallet-destination {
      font-size: 16px;
    }
  }

  /* Brand contrast follows the merchant hue; primary actions keep white labels. */
  .brand-mark {
    color: var(--on-theme, #ffffff);
  }
  .btn-primary,
  .btn-primary:hover,
  .btn-primary:disabled {
    color: #ffffff;
    border-color: transparent;
  }
  .btn-primary:focus-visible {
    outline-color: var(--theme);
  }

  .wallet-basis {
    border-top: 1px solid #e1e1e1;
    padding-top: 12px;
    margin-top: 12px;
  }
  .wallet-basis > strong {
    font-size: 16px;
    color: #303030;
    overflow-wrap: anywhere;
    display: block;
    margin-bottom: 6px;
  }

  .theme-probe {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    color: var(--theme);
  }
  h1,
  h2,
  h3 {
    color: var(--ink);
  }
  .entry-intro .account-card {
    margin-top: 20px;
  }
  .error-card .account-card {
    margin-top: 24px;
    text-align: left;
  }
  .modal-body .inline-error {
    margin-top: 16px;
  }
  .wallet-reward-row {
    flex-wrap: wrap;
  }
  .wallet-reward-main {
    flex: 1 1 130px;
  }
  .wallet-reward-amount {
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

// H5 uses document scrolling and must keep controls clear of the device safe area.
.pisell-purchase-rewards {
  padding-bottom: env(safe-area-inset-bottom, 0px);

  .modal-backdrop {
    z-index: 1100;
    padding-top: ~'max(12px, env(safe-area-inset-top, 0px))';
    padding-bottom: ~'max(12px, env(safe-area-inset-bottom, 0px))';
  }
  .modal {
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }
}
