.universal-table {
    background: var(--white);
    position: relative;
}

.universal-table__wrapper {
    display: flex;
    flex-direction: column;
}

.universal-table__title {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: clamp(32px, 2.92vw, 56px);
    line-height: 130%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: var(--gray-100);
    text-align: center;
    margin-bottom: clamp(32px, 3.65vw, 70px);
}

.universal-table__table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-20) transparent;
}

.universal-table__table-wrapper::-webkit-scrollbar {
    height: 4px;
}

.universal-table__table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.universal-table__table-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-20);
    border-radius: 4px;
}

.universal-table__table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-60);
}

.universal-table__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    min-width: 640px;
}

.universal-table__thead {
    border-bottom: 1px solid var(--gray-20);
}

.universal-table__th {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 0.83vw, 16px);
    line-height: 140%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gray-60);
    text-align: left;
    padding: clamp(12px, 1.15vw, 22px) clamp(16px, 1.66vw, 32px);
    vertical-align: middle;
}

.universal-table__th:first-child,
.universal-table__td:first-child,
.universal-table__row-label:first-child {
    padding-left: 0;
    width: clamp(120px, 12.5vw, 220px);
    min-width: 100px;
}

.universal-table__th:last-child,
.universal-table__td:last-child {
    padding-right: 0;
}

.universal-table__tbody tr {
    border-bottom: 1px solid var(--gray-20);
}

.universal-table__tbody tr:last-child {
    border-bottom: none;
}

.universal-table__row-label {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 0.83vw, 16px);
    line-height: 140%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gray-60);
    text-align: left;
    padding: clamp(16px, 1.4vw, 28px) clamp(16px, 1.66vw, 32px);
    vertical-align: middle;
}

.universal-table__td {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.04vw, 20px);
    line-height: 150%;
    color: var(--gray-90);
    text-align: left;
    padding: clamp(16px, 1.4vw, 28px) clamp(16px, 1.66vw, 32px);
    vertical-align: middle;
}

/* Support for generic HTML tables placed inside universal-table__table-wrapper */
.universal-table__table-wrapper table:not(.universal-table__table) {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.universal-table__table-wrapper table:not(.universal-table__table) thead {
    border-bottom: 1px solid var(--gray-20);
}

.universal-table__table-wrapper table:not(.universal-table__table) th {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-size: clamp(12px, 0.83vw, 16px);
    line-height: 140%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gray-60);
    text-align: left;
    padding: clamp(12px, 1.15vw, 22px) clamp(16px, 1.66vw, 32px);
    vertical-align: middle;
}

.universal-table__table-wrapper table:not(.universal-table__table) tbody tr {
    border-bottom: 1px solid var(--gray-20);
}

.universal-table__table-wrapper table:not(.universal-table__table) tbody tr:last-child {
    border-bottom: none;
}

.universal-table__table-wrapper table:not(.universal-table__table) td {
    font-family: PP Neue Montreal, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.04vw, 20px);
    line-height: 150%;
    color: var(--gray-90);
    text-align: left;
    padding: clamp(16px, 1.4vw, 28px) clamp(16px, 1.66vw, 32px);
    vertical-align: middle;
}

.universal-table__table-wrapper table:not(.universal-table__table) th:first-child,
.universal-table__table-wrapper table:not(.universal-table__table) td:first-child {
    padding-left: 0;
    width: clamp(120px, 12.5vw, 220px);
    min-width: 100px;
    text-transform: uppercase;
    color: var(--gray-60);
}

.universal-table__table-wrapper table:not(.universal-table__table) th:last-child,
.universal-table__table-wrapper table:not(.universal-table__table) td:last-child {
    padding-right: 0;
}

@media (max-width: 1024px) {
    .universal-table__title {
        font-size: clamp(28px, 4vw, 36px);
        line-height: 120%;
        margin-bottom: 32px;
    }

    .universal-table__table,
    .universal-table__table-wrapper table:not(.universal-table__table) {
        min-width: 600px;
    }

    .universal-table__th,
    .universal-table__row-label,
    .universal-table__table-wrapper table:not(.universal-table__table) th,
    .universal-table__table-wrapper table:not(.universal-table__table) td:first-child {
        font-size: 13px;
        padding: 14px 16px;
    }

    .universal-table__td,
    .universal-table__table-wrapper table:not(.universal-table__table) td {
        font-size: 15px;
        padding: 16px 16px;
    }

    .universal-table__th:first-child,
    .universal-table__td:first-child,
    .universal-table__row-label:first-child,
    .universal-table__table-wrapper table:not(.universal-table__table) th:first-child,
    .universal-table__table-wrapper table:not(.universal-table__table) td:first-child {
        padding-left: 0;
    }

    .universal-table__th:last-child,
    .universal-table__td:last-child,
    .universal-table__table-wrapper table:not(.universal-table__table) th:last-child,
    .universal-table__table-wrapper table:not(.universal-table__table) td:last-child {
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .universal-table__title {
        font-size: clamp(24px, 6.5vw, 32px);
        line-height: 120%;
        text-align: center;
        margin-bottom: 24px;
    }

    .universal-table__th,
    .universal-table__row-label,
    .universal-table__table-wrapper table:not(.universal-table__table) th,
    .universal-table__table-wrapper table:not(.universal-table__table) td:first-child {
        font-size: 12px;
        padding: 12px 12px;
    }

    .universal-table__td,
    .universal-table__table-wrapper table:not(.universal-table__table) td {
        font-size: 14px;
        padding: 14px 12px;
    }
}

@media (max-width: 640px) {
    .universal-table__table-wrapper {
        overflow-x: visible;
    }

    .universal-table__table,
    .universal-table__table-wrapper table:not(.universal-table__table) {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        table-layout: auto;
    }

    .universal-table__th,
    .universal-table__row-label,
    .universal-table__table-wrapper table:not(.universal-table__table) th,
    .universal-table__table-wrapper table:not(.universal-table__table) td:first-child {
        font-size: 10px;
        line-height: 130%;
        padding: 10px 8px;
        overflow-wrap: anywhere;
    }

    .universal-table__td,
    .universal-table__table-wrapper table:not(.universal-table__table) td {
        font-size: 12px;
        line-height: 140%;
        padding: 10px 8px;
        overflow-wrap: anywhere;
    }

    .universal-table__th:first-child,
    .universal-table__td:first-child,
    .universal-table__row-label:first-child,
    .universal-table__table-wrapper table:not(.universal-table__table) th:first-child,
    .universal-table__table-wrapper table:not(.universal-table__table) td:first-child {
        width: auto;
        min-width: 0;
        padding-left: 0;
    }

    .universal-table__th:last-child,
    .universal-table__td:last-child,
    .universal-table__table-wrapper table:not(.universal-table__table) th:last-child,
    .universal-table__table-wrapper table:not(.universal-table__table) td:last-child {
        padding-right: 0;
    }
}

@media (min-width: 1025px) {
    .universal-table__table:not(:has(td:nth-child(3), th:nth-child(3))) {
        min-width: 0;
        max-width: clamp(640px, 60vw, 1100px);
        margin-left: auto;
        margin-right: auto;
    }
}
