.ggpay-unified-bank-picker {
  position: relative;
  width: 100%;
  font-family: inherit;
}

.ggpay-unified-bank-trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 42px 9px 12px;
  border: 1px solid #d7e1e8;
  border-radius: 10px;
  background: #f9fbfc;
  color: #172033;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ggpay-unified-bank-trigger:hover,
.ggpay-unified-bank-trigger:focus-visible {
  border-color: #75a9c7;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 119, 166, 0.12);
}

.ggpay-unified-bank-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ggpay-unified-bank-trigger > i {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid #6f8291;
  border-bottom: 2px solid #6f8291;
  transform: rotate(45deg);
}

.ggpay-unified-bank-logo {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  object-fit: contain;
}

.ggpay-unified-bank-overlay {
  position: fixed;
  z-index: 6000;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(17, 30, 41, 0.42);
  backdrop-filter: blur(2px);
}

.ggpay-unified-bank-sheet {
  display: flex;
  width: 100%;
  max-height: 78vh;
  box-sizing: border-box;
  flex-direction: column;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -14px 40px rgba(17, 30, 41, 0.22);
  animation: ggpay-unified-bank-in 180ms ease-out;
}

.ggpay-unified-bank-sheet::before {
  width: 38px;
  height: 4px;
  flex: 0 0 auto;
  margin: 9px auto 2px;
  border-radius: 999px;
  background: #d4dde4;
  content: '';
}

.ggpay-unified-bank-sheet header {
  position: relative;
  padding: 14px 48px 13px;
  text-align: center;
}

.ggpay-unified-bank-sheet header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ggpay-unified-bank-sheet header strong {
  color: #172033;
  font-size: 18px;
  line-height: 24px;
}

.ggpay-unified-bank-sheet header small {
  color: #7b8795;
  font-size: 11px;
  line-height: 16px;
}

.ggpay-unified-bank-close {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f7;
  color: #526675;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.ggpay-unified-bank-search {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 10px 13px;
  border: 1px solid #dbe4ea;
  border-radius: 11px;
  outline: 0;
  background: #f8fafb;
  color: #172033;
  font: inherit;
  font-size: 14px;
}

.ggpay-unified-bank-search:focus {
  border-color: #75a9c7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36, 119, 166, 0.12);
}

.ggpay-unified-bank-toolbar {
  display: block;
}

.ggpay-unified-bank-categories {
  display: none;
}

.ggpay-unified-bank-options {
  display: grid;
  overflow: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 4px;
  overscroll-behavior: contain;
}

.ggpay-unified-bank-option {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 7px;
  padding: 8px 25px 8px 9px;
  border: 1px solid #e0e7ec;
  border-radius: 12px;
  background: #fff;
  color: #344b5c;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.ggpay-unified-bank-option > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ggpay-unified-bank-option:hover,
.ggpay-unified-bank-option:focus-visible {
  border-color: #a3c7dc;
  outline: 0;
  background: #f6fafc;
}

.ggpay-unified-bank-option.is-selected {
  border-color: #83b3cf;
  background: #eaf5fb;
  color: #185f89;
  font-weight: 800;
}

.ggpay-unified-bank-option.is-selected::after {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #3786b3;
  content: '✓';
  transform: translateY(-50%);
}

.ggpay-unified-bank-empty {
  grid-column: 1 / -1;
  padding: 28px 12px;
  color: #7b8795;
  text-align: center;
}

@keyframes ggpay-unified-bank-in {
  from { opacity: 0.72; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
  .ggpay-unified-bank-overlay {
    align-items: center;
    padding: 24px;
  }

  .ggpay-unified-bank-sheet {
    max-width: 640px;
    width: 100%;
    height: min(76vh, 760px);
    max-height: none;
    padding: 0 18px 18px;
    border-radius: 19px;
  }

  .ggpay-unified-bank-sheet::before {
    display: none;
  }

  .ggpay-unified-bank-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
  }

  .ggpay-unified-bank-toolbar .ggpay-unified-bank-search {
    min-width: 0;
    margin: 0;
  }

  .ggpay-unified-bank-categories {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dbe4ea;
    border-radius: 11px;
    background: #f5f8fa;
  }

  .ggpay-unified-bank-category {
    min-width: 0;
    border: 0;
    border-left: 1px solid #e0e7ec;
    background: transparent;
    color: #627485;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .ggpay-unified-bank-category:first-child {
    border-left: 0;
  }

  .ggpay-unified-bank-category:hover,
  .ggpay-unified-bank-category:focus-visible {
    outline: 0;
    background: #edf5fa;
    color: #176796;
  }

  .ggpay-unified-bank-category.is-active {
    background: #176fa3;
    color: #fff;
  }

  .ggpay-unified-bank-options {
    min-height: 0;
    flex: 1 1 auto;
    align-content: start;
  }
}
