.pisell-wallet-top-up {
  color: #344054;

  &__hint,
  &__error {
    margin: 0 0 12px;
    color: #667085;
  }

  &__error {
    color: #b42318;
  }

  &__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;

    button {
      display: grid;
      width: 100%;
      min-height: 68px;
      grid-template-columns: minmax(0, 1fr) auto 20px;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      border: 1px solid #cdd3de;
      border-radius: 10px;
      color: inherit;
      background: #fff;
      font: inherit;
      text-align: start;
      cursor: pointer;

      &:enabled:hover,
      &:focus-visible {
        border-color: #7951cd;
        background: #f7f3fc;
      }

      &:disabled {
        cursor: default;
      }

      > .anticon {
        justify-self: end;
        color: #7951cd;
      }
    }
  }

  &__identity {
    display: grid;
    min-width: 0;
    gap: 3px;
    overflow-wrap: anywhere;

    small {
      color: #667085;
      font-size: 12px;
    }
  }
}

.pisell-wallet-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #e4e7ec;
  color: #101828;
  background: #fff;
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;

  &:hover,
  &[aria-current='true'] {
    background: #f5f1fc;
  }

  &:focus-visible {
    outline: 2px solid #5d3f9f;
    outline-offset: -2px;
  }

  &__label {
    min-width: 0;

    small {
      display: block;
      margin-top: 2px;
      color: #475467;
      font-size: 12px;
    }
  }

  &__status {
    color: #344054;
    font-size: 13px;
    font-weight: 600;
  }
}

