.app {
  min-width: 1000px;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--black1);
  gap: 20px;
  margin: 0;
  width: unset;
}
section {
  width: 860px;
}
.back-btn {
  top: 84px;
}
.title {
  font-size: 28px;
}
.subtitle {
  font-size: 14px;
}
.formInputs {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  margin: 28px 0;
}
.profileLogo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.logoPreview {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logoPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.uploadImage {
  font-family: inherit;
  height: 54px;
  width: 220px;
  text-align: center;
  color: var(--blue1);
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  cursor: pointer;
  fill: none;
  stroke: var(--blue1);
  border: 1px dashed var(--blue1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.profileDetails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 320px;
  justify-content: space-between;
}
.profileDetails .field input {
  padding: 12px 16px;
}
.profileButtons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  width: 320px;
}
.profileButtons .profileDetails {
  height: 216px;
}

.billingDetails {
  display: flex;
  justify-content: space-between;
  margin: 28px 0;
}
.paymentMethots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.paymentActions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 320px;
}
.balance {
  width: 460px;
  padding: 16px 20px;
  border: 1px solid var(--grey1);
  border-radius: 16px;
}
.balance .cash {
  color: var(--blue1);
  font-size: 28px;
  font-weight: 600;
}
#bankCards {
  margin-top: 16px;
}
div#bankCardsBlock {
  display: flex;
  flex-wrap: wrap;
  width: 500px;
  justify-content: space-between;
  margin-top: 4px;
  gap: 16px;
}
.paymentCard {
  width: 200px;
  border-radius: 12px;
  padding: 16px 20px;
  background-image: url(/src/img/backcard.jfif);
  background-size: 180%;
  position: relative;
}
.cardLogo {
  width: 60px;
  height: 36px;
}
.cardLogo.visa {
  background-image: url(/src/img/visa.png);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100%;
}
.cardLogo.mastercard {
  background-image: url(/src/img/mastercard.png);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 80%;
}
.cardPan {
  color: var(--white);
  margin-top: 12px;
}
.cardExpired {
  color: var(--white);
}
.cardActions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
}
.cardActions span {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  fill: none;
  stroke: var(--white);
}
.cardActions span.cardRemove {
  stroke: var(--red2);
}
.cardActions svg {
  width: 1.3em;
  height: 1.3em;
}
.copyBlock {
  position: relative;
  padding: 28px 0 12px 0;
  width: 432px;
}
.copyField {
  padding: 8px 12px;
  display: flex;
  padding: 14px;
  font-size: 16px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 8px;
  color: var(--black1);
  border: 1px solid var(--blue2);
  background: var(--white);
  outline: none;
  width: 400px;
}
.copyBtn {
  background: none;
  outline: none;
  border: 0;
  width: 32px;
  height: 32px;
  position: absolute;
  top: 36px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.copyBtn svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue1);
}
.balanceHistory,
.cardHistoryPopup {
  background: var(--white);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--shadow);
}
.cardHistoryPopup {
  max-height: 500px;
  overflow-y: auto;
}
.balanceHistory p,
.cardHistoryPopup p {
  font-size: 20px;
  font-weight: 500;
  padding-bottom: 16px;
  text-transform: uppercase;
}
.balanceHistory table,
.cardHistoryPopup table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
}
.balanceHistory table td,
.balanceHistory table th,
.cardHistoryPopup table td,
.cardHistoryPopup table th {
  height: 52px;
  text-align: start;
}
.balanceHistory table tr,
.cardHistoryPopup table tr {
  border-bottom: 1px solid var(--shadow);
}
.balanceHistory table tr div,
.cardHistoryPopup table tr div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.balanceHistory .detail,
.cardHistoryPopup .detail {
  --detail: attr(data-detail);
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.balanceHistory .detail svg,
.cardHistoryPopup .detail svg {
  width: 100%;
  height: 100%;
}
.balanceHistory .detail:hover::before,
.cardHistoryPopup .detail:hover::before {
  content: var(--detail);
  position: absolute;
  top: -32px;
  left: -80px;
  text-wrap: nowrap;
  color: var(--white);
  background: var(--grey1);
  padding: 4px 8px;
  border-radius: 8px;
}

.balanceHistory .tranStatus,
.cardHistoryPopup .tranStatus {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tranStatus::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a1aab0;
}
.tranStatus.reversed::before,
.tranStatus.refunded::before {
  background: #9b59b6;
}
.tranStatus.approved::before {
  background: #62ba46;
}
.tranStatus.pending::before {
  background: #eece3f;
}
.tranStatus.declined::before {
  background: #d9534f;
}
.popup-block.cardList {
  width: unset;
  min-width: 600px;
}
