.voicebuy-rates {
    --voicebuy-accent: #155eba;
    --voicebuy-border: #dbe3ef;
    --voicebuy-muted: #667085;
    --voicebuy-text: #172033;
    color: var(--voicebuy-text);
    font-family: inherit;
    margin: 24px 0;
}

.voicebuy-rates__header {
    align-items: flex-end;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.voicebuy-rates__header h2 {
    color: var(--voicebuy-text);
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.voicebuy-rates__header p {
    color: var(--voicebuy-muted);
    font-size: 14px;
    margin: 6px 0 0;
}

.voicebuy-rates__tools {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    max-width: 620px;
    width: 100%;
}

.voicebuy-rates__download {
    background: #0f766e;
    border: 1px solid #0f766e;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    min-height: 42px;
    padding: 9px 14px;
    text-decoration: none;
    white-space: nowrap;
}

.voicebuy-rates__download:hover,
.voicebuy-rates__download:focus {
    background: #115e59;
    border-color: #115e59;
    color: #fff;
}

.voicebuy-rates__search {
    display: flex;
    gap: 8px;
    max-width: 440px;
    width: 100%;
}

.voicebuy-rates__search input {
    border: 1px solid var(--voicebuy-border);
    border-radius: 6px;
    flex: 1;
    min-height: 42px;
    padding: 9px 12px;
}

.voicebuy-rates__search button {
    background: var(--voicebuy-accent);
    border: 1px solid var(--voicebuy-accent);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 42px;
    padding: 9px 16px;
}

.voicebuy-rates__table-wrap {
    border: 1px solid var(--voicebuy-border);
    border-radius: 8px;
    overflow-x: auto;
}

.voicebuy-rates__letters {
    align-items: center;
    background: #fff;
    border: 1px solid var(--voicebuy-border);
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 12px;
    padding: 9px 10px;
}

.voicebuy-rates__letters span:first-child {
    color: var(--voicebuy-text);
    font-weight: 800;
    margin-right: auto;
}

.voicebuy-rates__letters a,
.voicebuy-rates__letter-disabled {
    color: #d97706;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    min-width: 16px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.voicebuy-rates__letters a:hover,
.voicebuy-rates__letters a:focus,
.voicebuy-rates__letters a.is-current {
    color: var(--voicebuy-accent);
}

.voicebuy-rates__letters a.is-current {
    text-decoration-thickness: 2px;
}

.voicebuy-rates__letter-disabled {
    color: #cbd5e1;
    text-decoration: none;
}

.voicebuy-rates__top-link {
    margin-left: 4px;
}

.voicebuy-rates__list {
    display: grid;
    gap: 22px;
}

.voicebuy-rates__group {
    scroll-margin-top: 96px;
}

.voicebuy-rates__group-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 0 8px;
}

.voicebuy-rates__group-heading h3 {
    color: var(--voicebuy-accent);
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.voicebuy-rates__group-heading span {
    color: var(--voicebuy-muted);
    font-size: 13px;
    font-weight: 700;
}

.voicebuy-rates__table {
    border-collapse: collapse;
    margin: 0;
    min-width: 680px;
    width: 100%;
}

.voicebuy-rates__table th,
.voicebuy-rates__table td {
    border-bottom: 1px solid var(--voicebuy-border);
    padding: 13px 16px;
    text-align: left;
}

.voicebuy-rates__table th {
    background: #f6f8fb;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.voicebuy-rates__table--compact {
    border: 1px solid var(--voicebuy-border);
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}

.voicebuy-rates__table--compact th:nth-child(2),
.voicebuy-rates__table--compact td:nth-child(2) {
    font-weight: 700;
    white-space: nowrap;
}

.voicebuy-rates__table--compact th:nth-child(3),
.voicebuy-rates__table--compact th:nth-child(4),
.voicebuy-rates__table--compact th:nth-child(5),
.voicebuy-rates__table--compact td:nth-child(3),
.voicebuy-rates__table--compact td:nth-child(4),
.voicebuy-rates__table--compact td:nth-child(5) {
    text-align: right;
    white-space: nowrap;
}

.voicebuy-rates__table--compact tbody tr:nth-child(odd) {
    background: #f7f7f7;
}

.voicebuy-rates__table--compact tbody tr:nth-child(even) {
    background: #ffffff;
}

.voicebuy-rates__table tbody tr:hover {
    background: #f9fbff;
}

.voicebuy-rates__table tbody tr:last-child td {
    border-bottom: 0;
}

.voicebuy-rates--notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    padding: 14px 16px;
}

@media (max-width: 720px) {
    .voicebuy-rates__header {
        align-items: stretch;
        flex-direction: column;
    }

    .voicebuy-rates__tools {
        align-items: stretch;
        flex-direction: column;
        max-width: none;
    }

    .voicebuy-rates__download {
        justify-content: center;
    }

    .voicebuy-rates__search {
        max-width: none;
    }

    .voicebuy-rates__letters {
        align-items: flex-start;
        gap: 10px;
    }

    .voicebuy-rates__letters span:first-child {
        flex-basis: 100%;
        margin-right: 0;
    }

    .voicebuy-rates__table {
        min-width: 0;
    }

    .voicebuy-rates__table thead {
        display: none;
    }

    .voicebuy-rates__table,
    .voicebuy-rates__table tbody,
    .voicebuy-rates__table tr,
    .voicebuy-rates__table td {
        display: block;
        width: 100%;
    }

    .voicebuy-rates__table tr {
        border-bottom: 1px solid var(--voicebuy-border);
        padding: 10px 0;
    }

    .voicebuy-rates__table td {
        align-items: center;
        border-bottom: 0;
        display: flex;
        justify-content: space-between;
        padding: 8px 14px;
        text-align: right;
    }

    .voicebuy-rates__table td::before {
        color: var(--voicebuy-muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 800;
        padding-right: 16px;
        text-align: left;
        text-transform: uppercase;
    }
}
