/* Reference-based wallet illustrations. */
.wallet-tile {
  color: #fff;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 142px;
  padding: 11px 12px;
  gap: 6px;
  aspect-ratio: 1.59;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px #ffffff3b, 0 4px 10px #12253a22;
}
.wallet-tile-top { display: grid; gap: 3px; min-width: 0; line-height: 1.12; }
.wallet-tile-issuer { font-size: 17px; font-weight: 760; letter-spacing: -.028em; overflow-wrap: anywhere; }
.wallet-tile-product { font-size: 11px; line-height: 1.16; }
.wallet-tile-type-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; align-self: center; }
.wallet-tile-type { padding: 2px 6px; border-radius: 4px; background: #000a; color: #fff; font-size: 10px; font-weight: 720; line-height: 1.2; }
.wallet-tile-chip {
  position: relative;
  width: 24px;
  height: 17px;
  align-self: center;
  background: linear-gradient(139deg,#fff2c4,#c2a066 53%,#f1d89c 83%,#a37a42);
  border: 1px solid #927345;
  border-radius: 4px;
}
.wallet-tile-chip::before {
  content: "";
  position: absolute;
  inset: 2px 5px;
  border: 1px solid #674e2f93;
  border-radius: 3px;
}
.wallet-tile-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 3px 6px;
}
.wallet-tile-metric { display: grid; gap: 3px; line-height: 1.22; }
.wallet-tile-metric small { color: inherit; font-size: 12px; line-height: 1.25; }
.wallet-tile-metric strong { font-size: 18px; letter-spacing: -.015em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.wallet-tile-balances { display: grid; gap: 6px; min-width: 0; }
.wallet-tile-balances strong { white-space: normal; overflow-wrap: anywhere; }
.wallet-tile .wallet-tile-secondary strong { font-size: .94rem; }
.wallet-tile-dual-balance:not(.wallet-tile--artwork) { aspect-ratio: auto; }
.wallet-tile--artwork .wallet-tile-metric small { color: var(--sub); }
.wallet-tile-dates {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  flex: 1 1 100%;
  min-width: 0;
  align-items: start;
  gap: 4px 6px;
  padding-top: 6px;
  border-top: 1px solid #ffffff52;
}
.wallet-tile--artwork .wallet-tile-dates { border-color: var(--line); }
.wallet-tile-date { display: grid; gap: 2px; line-height: 1.2; overflow-wrap: anywhere; }
.wallet-tile-date small { color: inherit; font-size: .8rem; }
.wallet-tile-date time, .wallet-tile-date > span { font-size: .86rem; font-weight: 700; }
.wallet-tile-date time { font-variant-numeric: tabular-nums; }
.wallet-tile--artwork .wallet-tile-date small { color: var(--sub); }
.wallet-tile-network { font-size: 10px; font-weight: 720; white-space: nowrap; }
.wallet-tile-metric strong:empty,
.wallet-tile-network:empty { display: none; }
.wallet-show-more {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent);
  font: inherit;
  font-weight: 650;
}
@media (max-width: 380px) {
  .wallet-tile { padding: 9px 9px 10px; min-height: 133px; }
  .wallet-tile-issuer { font-size: 15px; }
  .wallet-tile-metric strong { font-size: 16px; }
}
.wallet-tile--home-credit {
  background:
    repeating-linear-gradient(179.9deg, #35130c31 0 1px, transparent 1px 3px, #ffc19e18 4px 5px, transparent 5px 7px),
    radial-gradient(ellipse 76% 128% at 71% 91%, transparent 0 49%, #570e10a6 49.5% 70%, transparent 70.5%),
    linear-gradient(174deg, #bf1910 0%, #a4140d 31%, #8c1308 67%, #680b08 100%);
}
.home-credit-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px;
  line-height: 1.09;
}
.home-credit-heading .wallet-tile-issuer { font-size: 15px; text-wrap: balance; }
.home-credit-smile {
  display: grid;
  justify-items: end;
  font-size: 14px;
  line-height: 1;
  font-weight: 720;
}
.home-credit-smile small {
  margin-top: 2px;
  font-size: 10px;
}
.home-credit-emv {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 7px;
}
.home-credit-emv .wallet-tile-chip {
  background: linear-gradient(145deg, #f4f4f4, #a5a7a9 46%, #dcdfe1 72%, #828486);
  border-color: #6d6d70;
}
.home-credit-emv .wallet-tile-chip::before {
  border-color: #5d5e62;
}
.home-credit-contactless {
  position: relative;
  display: block;
  width: 11px;
  height: 14px;
  border-radius: 50%;
  border-right: 1.5px solid currentColor;
}
.home-credit-contactless::before,
.home-credit-contactless::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border-right: 1.5px solid currentColor;
}
.home-credit-contactless::before { inset: 2px 4px 2px -2px; }
.home-credit-contactless::after { inset: 4px 7px 4px -3px; }
.home-credit-network {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
}
.wallet-tile--rcbc-flex,
.wallet-tile--metro-cashback,
.wallet-tile--metro-rewards,
.wallet-tile--atome,
.wallet-tile--ub-rewards,
.wallet-tile--gcash {
  isolation: isolate;
  overflow: hidden;
}
.wallet-tile--rcbc-flex {
  background:
    repeating-linear-gradient(90deg, #ffffff12 0 1px, transparent 1px 3px),
    linear-gradient(128deg, #067b87, #2db7bc 44%, #5bd0ce);
}
.wallet-rcbc-skyline {
  position: absolute;
  z-index: -2;
  inset: 31% 0 0;
  pointer-events: none;
}
.wallet-rcbc-skyline span {
  position: absolute;
  bottom: 0;
  background-color: var(--building);
  left: var(--left);
  width: var(--width);
  height: var(--height);
}
.wallet-rcbc-skyline span::after {
  content: "";
  position: absolute;
  inset: 26% 47% 0 18%;
  background: repeating-linear-gradient(0deg, transparent 0 7px, #cafff9bf 8px 9px, transparent 10px 15px);
}
.wallet-rcbc-skyline span:nth-child(1) { --building: #72d4b7; --left: -2%; --width: 26%; --height: 67%; clip-path: polygon(0 28%,100% 0,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(2) { --building: #ec82ec; --left: 14%; --width: 25%; --height: 89%; clip-path: polygon(0 24%,100% 0,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(3) { --building: #2b58ec; --left: 36%; --width: 25%; --height: 100%; }
.wallet-rcbc-skyline span:nth-child(4) { --building: #173fc2; --left: 48%; --width: 18%; --height: 72%; clip-path: polygon(0 0,100% 19%,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(5) { --building: #fcd1ea; --left: 62%; --width: 23%; --height: 81%; clip-path: polygon(0 22%,100% 0,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(6) { --building: #ed65c5; --left: 72%; --width: 20%; --height: 64%; clip-path: polygon(0 0,100% 27%,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(7) { --building: #95e5e4; --left: 41%; --width: 23%; --height: 44%; clip-path: polygon(0 18%,100% 0,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(8) { --building: #c6e39a; --left: 86%; --width: 18%; --height: 59%; clip-path: polygon(0 35%,100% 0,100% 100%,0 100%); }
.wallet-rcbc-skyline span:nth-child(9) { --building: #d9dcff; --left: 0%; --width: 46%; --height: 34%; clip-path: polygon(0 20%,29% 30%,46% 10%,57% 19%,100% 0,100% 100%,0 100%); }
.wallet-tile--rcbc-flex::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #073349ed 0%, #093d5de0 20%, #07334900 53%);
  pointer-events: none;
}
.wallet-tile--rcbc-flex .wallet-tile-top { color: #fff; text-shadow: 0 1px 2px #002d35b0; }
.wallet-tile--metro-cashback {
  background: linear-gradient(137deg, #063439, #075657 60%, #0e3c40);
}
.wallet-tile--metro-cashback::before {
  content: "";
  position: absolute;
  inset: -8% -12% -7% 34%;
  z-index: -1;
  border-left: 3px solid #bad0cb;
  border-bottom: 2px solid #bbd0cc;
  border-radius: 3% 56% 69% 15%;
  transform: skewX(15deg);
  background:
    repeating-radial-gradient(ellipse 110% 86% at 110% 55%, transparent 0 3px, #00313780 3.5px 4px, transparent 5px 7px),
    repeating-radial-gradient(ellipse 110% 90% at 0 26%, transparent 0 4px, #a3d2c24d 4.5px 5px, transparent 6px 10px),
    linear-gradient(154deg, #1c857a, #0c595e 71%, #064c56);
}
.wallet-tile--metro-cashback .wallet-tile-product { font-style: italic; }
.wallet-tile--atome {
  color: #272021;
  background: linear-gradient(132deg, #f0cbd2, #edc6cc 76%, #e7bdc6);
}
.wallet-tile--atome::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -11% 38% 5% -10%;
  background: #d5e82b;
  clip-path: polygon(evenodd, 43% 0,61% 0,100% 100%,77% 100%,65% 71%,34% 71%,22% 100%,0 100%,43% 0,50% 30%,41% 52%,59% 52%,50% 30%);
}
.wallet-tile--atome .wallet-tile-issuer { text-transform: lowercase; }
.wallet-tile--rcbc-jcb {
  color: #34220d;
  background:
    repeating-radial-gradient(ellipse 112% 99% at 91% 139%, transparent 0 5px, #fff1c659 5.4px 6px, transparent 6.7px 9px),
    repeating-radial-gradient(ellipse 93% 100% at 13% 151%, transparent 0 5px, #9553184d 5.4px 6px, transparent 7px 10px),
    linear-gradient(135deg, #ebc684, #cf9752 48%, #e0b56f);
}
.wallet-tile--rcbc-jcb .wallet-tile-network {
  color: #fff;
  background: linear-gradient(90deg, #1c4e84 0 33%, #ad2f45 33% 66%, #206951 66%);
  border-radius: 3px;
  padding: 1px 5px;
}
.wallet-tile--gcash {
  background:
    radial-gradient(ellipse 92% 133% at 83% 62%, transparent 0 26%, #003b9c90 26.5% 35%, transparent 35.5% 44%, #00419b70 44.5% 53%, transparent 53.5% 61%, #8bbcff39 61.5% 69%, transparent 69.5%),
    linear-gradient(136deg, #043baf, #0057dc 70%, #0842b3);
}
.wallet-tile--gcash::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 46%;
  width: 26%;
  height: 9%;
  background: #033babb0;
  transform: skewY(-16deg);
}
.wallet-tile--maya {
  background-image:
    radial-gradient(circle at center, #c5d1d836 0.55px, transparent 0.95px),
    linear-gradient(134deg, #080b10, #20262b 73%, #101416);
  background-size: 5px 5px, 100% 100%;
}
.wallet-tile--maya .wallet-tile-issuer { color: #e2e5e8; }
.wallet-tile--security-wave {
  color: #112c66;
  background:
    radial-gradient(ellipse 147% 94% at 103% -21%, transparent 0 52%, #8ccbf6 52.5% 55%, #213e85 55.5% 62%, #69b4eb 62.5% 64%, #224c9e 64.5% 76%, #effaff 76.5% 79%, transparent 79.5%),
    radial-gradient(ellipse 68% 106% at 114% 112%, #9dd6ff 0 46%, transparent 46.5%),
    linear-gradient(133deg, #f1fbff, #d0eaff 72%, #afdaff);
}
.wallet-tile--security-wave .wallet-tile-top {
  justify-self: start;
  background: #e5f6ffeb;
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 4px;
}
.wallet-tile--bpi-rewards {
  background:
    repeating-radial-gradient(ellipse 105% 135% at 17% 68%, transparent 0 11px, #7aa2ea59 12px, #3563ae57 14px, transparent 16px 19px),
    linear-gradient(134deg, #081943, #12346b 70%, #11275a);
}
.wallet-tile--bpi-amore {
  color: #0d382f;
  background:
    repeating-radial-gradient(ellipse 158% 145% at 91% -23%, transparent 0 8px, #edf9e89e 8.5px 9.2px, transparent 10px 15px),
    radial-gradient(ellipse 120% 151% at 5% 129%, #58b8a8 0 39%, #77c8b5 39.5% 49%, transparent 50%),
    linear-gradient(126deg, #d9f2e5, #9bdccf 67%, #8ed3c4);
}
.wallet-tile--ub-rewards {
  background:
    repeating-linear-gradient(0deg, #d2e6ff17 0 1px, transparent 1px 3px, #000c202c 4px 5px),
    linear-gradient(132deg, #111c39, #284a75 61%, #0f203d);
}
.wallet-ub-monogram {
  position: absolute;
  bottom: -2%;
  left: -2%;
  z-index: -1;
  color: #abdbff21;
  line-height: .84;
  font-size: clamp(56px, 9vw, 94px);
  font-weight: 800;
  letter-spacing: -.17em;
  pointer-events: none;
}
.wallet-tile--metro-rewards {
  background: linear-gradient(139deg, #081c47, #183867 65%, #112656);
}
.wallet-tile--metro-rewards::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center, #78aefa85 0 .85px, transparent 1.3px) 0 0 / 5px 5px,
    radial-gradient(circle at center, #4475c6a6 0 1.1px, transparent 1.6px) 2px 2px / 8px 8px;
  mask-image: linear-gradient(149deg, #0002 11%, #000 33%, #0002 48%, #000a 62%, #0002 70%, #000 88%);
}
.wallet-tile--metro-rewards .wallet-tile-product {
  font-family: Georgia, serif;
  letter-spacing: .045em;
}
.wallet-tile--chinabank {
  background:
    radial-gradient(ellipse 99% 112% at 115% 101%, transparent 0 34%, #ffd29e78 34.5% 36%, transparent 36.5% 45%, #ffc08d7c 45.5% 46.8%, transparent 47.3%),
    radial-gradient(ellipse 116% 70% at 109% 90%, transparent 0 41%, #f7d2a462 41.5% 43%, transparent 44%),
    linear-gradient(167deg, #f3d6b4 0%, #d9a27f 30%, #924c42 65%, #542731 100%);
}
.wallet-tile--chinabank .wallet-tile-top { color: #411b28; }
:is(.wallet-tile--rcbc-flex, .wallet-tile--metro-cashback, .wallet-tile--atome, .wallet-tile--rcbc-jcb, .wallet-tile--security-wave, .wallet-tile--bpi-amore, .wallet-tile--ub-rewards, .wallet-tile--metro-rewards, .wallet-tile--maya) .wallet-tile-chip {
  background: linear-gradient(145deg, #f4f4f4, #a5a7a9 46%, #dcdfe1 72%, #828486);
  border-color: #6d6d70;
}
:is(.wallet-tile--rcbc-flex, .wallet-tile--metro-cashback, .wallet-tile--atome, .wallet-tile--rcbc-jcb, .wallet-tile--security-wave, .wallet-tile--bpi-amore, .wallet-tile--ub-rewards, .wallet-tile--metro-rewards, .wallet-tile--maya) .wallet-tile-chip::before {
  border-color: #5d5e62;
}

.wallet-tile:not([class*="wallet-tile--"]){background:linear-gradient(142deg,var(--bank,#244979),#13293f)}
.wallet-tile{overflow:hidden;text-align:left;border:0;font:inherit}
.wallet-tile[class*="wallet-tile--ref-"]{background:linear-gradient(132deg,var(--bank),#13293f)}
.wallet-tile[class*="wallet-tile--ref-"]::before{pointer-events:none;content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 86% 20%,#bed8fb42,transparent 52%);z-index:0}
.wallet-tile--ref-1::before{background:repeating-linear-gradient(135deg,transparent 0 18px,#dbe8fa12 19px 23px)!important}
.wallet-tile--ref-2::before{background:repeating-radial-gradient(ellipse at 105% 90%,#ffffff18 0 2px,transparent 3px 15px)!important}
.wallet-tile--ref-3::before{background:linear-gradient(157deg,transparent 0 50%,#edf5ff26 51% 59%,transparent 60%)!important}
.wallet-tile--ref-4::before{background:conic-gradient(from 30deg at 87% 18%,#ffffff28,transparent 25%,#adcaff27 60%,transparent)!important}
.wallet-tile--ref-5::before{background:radial-gradient(#fafdff40 1px,transparent 1.5px) 100% 0/17px 17px!important;mask-image:linear-gradient(to left,#000,transparent 75%)}

.wallet-tile--artwork {
  grid-template-rows: auto 1fr;
  min-height: 0;
  padding: 0;
  gap: 0;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.wallet-tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 1.59;
  object-fit: contain;
  background: var(--canvas);
}

.wallet-tile-art-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  gap: 7px 10px;
  padding: 9px 10px;
}

.wallet-tile-art-caption .wallet-tile-top { flex: 1 1 85px; }
.wallet-tile-art-caption .wallet-tile-issuer { font-size: .875rem; }
.wallet-tile-art-caption .wallet-tile-type {
  padding: 0;
  background: none;
  color: var(--sub);
  font-size: .72rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.wallet-tile-art-caption .wallet-tile-metric { max-width: 100%; }
.wallet-tile-art-caption .wallet-tile-metric strong { font-size: 1rem; white-space: normal; overflow-wrap: anywhere; }
.home-wallet-face:has(> .wallet-tile-dual-balance.wallet-tile--artwork) { container-type: inline-size; }
.wallet-tile-dual-balance.wallet-tile--artwork + .home-wallet-grip { inset-block-start: 38px; inset-block-start: 31cqw; }
