.usccg-savings {
  --usccg-table-line: #d6e1e8;
  --usccg-table-head: #d9edf7;
  --usccg-table-sorted: #bedff0;
  --usccg-table-stripe: #f5f8fa;
  --usccg-table-hover: #eaf4fa;
  margin-block: 1.5em;
}

.usccg-savings [hidden] {
  display: none !important;
}

.usccg-savings__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 1.15em;
  min-inline-size: 0;
  margin: 0 0 1em;
  padding: 0.2em 0.85em 0.6em;
  border: 1px solid var(--usccg-table-line);
  border-radius: 6px;
}

.usccg-savings__filters legend {
  padding-inline: 0.35em;
  font-weight: 600;
}

.usccg-savings__filters label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  min-height: 36px;
  cursor: pointer;
}

.usccg-savings__filters input {
  margin: 0;
  flex-shrink: 0;
}

.usccg-savings__scroll {
  overflow-x: auto;
  border: 1px solid var(--usccg-table-line);
  border-radius: 4px;
}

.usccg-savings .usccg-savings__table {
  width: 100%;
  min-width: 32rem;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.9375em;
  font-variant-numeric: tabular-nums;
}

.usccg-savings__table :is(th, td) {
  padding: 0.55em 0.7em;
  border: 0;
  border-bottom: 1px solid var(--usccg-table-line);
  text-align: start;
  vertical-align: top;
}

.usccg-savings__table thead th {
  background-color: var(--usccg-table-head);
  color: #173347;
  font-weight: 700;
  vertical-align: bottom;
}

.usccg-savings__table thead th[aria-sort] {
  background-color: var(--usccg-table-sorted);
}

.usccg-savings__table tbody tr > * {
  background-color: #fff;
  color: #202b34;
}

.usccg-savings__table tbody tr:nth-child(even of [data-apy]) > * {
  background-color: var(--usccg-table-stripe);
}

.usccg-savings__table tbody tr:hover > *,
.usccg-savings__table tbody tr:focus-within > * {
  background-color: var(--usccg-table-hover);
}

.usccg-savings__table tbody tr:last-child > * {
  border-bottom: 0;
}

.usccg-savings__table th[scope=row] {
  width: 29%;
  min-width: 8.5rem;
  font-weight: 600;
}

.usccg-savings__table th[scope=row] a {
  color: #16567c;
}

.usccg-savings__table .usccg-savings__numeric {
  text-align: end;
  white-space: nowrap;
}

.usccg-savings__table td.usccg-savings__apy {
  font-weight: 700;
}

.usccg-savings__table [data-usccg-savings-sort] {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.17em;
  cursor: pointer;
}

.usccg-savings__apy {
  white-space: nowrap;
}

.usccg-savings__notes {
  min-width: 11rem;
  overflow-wrap: anywhere;
}

.usccg-savings__note-toggle {
  display: none;
}

.usccg-savings__scroll:focus-visible,
.usccg-savings__table [data-usccg-savings-sort]:focus-visible,
.usccg-savings__note-toggle:focus-visible {
  outline: 2px solid #176b9d;
  outline-offset: 2px;
}

.usccg-savings__updated {
  margin: 0 0 0.65em;
  color: #4b5863;
  font-size: 0.875em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .usccg-savings--interactive .usccg-savings__table {
    min-width: 0;
    table-layout: fixed;
    font-size: 0.875em;
  }

  .usccg-savings--interactive .usccg-savings__table :is(th, td) {
    padding-inline: 0.45em;
  }

  .usccg-savings--interactive .usccg-savings__table th[scope=row] {
    width: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .usccg-savings--interactive .usccg-savings__table thead th {
    box-sizing: border-box;
  }

  .usccg-savings--interactive th[data-usccg-savings-apy] {
    width: clamp(3.4rem, 15.4vw, 3.75rem);
  }

  .usccg-savings--interactive th.usccg-savings__minimum {
    width: clamp(4.8rem, 23.6vw, 5.75rem);
  }

  .usccg-savings--interactive .usccg-savings__table .usccg-savings__minimum {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .usccg-savings--interactive .usccg-savings__table .usccg-savings__notes {
    width: clamp(3.125rem, 14vw, 3.4rem);
    min-width: 0;
    text-align: center;
  }

  .usccg-savings--interactive .usccg-savings__notes [data-usccg-savings-note] {
    display: none;
  }

  .usccg-savings--interactive .usccg-savings__note-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2rem;
    padding: 0 0.35em;
    border: 1px solid #bdd6e5;
    border-radius: 4px;
    background: #fff;
    color: #16567c;
    font: inherit;
    font-size: 0.9em;
    white-space: nowrap;
    cursor: pointer;
  }

  .usccg-savings--interactive .usccg-savings__note-toggle[aria-expanded="true"] {
    background: var(--usccg-table-head);
  }

  .usccg-savings--interactive .usccg-savings__table .usccg-savings__note-detail > td {
    padding: 0.65em 0.8em;
    background: var(--usccg-table-hover);
    overflow-wrap: anywhere;
  }
}

.usccg-savings__notice,
.usccg-savings__excluded {
  margin-block: 1em;
  font-size: 0.875em;
}

.usccg-savings__excluded summary {
  width: fit-content;
  font-weight: 600;
  cursor: pointer;
}

.usccg-savings__excluded ul {
  margin: 0.55em 0;
  padding-inline-start: 1.5em;
}

.usccg-savings__excluded li {
  margin-block: 0.25em;
}

.usccg-savings__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
