.rates-search {
  display: flex;
  gap: .4rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.rates-search-input {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  height: 2.4rem;
  padding: 0 .75rem;
}
.rates-search-btn {
  width: auto;
  height: 2.4rem;
  padding: 0 1.1rem;
  font-size: .72rem;
}
.rates-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.4rem;
  padding: 0 .9rem;
  color: var(--text-3);
  border: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.rates-clear:hover { color: var(--ink); border-color: var(--ink); }
.rates-empty {
  font-size: .8rem;
  color: var(--text-3);
  padding: 1rem 0;
}
.rates-updated {
  font-size: .7rem;
  color: var(--text-3);
  margin: 0 0 .5rem;
}
.rates-table-wrap { border: 1px solid var(--line-2); }
.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.rates-table th {
  text-align: left;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line-2);
  background: var(--panel);
  white-space: nowrap;
}
.rates-table td {
  padding: .65rem .85rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.rates-table tr:last-child td { border-bottom: none; }
.rates-country { font-weight: 700; }
.rates-data    { white-space: nowrap; }
.rates-na      { color: var(--faint); }
.rates-ops {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  min-width: 0;
}
.op-tag {
  display: inline-block;
  max-width: 100%;
  padding: .2rem .5rem;
  border: 1px solid var(--tag-border);
  font-size: .7rem;
  line-height: 1.35;
  color: var(--ink-2);
  white-space: normal;
  overflow-wrap: anywhere;
}
.op-price {
  color: var(--muted);
  font-size: .65rem;
  margin-left: .3rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .rates-table-wrap { border: none; }
  .rates-table, .rates-table tbody { display: block; width: 100%; }
  .rates-table thead { display: none; }
  .rates-table tr {
    display: block;
    border: 1px solid var(--line-2);
    padding: .75rem .9rem;
    margin-bottom: .5rem;
  }
  .rates-table tr:last-child { margin-bottom: 0; }
  .rates-table td {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: .5rem;
    padding: .25rem 0;
    border: none;
    white-space: normal;
  }
  .rates-table td::before {
    content: attr(data-label);
    font-size: .58rem;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: .07em;
    padding-top: .2rem;
  }
  .rates-country {
    font-size: .9rem;
    padding-bottom: .4rem !important;
    margin-bottom: .25rem;
    border-bottom: 1px solid var(--line-2);
    grid-template-columns: 1fr !important;
  }
  .rates-country::before { display: none; }
  .rates-ops { gap: .25rem; }
}
