.modal-window__content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.65) transparent;
}

.modal-window__content::-webkit-scrollbar {
    width: 4px;
}

.modal-window__content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-window__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
}

.modal-window__content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.85);
}

.modal-window__content::-webkit-scrollbar-button {
    display: none;
}

.component-table-container {
    width: 100%;
    max-width: 100%;
    container-name: component-table;
    container-type: inline-size;
}

.component-table {
    margin-top: 2em;
    width: 100%;
    max-width: 100%;
    color: inherit;
}

.component-table,
.component-table *,
.component-table *::before,
.component-table *::after {
    box-sizing: border-box;
}

.component-table__row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(10rem, 1.4fr) repeat(var(--table-value-columns), minmax(4rem, 0.8fr));
    column-gap: clamp(0.4rem, 1vw, 1rem);
}

.component-table__row--heading {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 0 !important;
    text-transform: uppercase;
}

.component-table__row:not(.component-table__row--heading) {
    border-bottom: 4px solid rgba(255, 255, 255, 0.25);
}

.component-table__row:last-child {
    border-bottom: 0;
}

.component-table__cell {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: clamp(0.35rem, 0.65vw, 0.65rem) clamp(0.2rem, 0.5vw, 0.5rem);
    font-size: clamp(0.95rem, 1.35vw, 1.45rem);
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.component-table__value {
    min-width: 0;
    max-width: 100%;
}

.component-table__value :where(p, h1, h2, h3, h4, h5, h6) {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.component-table__value > *:first-child {
    margin-top: 0 !important;
}

.component-table__value > *:last-child {
    margin-bottom: 0 !important;
}

.component-table__cell:first-child {
    justify-content: flex-start;
    text-align: left;
    font-size: clamp(0.8rem, 1.05vw, 1.15rem);
}

.component-table__cell:not(:first-child) {
    justify-content: center;
    text-align: center;
}

.component-table__cell--heading {
    min-height: 0;
    font-size: clamp(0.7rem, 0.95vw, 1rem);
    line-height: 1.1;
    text-transform: uppercase;
}

@container component-table (max-width: 550px) {
    .component-table__row--heading {
        display: block;
        padding: 0;
        margin: 0 0 0.5rem;
        background: transparent;
        border: 0;
    }

    .component-table__row--heading .component-table__cell {
        display: none;
    }

    .component-table__row--heading .component-table__cell:first-child {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 0;
        margin: 0;
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        line-height: 1.1;
        text-align: left;
    }

    .component-table__row--heading .component-table__cell:first-child::before {
        display: none;
    }

    .component-table__row:not(.component-table__row--heading) {
        display: block;
        padding: 0;
        margin: 0 0 0.75rem;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0.2rem;
    }

    .component-table__row:last-child {
        margin-bottom: 0;
    }

    .component-table__row:not(.component-table__row--heading) .component-table__cell:first-child {
        display: block;
        width: 100%;
        min-height: 0;
        padding: 0.55rem 0.7rem;
        margin: 0;
        background: rgba(0, 0, 0, 0.13);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0.2rem 0.2rem 0 0;
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
        line-height: 1.15;
        text-align: left;
    }

    .component-table__row:not(.component-table__row--heading) .component-table__cell:first-child::before {
        display: none;
    }

    .component-table__row:not(.component-table__row--heading) .component-table__cell:not(:first-child) {
        width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1rem;
        align-items: center;
        padding: 0.4rem 0.7rem;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        line-height: 1.2;
        text-align: left;
    }

    .component-table__row:not(.component-table__row--heading) .component-table__cell:last-child {
        border-bottom: 0;
        border-radius: 0 0 0.2rem 0.2rem;
    }

    .component-table__cell:not(:first-child)::before {
        content: attr(data-label);
        min-width: 0;
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.15;
        text-transform: uppercase;
        opacity: 0.75;
    }

    .component-table__cell:not(:first-child) .component-table__value {
        justify-self: end;
        max-width: 100%;
        font-weight: 700;
        text-align: right;
    }
}