.pisell-wallet-search-detail {
  --wallet-pass-text: #eaf0ff;
  --wallet-pass-muted: #aab3c3;
  --wallet-pass-panel: #0d1322;
  --wallet-pass-line: #283247;

  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 6px;
  border: 1.5px solid #5d3f9f;
  border-radius: 12px;
  color: var(--wallet-pass-text);
  background: #17191d;
  overflow-wrap: anywhere;

  &--drawer {
    padding: 0;
    border: 0;
    border-radius: 0;

    .pisell-wallet-search-detail__header {
      padding-inline-end: 56px;
    }
  }

  &__header {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 4px 8px 4px 10px;
    border-bottom: 1px solid #2b2b2b;

    h2 {
      margin: 0;
      color: #f5f7ff;
      font-size: 17px;
      font-weight: 700;
    }
  }

  &__close {
    display: grid;
    flex: none;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #bfc2cb;
    background: transparent;
    font-size: 19px;
    cursor: pointer;

    &:hover,
    &:focus-visible {
      color: #fff;
      background: #302747;
    }
  }

  &__body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }

  &__tabs {
    display: flex;
    flex: 0 0 clamp(70px, 16%, 92px);
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    padding: 6px 4px;
    border-inline-end: 1px solid #ffffff0f;
    background: #070d18;
  }

  &__tab {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 70px;
    padding: 8px 2px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #bfc2cb;
    background: transparent;
    font: inherit;
    font-size: 14px;
    text-align: center;
    cursor: pointer;

    > .anticon {
      font-size: 20px;
    }

    &:hover,
    &[aria-pressed='true'] {
      border-color: #352955;
      color: #fff;
      background: #211b3c;
    }
  }

  &__content {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
  }

  &__profile {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    margin: 10px 6px 0;
    padding: 10px 12px;
    border: 1px solid var(--wallet-pass-line);
    border-radius: 10px;
    color: var(--wallet-pass-text);
    background: var(--wallet-pass-panel);
    font: inherit;
    text-align: start;
    cursor: pointer;

    > .anticon {
      flex: none;
      color: #ab90df;
      font-size: 23px;
    }

    > span:not(.anticon) {
      flex: 1;
      min-width: 0;
    }

    strong,
    small {
      display: block;
    }

    strong {
      font-size: 16px;
      font-weight: 700;
    }

    small {
      margin-top: 3px;
      color: var(--wallet-pass-muted);
      font-size: 13px;
    }

    &:hover {
      border-color: #8464be;
    }
  }

  &__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
    padding: 12px 6px 8px;

    &::-webkit-scrollbar {
      width: 12px;
    }

    &::-webkit-scrollbar-track {
      background: #f5f5f5;
    }

    &::-webkit-scrollbar-thumb {
      border: 2px solid #f5f5f5;
      border-radius: 8px;
      background: #b9b9b9;
    }
  }

  &__panel {
    margin: 16px 6px 0;
    padding: 12px 14px;
    border: 1px solid var(--wallet-pass-line);
    border-radius: 9px;
    background: var(--wallet-pass-panel);

    h3 {
      margin: 0;
      color: inherit;
      font-size: 16px;
    }

    p {
      margin: 8px 0 0;
      color: var(--wallet-pass-muted);
    }
  }

  &__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 8px 0 0;
    font-size: 13px;

    dt {
      color: var(--wallet-pass-muted);
    }

    dd {
      margin: 0;
    }
  }

  &__history-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 8px;

    small {
      color: var(--wallet-pass-muted);
    }
  }

  &__balances {
    margin: 16px 6px 0;

    .pisell-pos-card-details__section-heading {
      h3 {
        color: var(--wallet-pass-text);
      }

      > span {
        color: var(--wallet-pass-muted);
      }
    }
  }

  &__actions {
    display: flex;
    flex: none;
    gap: 10px;
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #05070d;

    > button {
      box-sizing: border-box;
      display: inline-flex;
      min-width: 0;
      min-height: 56px;
      flex: 1 1 0;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 6px 8px;
      border: 1.5px solid #5a28bf;
      border-radius: 10px;
      color: #f7f2ff;
      background: #1b0b3a;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
      font: inherit;
      font-size: 16px;
      font-weight: 800;
      line-height: 20px;
      text-align: center;
      cursor: pointer;

      > .anticon {
        display: inline-flex;
        flex: none;
        color: #c4b5fd;

        > svg {
          width: 20px;
          height: 20px;
        }
      }

      > span:not(.anticon) {
        min-width: 0;
      }

      &:not(:disabled):hover,
      &:not(:disabled):active {
        color: #fff;
        border-color: #7a4df5;
        background: #241052;
      }

      &:disabled {
        color: rgba(255, 255, 255, 0.45);
        border-color: rgba(255, 255, 255, 0.12);
        background: #24212d;
        cursor: not-allowed;

        > .anticon {
          color: rgba(255, 255, 255, 0.35);
        }
      }
    }
  }

  button:focus-visible,
  summary:focus-visible {
    outline: 2px solid #ab90df;
    outline-offset: -2px;
  }
}

.pisell-wallet-search-drawer {
  container: wallet-search-drawer / inline-size;

  &__body {
    overflow: hidden;
    padding: 0;
  }

  &__close {
    position: absolute;
    top: 2px;
    right: 8px;
    z-index: 10;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #070d1a;
    box-shadow: 0 8px 24px rgb(16 24 40 / 16%);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    &:hover {
      background: #0e1523;
    }

    &:focus-visible {
      outline: 2px solid #ab90df;
      outline-offset: -2px;
    }
  }
}

// Leave room for the order-style button, its gap, and the shadow beside the 560px drawer.
@container wallet-search-drawer (min-width: 638px) {
  .pisell-wallet-search-drawer {
    &.pisell-compensated-container
      .pisell-lowcode-floating-layer-positioner > .pisell-wallet-search-drawer__wrapper,
    .pisell-wallet-search-drawer__content {
      overflow: visible;
    }

    & &__close {
      top: 16px;
      right: auto;
      left: -70px;
      width: 60px;
      height: 60px;
    }
  }
}

@media (max-width: 430px) {
  .pisell-wallet-search-detail {
    &__tabs {
      flex-basis: 64px;
    }

    &__tab {
      min-height: 62px;
      font-size: 12px;
    }

    &__profile {
      gap: 6px;
      min-height: 60px;
      padding-inline: 8px;
    }

    &__actions > button {
      gap: 4px;
      padding-inline: 4px;
    }
  }
}

.pisell-offer-pass-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 6px;
}
