/**
 * Country bank directory (pages/coverage_country.php) — Salt Edge–inspired layout.
 */
.covc-page {
  padding: 1.25rem 0 3rem;
  background: #f5f7fa;
  min-height: 60vh;
}

.covc-wrap {
  max-width: 1120px;
}

.covc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.covc-top__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.covc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.covc-back:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.covc-flag {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.covc-country__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.covc-country__sub {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.covc-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.covc-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #eef1f5;
  font: inherit;
  font-size: 0.9375rem;
  color: #0f172a;
}

.covc-search__input:focus {
  outline: none;
  border-color: #94a3b8;
  background: #fff;
}

.covc-search__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.covc-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .covc-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
  }
}

.covc-filters {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
}

.covc-filters__title {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
}

.covc-filters__group {
  margin-bottom: 1.1rem;
}

.covc-filters__heading {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.covc-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.35;
}

.covc-check input {
  margin-top: 2px;
  flex-shrink: 0;
}

.covc-filters__sub {
  margin: 0.15rem 0 0.5rem 1.35rem;
}

.covc-filters__stat {
  margin-top: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.covc-filters__stat strong {
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 700;
}

.covc-filters__stat span {
  font-size: 0.75rem;
  color: #64748b;
}

.covc-list {
  min-width: 0;
}

.covc-banks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.covc-bank {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 14px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.covc-bank.is-hidden,
.covc-bank[hidden] {
  display: none !important;
}

.covc-bank:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.covc-bank__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.covc-bank__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.covc-bank__icon-fallback {
  color: #3b82f6;
  display: flex;
}

.covc-bank__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.covc-bank__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.covc-bank__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.covc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.covc-badge--api {
  background: #ede9fe;
  color: #6d28d9;
}

.covc-badge--pis {
  background: #dbeafe;
  color: #1d4ed8;
}

.covc-bank__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.covc-empty {
  margin: 0;
  padding: 1.5rem 1.1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9375rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.covc-legal {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .covc-bank {
    grid-template-columns: 40px minmax(0, 1fr) 14px;
    grid-template-rows: auto auto;
  }

  .covc-bank__badges {
    grid-column: 2;
    justify-content: flex-start;
  }

  .covc-bank__status {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .covc-search {
    max-width: none;
    width: 100%;
  }
}
