.custom-top-links__icon img {
    max-width: var(--custom-header-links-icon-size, 18px);
    max-height: var(--custom-header-links-icon-size, 18px);
}

.custom-top-links .custom-top-links__list.custom-top-links__list--aligned {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    align-items: center;
    gap: 12px;
}

.custom-top-links__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-top-links__group-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-top-links__group--left .custom-top-links__group-list {
    justify-content: flex-start;
    text-align: left;
}

.custom-top-links__group--center .custom-top-links__group-list {
    justify-content: center;
    text-align: center;
}

.custom-top-links__group--right .custom-top-links__group-list {
    justify-content: flex-end;
    text-align: right;
}

.custom-top-links__group-list .custom-top-links__item {
    min-width: 0;
    max-width: 100%;
}

.custom-top-links__group-list .custom-top-links__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .custom-top-links .custom-top-links__list.custom-top-links__list--aligned {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-top-links__group:empty {
        display: none;
    }

    .custom-top-links__group-list {
        column-gap: 12px;
    }
}
